Knowing this, I have a couple of questions:Actually you found a bug. It's not up to the user to know that the cb
is already installed (even though, logically it does not make sense to
add the same cb many times), in other words: gpio should not blindly
install an already installed cb.
I'll open an issue. I think it should check the status of the node, if
already set up, it will try to find it and return an error: -EALREADY
if found, or -EINVAL as it might have been inserted into another
controller's list and we should not touch it.
Once my IRQ pin is configured and my callback added, it looks like II think my fix proposal above should clarify that.
If it returns 0 or -EALREADY, all will be fine.
Any recommendation or comments are appreciated! Or perhaps I'm offNo that was a good catch!