]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/commit
max8903: removes non zero validity checks on gpios.
authorChris Lapa <chris@lapa.com.au>
Fri, 24 Jun 2016 02:26:10 +0000 (12:26 +1000)
committerSebastian Reichel <sre@kernel.org>
Tue, 28 Jun 2016 18:05:41 +0000 (20:05 +0200)
commit3525e5c5b3dea03ff999c53be6392819165df820
tree000cf21a53dad6c897a23081e4d9e9648ccdc5ed
parent88a469bbb2012448db266f3783448c673be7208a
max8903: removes non zero validity checks on gpios.

Prior to this commit a zero gpio was treated as invalid. Whereas
gpio_is_valid() will treat a zero gpio as valid.

This commit removes the confusion and explicitly uses gpio_is_valid()
throughout. Which in turn results in several of the error messages becoming
redundant and thus removed.

Signed-off-by: Chris Lapa <chris@lapa.com.au>
Reviewed-by: Krzysztof Kozlowski <k.kozlowski@samsung.com>
Signed-off-by: Sebastian Reichel <sre@kernel.org>
drivers/power/max8903_charger.c