Refactors the apds9960 sensor driver to get the i2c device name, i2c device address, gpio device name, and gpio pin from a constant device configuration structure, rather than using hardcoded macros. This will make it easier to change the names of the macros and to instantiate multiple instances of the driver. Signed-off-by: Maureen Helm <maureen.helm@nxp.com> |
||
|---|---|---|
| .. | ||
| apds9960_trigger.c | ||
| apds9960.c | ||
| apds9960.h | ||
| CMakeLists.txt | ||
| Kconfig | ||