Duy Truong | 790f06d | 2013-02-13 16:38:12 -0800 | [diff] [blame] | 1 | /* Copyright (c) 2010, The Linux Foundation. All rights reserved. |
Bryan Huntsman | 3f2bc4d | 2011-08-16 17:27:22 -0700 | [diff] [blame] | 2 | * |
| 3 | * This program is free software; you can redistribute it and/or modify |
| 4 | * it under the terms of the GNU General Public License version 2 and |
| 5 | * only version 2 as published by the Free Software Foundation. |
| 6 | * |
| 7 | * This program is distributed in the hope that it will be useful, |
| 8 | * but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 9 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 10 | * GNU General Public License for more details. |
| 11 | * |
| 12 | */ |
| 13 | #ifndef __LEDS_PMIC8058_H__ |
| 14 | #define __LEDS_PMIC8058_H__ |
| 15 | |
| 16 | enum pmic8058_leds { |
| 17 | PMIC8058_ID_LED_KB_LIGHT = 1, |
| 18 | PMIC8058_ID_LED_0, |
| 19 | PMIC8058_ID_LED_1, |
| 20 | PMIC8058_ID_LED_2, |
| 21 | PMIC8058_ID_FLASH_LED_0, |
| 22 | PMIC8058_ID_FLASH_LED_1, |
| 23 | }; |
| 24 | |
| 25 | struct pmic8058_led { |
| 26 | const char *name; |
| 27 | const char *default_trigger; |
| 28 | unsigned max_brightness; |
| 29 | int id; |
| 30 | }; |
| 31 | |
| 32 | struct pmic8058_leds_platform_data { |
| 33 | int num_leds; |
| 34 | struct pmic8058_led *leds; |
| 35 | }; |
| 36 | |
| 37 | int pm8058_set_flash_led_current(enum pmic8058_leds id, unsigned mA); |
| 38 | int pm8058_set_led_current(enum pmic8058_leds id, unsigned mA); |
| 39 | |
| 40 | #endif /* __LEDS_PMIC8058_H__ */ |