]> git.proxmox.com Git - mirror_ubuntu-jammy-kernel.git/commit
serial: mctrl_gpio: Use gpiod flags directly
authorAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Wed, 14 Aug 2019 14:07:59 +0000 (17:07 +0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 4 Sep 2019 10:43:55 +0000 (12:43 +0200)
commit4ad8e34d1f47fe46a05bb9fb17a7b5704beed446
tree3f81e0739f2a226a246ca2df360a211988623d68
parentc140e97f803f66c0d20a891aba848c1b77880830
serial: mctrl_gpio: Use gpiod flags directly

Description of the modem line control GPIOs contain a boolean type to set
direction of the line. Since GPIO library provides an enumerator type of flags,
we may utilize it and allow a bit more flexibility on the choice of the type of
the line parameters. It also removes an additional layer of value conversion.

Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Reviewed-by: Stefan Roese <sr@denx.de>
Reviewed-by: Geert Uytterhoeven <geert+renesas@glider.be>
Link: https://lore.kernel.org/r/20190814140759.17486-1-andriy.shevchenko@linux.intel.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/tty/serial/serial_mctrl_gpio.c