Hello,
In our system, we have a GPIO expander which is used to interface a rotating switch. Whenever there is a change in rotating switch position it suposed to generate an interrupt, so that we can read the position. The GPIO expander is assigned with a base address of 138. It returns with error from gpio_to_interrupt() function with error as "unable to get irq number for GPIO, error -22"
How to configure this GPIO expander? I could able to detect the change in position of rotating switch without interrupt but need to scan for the change in position. Is there any other method to make it interrupt based instead of waiting for the change in position of the rotating switch?
Thanks.