]> git.baikalelectronics.ru Git - kernel.git/commit
serial: st-asc: Use new GPIOD API to obtain RTS pin
authorLee Jones <lee.jones@linaro.org>
Wed, 8 Feb 2017 09:24:25 +0000 (09:24 +0000)
committerLinus Walleij <linus.walleij@linaro.org>
Tue, 14 Mar 2017 09:36:41 +0000 (10:36 +0100)
commit7eb19c536c15e35d0418750bf2c5ee59dc586b45
tree8114aabec73947d515d2b9229d667d26abcd0be3
parent77b9e814bd5fd1249742202c4888fe1d710dc234
serial: st-asc: Use new GPIOD API to obtain RTS pin

The commits mentioned below adapt the GPIO API to allow more information
to be passed directly through devm_get_gpiod_from_child() in the first
instance.  This facilitates the removal of subsequent calls, such as
gpiod_direction_output().  This patch firstly moves to utilise the new
API and secondly removes the now superfluous call do set the direction.

Reported-by: Stephen Rothwell <sfr@canb.auug.org.au>
Suggested-by: Boris Brezillon <boris.brezillon@free-electrons.com>
Signed-off-by: Lee Jones <lee.jones@linaro.org>
[Also drop the header file dummies that only this driver was using]
Acked-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
drivers/tty/serial/st-asc.c
include/linux/gpio/consumer.h