summaryrefslogtreecommitdiffstats
path: root/drivers/leds
diff options
context:
space:
mode:
authorKim, Milo <Milo.Kim@ti.com>2012-09-05 04:39:33 +0000
committerMark Brown <broonie@opensource.wolfsonmicro.com>2012-09-06 07:53:02 +0800
commit9d6da6fcc2831220a8754385ee54847e3ee6274f (patch)
treeef823e9e3267f972e13e78964c16b070f1e8016c /drivers/leds
parent86b3fef0c7b5aba1c64ac1e02e68267aeaff44a6 (diff)
downloadop-kernel-dev-9d6da6fcc2831220a8754385ee54847e3ee6274f.zip
op-kernel-dev-9d6da6fcc2831220a8754385ee54847e3ee6274f.tar.gz
regulator: lp872x: fix NULL pointer access problem
The lp872x_set_dvs() is used for changing the DVS pin state. This function works only when the DVS platform data is defined. So don't assume that DVS data is always valid. In case the platform data is not defined, the DVS data is set to NULL for skipping the DVS pin control. DVS selection and GPIO pin number are used for the LP872x DVS pin control. For better readability, DVS selection argument is added in lp872x_set_dvs(). Signed-off-by: Milo(Woogyom) Kim <milo.kim@ti.com> Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
Diffstat (limited to 'drivers/leds')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud