diff options
author | Milo Kim <milo.kim@ti.com> | 2015-07-20 15:45:38 +0900 |
---|---|---|
committer | Lee Jones <lee.jones@linaro.org> | 2015-08-25 08:40:44 +0100 |
commit | fe009175ae3ec3724c1414440e22a1d32d806ec5 (patch) | |
tree | f8d85f662cfe1001ef4409718f4fe4b3634c504b /include/linux/platform_data/lp855x.h | |
parent | bc0195aad0daa2ad5b0d76cce22b167bc3435590 (diff) | |
download | blackbird-obmc-linux-fe009175ae3ec3724c1414440e22a1d32d806ec5.tar.gz blackbird-obmc-linux-fe009175ae3ec3724c1414440e22a1d32d806ec5.zip |
backlight: lp855x: Use private data for regulator control
LP855x backlight device can be enabled by external VDD input. The
'supply' data is used for this purpose. It's kind of private data
which runs internally, so there is no reason to expose to the
platform data.
And devm_regulator_get() is moved from _parse_dt() to _probe().
Regulator consumer(lp855x) can control regulator not only from DT
but also from platform data configuration in a source file such
like board-*.c.
Signed-off-by: Milo Kim <milo.kim@ti.com>
Acked-by: Sean Paul <seanpaul@chromium.org>
Acked-by: Jingoo Han <jingoohan1@gmail.com>
Signed-off-by: Lee Jones <lee.jones@linaro.org>
Diffstat (limited to 'include/linux/platform_data/lp855x.h')
-rw-r--r-- | include/linux/platform_data/lp855x.h | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/include/linux/platform_data/lp855x.h b/include/linux/platform_data/lp855x.h index 9c7fd1efe495..1b2ba24e4e03 100644 --- a/include/linux/platform_data/lp855x.h +++ b/include/linux/platform_data/lp855x.h @@ -136,7 +136,6 @@ 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; @@ -145,7 +144,6 @@ struct lp855x_platform_data { unsigned int period_ns; int size_program; struct lp855x_rom_data *rom_data; - struct regulator *supply; }; #endif |