Skip to content

Commit

Permalink
regulator: palmas: Simplify code by using pointer to palmas_reg_info
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Nishanth Menon authored and Mark Brown committed Jul 3, 2014
1 parent e7cf34e commit cf910b6
Showing 1 changed file with 56 additions and 53 deletions.
Loading

0 comments on commit cf910b6

Please sign in to comment.