drivers/ioexpander: The IRQ subsystem now supports passing a void * parameter to IRQ handlers. Use that method to support multiple pc9555 devices, by passing a pointer to the device to the board defined irq handler. Now the CONFIG_ for multiple PCA devices just allocates device structures dynamically instead of statically when not enabled.

The same interrupt handler is entered with the device structure parameter in all situations,
multiple or single PCA. One should still be careful if multiple PCA devices share the same IRQ.
This commit is contained in:
Sebastien Lorquet
2017-10-19 08:10:40 -06:00
committed by Gregory Nutt
parent ee1330ed5e
commit 1182702b80
3 changed files with 5 additions and 18 deletions
-1
View File
@@ -26,7 +26,6 @@ if IOEXPANDER_PCA9555
config PCA9555_MULTIPLE
bool "Multiple PCA9555 Devices"
default n
depends on EXPERIMENTAL
---help---
Can be defined to support multiple PCA9555 devices on board.