]> git.proxmox.com Git - mirror_ubuntu-jammy-kernel.git/commit
staging:iio:magnetometer:ak8975: Don't assume 0 is an invalid GPIO
authorStephen Warren <swarren@nvidia.com>
Wed, 21 Sep 2011 10:16:00 +0000 (11:16 +0100)
committerGreg Kroah-Hartman <gregkh@suse.de>
Tue, 27 Sep 2011 00:31:55 +0000 (17:31 -0700)
commit7c6c936832a46e86b0fac654923ce5015bdc80ee
tree03ebaf1107bf0437617350001a6cba31cfaab740
parentf6d838d7fecfd4e59a4ce7bdfb16165add36d26e
staging:iio:magnetometer:ak8975: Don't assume 0 is an invalid GPIO

gpio_is_valid() is the defined mechanism to determine whether a GPIO is
valid. Use this instead of assuming that 0 is an invalid GPIO.

Signed-off-by: Stephen Warren <swarren@nvidia.com>
Acked-by: Andrew Chew <achew@nvidia.com>
Signed-off-by: Jonathan Cameron <jic23@cam.ac.uk>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/staging/iio/magnetometer/ak8975.c