summaryrefslogtreecommitdiff
path: root/lib/kstrtox.c
diff options
context:
space:
mode:
authorNishanth Menon <nm@ti.com>2014-06-30 15:57:36 (GMT)
committerMark Brown <broonie@linaro.org>2014-07-03 14:25:55 (GMT)
commitcf910b6b7101dae5eabaf2249b427e7698095abd (patch)
tree133873df72d8041420962c358516038f8c6b2a81 /lib/kstrtox.c
parente7cf34ef396d6ceaa776661830d4ce332da650f0 (diff)
downloadlinux-cf910b6b7101dae5eabaf2249b427e7698095abd.tar.xz
regulator: palmas: Simplify code by using pointer to palmas_reg_info
Palmas register information is part of the ddata pointer which is used through out the code by indexing off the driver data array. Instead, just do the indexing once and use the pointer to further reference structure fields. This simplifies code and prevents errors by accessing wrong variables. Signed-off-by: Nishanth Menon <nm@ti.com> Tested-by: Stephen Warren <swarren@nvidia.com> Tested-by: Keerthy <j-keerthy@ti.com> Signed-off-by: Mark Brown <broonie@linaro.org>
Diffstat (limited to 'lib/kstrtox.c')
0 files changed, 0 insertions, 0 deletions