Skip to content

Commit

Permalink
regulator: palmas: Simplify code by not indexing regulator_desc unnec…
Browse files Browse the repository at this point in the history
…essarily

Palmas regulator needs to full up the regulator_desc based on PMIC and
type of regulator. However, we dont need to do desc[id] every time. we
can simplify by using a pointer to desc[id] and filling up the
parameters.

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>
  • Loading branch information
Nishanth Menon authored and Mark Brown committed Jul 3, 2014
1 parent 6839cd6 commit 429222d
Showing 1 changed file with 112 additions and 136 deletions.
Loading

0 comments on commit 429222d

Please sign in to comment.