regulator: max77686: Consistently index opmode array by rdev id
authorKrzysztof Kozlowski <k.kozlowski@samsung.com>
Tue, 4 Nov 2014 08:49:41 +0000 (09:49 +0100)
committerMark Brown <broonie@kernel.org>
Tue, 4 Nov 2014 20:41:28 +0000 (20:41 +0000)
commiteca29da9a2e832936c9077b8e69adb4f4b22b0d5
tree302b334e339687b8182a7f76dfef0fd5ba61a807
parent78ce612860ce80edbec9171b4a786ce131a9631c
regulator: max77686: Consistently index opmode array by rdev id

Mixed indexes were used for array of opmodes in max77686_data structure:
id of regulator and index of regulator_desc array.

These indexes are exactly the same but the mixture may confuse. Use
consistently the id of regulator.

Signed-off-by: Krzysztof Kozlowski <k.kozlowski@samsung.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
drivers/regulator/max77686.c
This page took 0.027902 seconds and 5 git commands to generate.