mfd: Conditionally add WM831x backlight subdevice
commit63aed85e3535b4603798184cc941e49de386d354
authorMark Brown <broonie@opensource.wolfsonmicro.com>
Mon, 27 Jul 2009 13:45:55 +0000 (27 14:45 +0100)
committerSamuel Ortiz <sameo@linux.intel.com>
Thu, 17 Sep 2009 07:46:58 +0000 (17 09:46 +0200)
tree9fadb2c68ec7702327b725043c2e214e0263a154
parent7e9f9fd4b8285c52c0950a1929864346de5caa6d
mfd: Conditionally add WM831x backlight subdevice

The WM831x backlight driver requires at least the specification of the
current sink to use and a maximum current to allow them to function and
will actively interfere with other users of the regulators it uses if
misconfigured so only register the subdevice for it if this platform
data has been supplied.

Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
Signed-off-by: Samuel Ortiz <sameo@linux.intel.com>
drivers/mfd/wm831x-core.c
include/linux/mfd/wm831x/pdata.h