leds-ktd2026.h 1.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940
  1. /*
  2. * Copyright (C) 2011 Samsung Electronics Co. Ltd. All Rights Reserved.
  3. *
  4. * This software is licensed under the terms of the GNU General Public
  5. * License version 2, as published by the Free Software Foundation, and
  6. * may be copied, distributed, and modified under those terms.
  7. *
  8. * This program is distributed in the hope that it will be useful,
  9. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  10. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  11. * GNU General Public License for more details.
  12. *
  13. */
  14. #ifndef _LEDS_KTD2026_H
  15. #define _LEDS_KTD2026_H
  16. #include <linux/ioctl.h>
  17. #include <linux/types.h>
  18. struct ktd2026_led_conf {
  19. const char *name;
  20. int brightness;
  21. int max_brightness;
  22. int flags;
  23. };
  24. enum ktd2026_pattern {
  25. PATTERN_OFF,
  26. CHARGING,
  27. CHARGING_ERR,
  28. MISSED_NOTI,
  29. LOW_BATTERY,
  30. FULLY_CHARGED,
  31. POWERING,
  32. };
  33. extern void ktd2026_start_led_pattern(enum ktd2026_pattern mode);
  34. extern void ktd2026_led_blink(int rgb, int on, int off);
  35. #endif /* _LEDS_KTD2026_H */