]> git.baikalelectronics.ru Git - kernel.git/commit
regulator: max8973: get rid of extra variable for gpio validity
authorLaxman Dewangan <ldewangan@nvidia.com>
Wed, 6 May 2015 12:50:10 +0000 (18:20 +0530)
committerMark Brown <broonie@kernel.org>
Thu, 21 May 2015 21:09:52 +0000 (22:09 +0100)
commitb519104243e086d3ad2b8f2bb09d7b5ff4ed4c84
tree09e9d6286db7946cefc8b7386e27252e6f0e160d
parent05eb36d7a0fd74b3e801c081faceeabe89c3efc8
regulator: max8973: get rid of extra variable for gpio validity

To find that dvs-gpio is valid or not, gpio API gpio_is_valid()
can be directly used instead of intermediate variable.

Removing the extra variable and using the gpio_is_valid().

Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
drivers/regulator/max8973-regulator.c