Root/
1 | /* |
2 | * LP5523 LED Driver |
3 | * |
4 | * Copyright (C) 2010 Nokia Corporation |
5 | * |
6 | * Contact: Samu Onkalo <samu.p.onkalo@nokia.com> |
7 | * |
8 | * This program is free software; you can redistribute it and/or |
9 | * modify it under the terms of the GNU General Public License |
10 | * version 2 as published by the Free Software Foundation. |
11 | * |
12 | * This program is distributed in the hope that it will be useful, but |
13 | * WITHOUT ANY WARRANTY; without even the implied warranty of |
14 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
15 | * General Public License for more details. |
16 | * |
17 | * You should have received a copy of the GNU General Public License |
18 | * along with this program; if not, write to the Free Software |
19 | * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA |
20 | * 02110-1301 USA |
21 | */ |
22 | |
23 | #ifndef __LINUX_LP5523_H |
24 | #define __LINUX_LP5523_H |
25 | |
26 | /* See Documentation/leds/leds-lp5523.txt */ |
27 | |
28 | struct lp5523_led_config { |
29 | u8 chan_nr; |
30 | u8 led_current; /* mA x10, 0 if led is not connected */ |
31 | u8 max_current; |
32 | }; |
33 | |
34 | #define LP5523_CLOCK_AUTO 0 |
35 | #define LP5523_CLOCK_INT 1 |
36 | #define LP5523_CLOCK_EXT 2 |
37 | |
38 | struct lp5523_platform_data { |
39 | struct lp5523_led_config *led_config; |
40 | u8 num_channels; |
41 | u8 clock_mode; |
42 | int (*setup_resources)(void); |
43 | void (*release_resources)(void); |
44 | void (*enable)(bool state); |
45 | const char *label; |
46 | }; |
47 | |
48 | #endif /* __LINUX_LP5523_H */ |
49 |
Branches:
ben-wpan
ben-wpan-stefan
javiroman/ks7010
jz-2.6.34
jz-2.6.34-rc5
jz-2.6.34-rc6
jz-2.6.34-rc7
jz-2.6.35
jz-2.6.36
jz-2.6.37
jz-2.6.38
jz-2.6.39
jz-3.0
jz-3.1
jz-3.11
jz-3.12
jz-3.13
jz-3.15
jz-3.16
jz-3.18-dt
jz-3.2
jz-3.3
jz-3.4
jz-3.5
jz-3.6
jz-3.6-rc2-pwm
jz-3.9
jz-3.9-clk
jz-3.9-rc8
jz47xx
jz47xx-2.6.38
master
Tags:
od-2011-09-04
od-2011-09-18
v2.6.34-rc5
v2.6.34-rc6
v2.6.34-rc7
v3.9