backlight: lp855x: Add supply regulator to lp855x
This patch adds a supply regulator to the lp855x platform data to facilitate powering on/off the 3V rail attached to the controller. Cc: Stéphane Marchesin <marcheu@chromium.org> Cc: Aaron Durbin <adurbin@chromium.org> Signed-off-by: Sean Paul <seanpaul@chromium.org> Acked-by: Milo Kim <milo.kim@ti.com> Acked-by: Bryan Wu <cooloney@gmail.com> Acked-by: Jingoo Han <jg1.han@samsung.com> Signed-off-by: Lee Jones <lee.jones@linaro.org>
This commit is contained in:
@@ -136,6 +136,7 @@ struct lp855x_rom_data {
|
||||
Only valid when mode is PWM_BASED.
|
||||
* @size_program : total size of lp855x_rom_data
|
||||
* @rom_data : list of new eeprom/eprom registers
|
||||
* @supply : regulator that supplies 3V input
|
||||
*/
|
||||
struct lp855x_platform_data {
|
||||
const char *name;
|
||||
@@ -144,6 +145,7 @@ struct lp855x_platform_data {
|
||||
unsigned int period_ns;
|
||||
int size_program;
|
||||
struct lp855x_rom_data *rom_data;
|
||||
struct regulator *supply;
|
||||
};
|
||||
|
||||
#endif
|
||||
|
Reference in New Issue
Block a user