leds-aw2016.h 740 B

12345678910111213141516171819202122232425262728293031
  1. /* SPDX-License-Identifier: GPL-2.0-only */
  2. /*
  3. * Copyright (c) 2015, The Linux Foundation. All rights reserved.
  4. * Copyright (c) 2022, Qualcomm Innovation Center, Inc. All rights reserved.
  5. */
  6. #ifndef __LINUX_AW2016_LED_H__
  7. #define __LINUX_AW2016_LED_H__
  8. /* The definition of each time described as shown in figure.
  9. * /-----------\
  10. * / | \
  11. * /| | |\
  12. * / | | | \-----------
  13. * |hold_time_ms | |
  14. * | | |
  15. * rise_time_ms fall_time_ms |
  16. * off_time_ms
  17. */
  18. struct aw2016_platform_data {
  19. int imax;
  20. int led_current;
  21. int rise_time_ms;
  22. int hold_time_ms;
  23. int fall_time_ms;
  24. int off_time_ms;
  25. struct aw2016_led *led;
  26. };
  27. #endif