.. | .. |
---|
| 1 | +/* SPDX-License-Identifier: GPL-2.0-only */ |
---|
1 | 2 | /* |
---|
2 | 3 | * Simple driver for Texas Instruments LM3630A LED Flash driver chip |
---|
3 | 4 | * Copyright (C) 2012 Texas Instruments |
---|
4 | | -* |
---|
5 | | -* This program is free software; you can redistribute it and/or modify |
---|
6 | | -* it under the terms of the GNU General Public License version 2 as |
---|
7 | | -* published by the Free Software Foundation. |
---|
8 | | -* |
---|
9 | 5 | */ |
---|
10 | 6 | |
---|
11 | 7 | #ifndef __LINUX_LM3630A_H |
---|
.. | .. |
---|
38 | 34 | |
---|
39 | 35 | #define LM3630A_MAX_BRIGHTNESS 255 |
---|
40 | 36 | /* |
---|
| 37 | + *@leda_label : optional led a label. |
---|
41 | 38 | *@leda_init_brt : led a init brightness. 4~255 |
---|
42 | 39 | *@leda_max_brt : led a max brightness. 4~255 |
---|
43 | 40 | *@leda_ctrl : led a disable, enable linear, enable exponential |
---|
| 41 | + *@ledb_label : optional led b label. |
---|
44 | 42 | *@ledb_init_brt : led b init brightness. 4~255 |
---|
45 | 43 | *@ledb_max_brt : led b max brightness. 4~255 |
---|
46 | 44 | *@ledb_ctrl : led b disable, enable linear, enable exponential |
---|
.. | .. |
---|
50 | 48 | struct lm3630a_platform_data { |
---|
51 | 49 | |
---|
52 | 50 | /* led a config. */ |
---|
| 51 | + const char *leda_label; |
---|
53 | 52 | int leda_init_brt; |
---|
54 | 53 | int leda_max_brt; |
---|
55 | 54 | enum lm3630a_leda_ctrl leda_ctrl; |
---|
56 | 55 | /* led b config. */ |
---|
| 56 | + const char *ledb_label; |
---|
57 | 57 | int ledb_init_brt; |
---|
58 | 58 | int ledb_max_brt; |
---|
59 | 59 | enum lm3630a_ledb_ctrl ledb_ctrl; |
---|