]> git.karo-electronics.de Git - linux-beck.git/commit
backlight: lp855x: Use private data for regulator control
authorMilo Kim <milo.kim@ti.com>
Mon, 20 Jul 2015 06:45:38 +0000 (15:45 +0900)
committerLee Jones <lee.jones@linaro.org>
Tue, 25 Aug 2015 07:40:44 +0000 (08:40 +0100)
commitfe009175ae3ec3724c1414440e22a1d32d806ec5
treef8d85f662cfe1001ef4409718f4fe4b3634c504b
parentbc0195aad0daa2ad5b0d76cce22b167bc3435590
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>
drivers/video/backlight/lp855x_bl.c
include/linux/platform_data/lp855x.h