diff options
author | 2019-12-24 13:07:00 +0100 | |
---|---|---|
committer | 2020-01-07 12:03:28 +0100 | |
commit | 0f41dabe45df9fe68d3207c5b7af905db7c00ce4 (patch) | |
tree | 8a91e2328784e3165876ff69b1fff69283ce0cb4 /drivers/usb/cdns3/cdns3-imx.c | |
parent | gpiolib: convert the type of hwnum to unsigned int in gpiochip_get_desc() (diff) | |
download | wireguard-linux-0f41dabe45df9fe68d3207c5b7af905db7c00ce4.tar.xz wireguard-linux-0f41dabe45df9fe68d3207c5b7af905db7c00ce4.zip |
gpiolib: use gpiochip_get_desc() in linehandle_create()
Unduplicate the ngpio check by simply calling gpiochip_get_desc() and
checking its return value.
Signed-off-by: Bartosz Golaszewski <bgolaszewski@baylibre.com>
Reviewed-by: Andy Shevchenko <andy.shevchenko@gmail.com>
Reviewed-by: Linus Walleij <linus.walleij@linaro.org>
Diffstat (limited to 'drivers/usb/cdns3/cdns3-imx.c')
0 files changed, 0 insertions, 0 deletions