]> git.baikalelectronics.ru Git - 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)
commit347d43bf2debf89db6ad5fbb0ed7d260bb31bdb3
tree3f81e0739f2a226a246ca2df360a211988623d68
parent3bf7e70068704808f6d9a1300a505d68b9890195
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