diff options
author | Kim, Milo <Milo.Kim@ti.com> | 2012-09-05 06:39:33 +0200 |
---|---|---|
committer | Mark Brown <broonie@opensource.wolfsonmicro.com> | 2012-09-06 01:53:02 +0200 |
commit | 9d6da6fcc2831220a8754385ee54847e3ee6274f (patch) | |
tree | ef823e9e3267f972e13e78964c16b070f1e8016c /ipc | |
parent | regulator: lp872x: initialize the DVS mode (diff) | |
download | linux-9d6da6fcc2831220a8754385ee54847e3ee6274f.tar.xz linux-9d6da6fcc2831220a8754385ee54847e3ee6274f.zip |
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 'ipc')
0 files changed, 0 insertions, 0 deletions