]> git.baikalelectronics.ru Git - kernel.git/commit
regulator: gpio: fix parsing of gpio list
authorRichard Fitzgerald <rf@opensource.wolfsonmicro.com>
Wed, 19 Nov 2014 14:13:06 +0000 (14:13 +0000)
committerMark Brown <broonie@kernel.org>
Fri, 21 Nov 2014 19:25:35 +0000 (19:25 +0000)
commitfbb4c96aedf178f16b8ccafa8cff358cdf9ac192
tree545de7cfbd1851d475879b21359e1eacc252b949
parent7996af21848c08b1b2a0a8788f5f0a2c6f499f98
regulator: gpio: fix parsing of gpio list

The list of gpios is defined as optional but the code was
failing to properly handle the case of no gpios, and also
failing to check for errors reading the entry from the
devicetree.

This patch fixes the handling of optional gpios - this is a
useful feature enabling the gpio-regulator to be used as a
dummy variable voltage regulator without having to assign any
real GPIO lines.

Signed-off-by: Richard Fitzgerald <rf@opensource.wolfsonmicro.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
drivers/regulator/gpio-regulator.c