gpiolib: use gpiochip_get_desc() where applicable
authorBartosz Golaszewski <bgolaszewski@baylibre.com>
Wed, 19 Feb 2020 09:47:02 +0000 (10:47 +0100)
committerLinus Walleij <linus.walleij@linaro.org>
Fri, 21 Feb 2020 14:51:32 +0000 (15:51 +0100)
commit1739a2d852265977836152be43073ead5c64d1ea
tree2208c05ae64e1459a8b87d5d99ee9867e91572ce
parent023892ec80f0efcffe22045e92bb89f3f1480f2d
gpiolib: use gpiochip_get_desc() where applicable

Whenever retrieving a descriptor from a gpiochip: use the provided
helper which checks for errors.

Signed-off-by: Bartosz Golaszewski <bgolaszewski@baylibre.com>
Link: https://lore.kernel.org/r/20200219094702.6463-1-brgl@bgdev.pl
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
drivers/gpio/gpiolib.c