]> asedeno.scripts.mit.edu Git - linux.git/commit
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)
committerMark Brown <broonie@linaro.org>
Fri, 14 Feb 2014 14:58:57 +0000 (14:58 +0000)
commit1f5a9623eb4300a722eab2f6c6a31a194c804cec
treec83ec1173b71bb9be16d0900522e5cd032aa7767
parent934624d6e9f0b3d41557c4105c286e8daeaadb4e
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>
drivers/regulator/gpio-regulator.c