backlight: lp855x: Refactor DT parsing code
authorSean Paul <seanpaul@chromium.org>
Wed, 3 Dec 2014 01:39:11 +0000 (17:39 -0800)
committerLee Jones <lee.jones@linaro.org>
Tue, 9 Dec 2014 09:24:42 +0000 (09:24 +0000)
commit47726656dd67a2487bd7fafec1a73472da1db956
treed454df17fd723c3f767a8fed410434915e6b8428
parentedf387b6d1a6993103ec95ed934a6daf559535f4
backlight: lp855x: Refactor DT parsing code

This patch refactors the dt parsing code to avoid setting platform_data,
instead just setting lp->pdata directly. This facilitates easier
probe deferral since the current scheme would require us to clear out
dev->platform_data before deferring.

Cc: Stéphane Marchesin <marcheu@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>
Signed-off-by: Lee Jones <lee.jones@linaro.org>
drivers/video/backlight/lp855x_bl.c