diff options
author | Nishanth Menon <nm@ti.com> | 2016-05-05 19:29:49 -0500 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2016-05-06 18:15:17 +0100 |
commit | 036d193d3337365e0d69cff9bb2593bfc1210e7b (patch) | |
tree | cff0a27bb78eb07ea041cde2655759ebe341233d /drivers/gpu/drm/amd/amdgpu/amdgpu_pm.c | |
parent | e0341f1732237777d65bdda7184ea4b11fb31d53 (diff) |
regulator: tps65917/palmas: Simplify multiple dereference of ddata->palmas_matches[idx]
Converting dt to platform data logic involves picking up information
that is unique per regulator, however we can improve readability of
the code by dereferencing ddata->palmas_matches[idx] once in the loop.
While at it fix reuse of generic palmas_matches common variable
while reporting error for a specific regulator (which may be from
65917/palmas list).
Signed-off-by: Nishanth Menon <nm@ti.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_pm.c')
0 files changed, 0 insertions, 0 deletions