diff options
| author | Devesh Jhunjhunwala <deveshj@codeaurora.org> | 2016-06-07 14:22:33 -0700 |
|---|---|---|
| committer | Devesh Jhunjhunwala <deveshj@codeaurora.org> | 2016-07-28 12:43:30 -0700 |
| commit | f2509065e9a455f1fdd450177192af20d785be71 (patch) | |
| tree | 3bbb66e61c22bdbbee9a22a62da9d397c9a5c0bc /include/linux | |
| parent | 6b49283ec846e9fd68244e5fae0ee19865042d7a (diff) | |
leds: qpnp-flash-v2: Create atomic notifier chain for flash irqs
Create an atomic notifier call chain to notify registered
clients of a flash-led irq event.
CRs-Fixed: 921325
Change-Id: I218195c29fede7ae5959df8c40df0231a71de379
Signed-off-by: Devesh Jhunjhunwala <deveshj@codeaurora.org>
Diffstat (limited to 'include/linux')
| -rw-r--r-- | include/linux/leds-qpnp-flash-v2.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/include/linux/leds-qpnp-flash-v2.h b/include/linux/leds-qpnp-flash-v2.h index 823b6e6646c3..c8db3e0a9eac 100644 --- a/include/linux/leds-qpnp-flash-v2.h +++ b/include/linux/leds-qpnp-flash-v2.h @@ -14,6 +14,7 @@ #define __LEDS_QPNP_FLASH_V2_H #include <linux/leds.h> +#include <linux/notifier.h> #include "leds.h" #define ENABLE_REGULATOR BIT(0) @@ -33,4 +34,7 @@ enum flash_led_irq_type { int qpnp_flash_led_prepare(struct led_classdev *led_cdev, int options); +int qpnp_flash_led_register_irq_notifier(struct notifier_block *nb); +int qpnp_flash_led_unregister_irq_notifier(struct notifier_block *nb); + #endif |
