power: test_power: Use enum as index for array of supplies
authorKrzysztof Kozlowski <k.kozlowski@samsung.com>
Fri, 23 Jan 2015 10:38:00 +0000 (11:38 +0100)
committerSebastian Reichel <sre@kernel.org>
Fri, 23 Jan 2015 15:03:00 +0000 (16:03 +0100)
Replace hard-coded numbers for indices of power supply array with enum.
This improves a little the readability as one does not have to guess
which power supply is associated with number.

Signed-off-by: Krzysztof Kozlowski <k.kozlowski@samsung.com>
Signed-off-by: Sebastian Reichel <sre@kernel.org>

No differences found