leds-qpnp-flash-v2.h 688 B

123456789101112131415161718192021222324252627
  1. /* SPDX-License-Identifier: GPL-2.0-only */
  2. /*
  3. * Copyright (c) 2016, 2020, The Linux Foundation. All rights reserved.
  4. */
  5. #ifndef __LEDS_QPNP_FLASH_V2_H
  6. #define __LEDS_QPNP_FLASH_V2_H
  7. #include <linux/leds.h>
  8. #include <linux/notifier.h>
  9. enum flash_led_irq_type {
  10. LED_FAULT_IRQ = BIT(0),
  11. MITIGATION_IRQ = BIT(1),
  12. FLASH_TIMER_EXP_IRQ = BIT(2),
  13. ALL_RAMP_DOWN_DONE_IRQ = BIT(3),
  14. ALL_RAMP_UP_DONE_IRQ = BIT(4),
  15. LED3_RAMP_UP_DONE_IRQ = BIT(5),
  16. LED2_RAMP_UP_DONE_IRQ = BIT(6),
  17. LED1_RAMP_UP_DONE_IRQ = BIT(7),
  18. INVALID_IRQ = BIT(8),
  19. };
  20. int qpnp_flash_led_register_irq_notifier(struct notifier_block *nb);
  21. int qpnp_flash_led_unregister_irq_notifier(struct notifier_block *nb);
  22. #endif