USB: serial: ftdi_sio: report the valid GPIO lines to gpiolib
authorMarc Zyngier <maz@kernel.org>
Fri, 4 Dec 2020 16:47:37 +0000 (16:47 +0000)
committerJohan Hovold <johan@kernel.org>
Wed, 9 Dec 2020 17:06:30 +0000 (18:06 +0100)
commit11fb08cffbebcbda76b3d882c19398c7571ab355
tree340de0522c48d56bb1ecb54361aee2279fd9e620
parenta251963f76fa0226d0fdf0c4f989496f18d9ae7f
USB: serial: ftdi_sio: report the valid GPIO lines to gpiolib

Since it is pretty common for only some of the CBUS lines to be
valid as GPIO lines, let's report such validity to the rest of
the kernel.

Signed-off-by: Marc Zyngier <maz@kernel.org>
Link: https://lore.kernel.org/r/20201204164739.781812-3-maz@kernel.org
Reviewed-by: Andy Shevchenko <andy.shevchenko@gmail.com>
Reviewed-by: Linus Walleij <linus.walleij@linaro.org>
Signed-off-by: Johan Hovold <johan@kernel.org>
drivers/usb/serial/ftdi_sio.c