aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpio/gpio-altera.c
diff options
context:
space:
mode:
authorBartosz Golaszewski <[email protected]>2019-12-24 12:07:01 +0000
committerBartosz Golaszewski <[email protected]>2020-01-07 11:03:28 +0000
commit45e2360480b939173af70a2221ab63ffdaa1d325 (patch)
tree20481fb521def3d96855c87b135d07dd035c9f26 /drivers/gpio/gpio-altera.c
parentgpiolib: use gpiochip_get_desc() in linehandle_create() (diff)
downloadkernel-45e2360480b939173af70a2221ab63ffdaa1d325.tar.gz
kernel-45e2360480b939173af70a2221ab63ffdaa1d325.zip
gpiolib: use gpiochip_get_desc() in lineevent_create()
Unduplicate the ngpio check by simply calling gpiochip_get_desc() and checking its return value. Signed-off-by: Bartosz Golaszewski <[email protected]> Reviewed-by: Andy Shevchenko <[email protected]> Reviewed-by: Linus Walleij <[email protected]>
Diffstat (limited to 'drivers/gpio/gpio-altera.c')
0 files changed, 0 insertions, 0 deletions