blob: a4bf0ea0789dc14cb3c18917ca859353fb3b5ed0 [file] [log] [blame]
Duy Truong790f06d2013-02-13 16:38:12 -08001/* Copyright (c) 2010, The Linux Foundation. All rights reserved.
Bryan Huntsman3f2bc4d2011-08-16 17:27:22 -07002 *
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
16enum 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
25struct pmic8058_led {
26 const char *name;
27 const char *default_trigger;
28 unsigned max_brightness;
29 int id;
30};
31
32struct pmic8058_leds_platform_data {
33 int num_leds;
34 struct pmic8058_led *leds;
35};
36
37int pm8058_set_flash_led_current(enum pmic8058_leds id, unsigned mA);
38int pm8058_set_led_current(enum pmic8058_leds id, unsigned mA);
39
40#endif /* __LEDS_PMIC8058_H__ */