hc
2023-12-08 01573e231f18eb2d99162747186f59511f56b64d
kernel/include/linux/platform_data/lm3630a_bl.h
....@@ -1,11 +1,7 @@
1
+/* SPDX-License-Identifier: GPL-2.0-only */
12 /*
23 * Simple driver for Texas Instruments LM3630A LED Flash driver chip
34 * 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
-*
95 */
106
117 #ifndef __LINUX_LM3630A_H
....@@ -38,9 +34,11 @@
3834
3935 #define LM3630A_MAX_BRIGHTNESS 255
4036 /*
37
+ *@leda_label : optional led a label.
4138 *@leda_init_brt : led a init brightness. 4~255
4239 *@leda_max_brt : led a max brightness. 4~255
4340 *@leda_ctrl : led a disable, enable linear, enable exponential
41
+ *@ledb_label : optional led b label.
4442 *@ledb_init_brt : led b init brightness. 4~255
4543 *@ledb_max_brt : led b max brightness. 4~255
4644 *@ledb_ctrl : led b disable, enable linear, enable exponential
....@@ -50,10 +48,12 @@
5048 struct lm3630a_platform_data {
5149
5250 /* led a config. */
51
+ const char *leda_label;
5352 int leda_init_brt;
5453 int leda_max_brt;
5554 enum lm3630a_leda_ctrl leda_ctrl;
5655 /* led b config. */
56
+ const char *ledb_label;
5757 int ledb_init_brt;
5858 int ledb_max_brt;
5959 enum lm3630a_ledb_ctrl ledb_ctrl;