regulator: gpio-regulator: fix forgotten gpios-states reading
authorHeiko Stuebner <heiko.stuebner@bqreaders.com>
Thu, 13 Feb 2014 15:34:32 +0000 (16:34 +0100)
committerSimon Horman <horms@verge.net.au>
Fri, 5 Dec 2014 00:21:41 +0000 (09:21 +0900)
commitdb401539d08ea87e5ce7aa586666087897a1e35b
tree4b54a4e70f21a27ca0c50421590fcc44cc90ceab
parentb1e0a0aef658dd8159213e9d04fa784edf50c5c3
regulator: gpio-regulator: fix forgotten gpios-states reading

Commit 934624d6e9f0 ("regulator: gpio-regulator: do not open-code counting
and access of dt array elements") forgot to convert the recently added
gpios-states property using the same pattern.

Convert this instance to use the of-helpers too, resolving the build error.

Signed-off-by: Heiko Stuebner <heiko.stuebner@bqreaders.com>
Signed-off-by: Mark Brown <broonie@linaro.org>
(cherry picked from commit 1f5a9623eb4300a722eab2f6c6a31a194c804cec)
Signed-off-by: Simon Horman <horms+renesas@verge.net.au>
drivers/regulator/gpio-regulator.c