diff options
author | Nishanth Menon <nm@ti.com> | 2014-06-30 15:57:36 (GMT) |
---|---|---|
committer | Mark Brown <broonie@linaro.org> | 2014-07-03 14:25:55 (GMT) |
commit | cf910b6b7101dae5eabaf2249b427e7698095abd (patch) | |
tree | 133873df72d8041420962c358516038f8c6b2a81 /mm/interval_tree.c | |
parent | e7cf34ef396d6ceaa776661830d4ce332da650f0 (diff) | |
download | linux-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 'mm/interval_tree.c')
0 files changed, 0 insertions, 0 deletions