[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <20200103012053.GA1968@dtor-ws>
Date: Thu, 2 Jan 2020 17:20:53 -0800
From: Dmitry Torokhov <dmitry.torokhov@...il.com>
To: Patrice Chotard <patrice.chotard@...com>,
Greg Kroah-Hartman <gregkh@...uxfoundation.org>
Cc: Jiri Slaby <jslaby@...e.com>, linux-arm-kernel@...ts.infradead.org,
linux-serial@...r.kernel.org, linux-kernel@...r.kernel.org
Subject: [PATCH] tty: st-asc: switch to using devm_fwnode_gpiod_get()
devm_fwnode_get_gpiod_from_child() is going away as the name is too
unwieldy, let's switch to using the new devm_fwnode_gpiod_get().
Signed-off-by: Dmitry Torokhov <dmitry.torokhov@...il.com>
---
drivers/tty/serial/st-asc.c | 10 +++++-----
1 file changed, 5 insertions(+), 5 deletions(-)
diff --git a/drivers/tty/serial/st-asc.c b/drivers/tty/serial/st-asc.c
index fb6bbb5e22344..3a533a0f172bd 100644
--- a/drivers/tty/serial/st-asc.c
+++ b/drivers/tty/serial/st-asc.c
@@ -566,11 +566,11 @@ static void asc_set_termios(struct uart_port *port, struct ktermios *termios,
pinctrl_select_state(ascport->pinctrl,
ascport->states[NO_HW_FLOWCTRL]);
- gpiod = devm_fwnode_get_gpiod_from_child(port->dev,
- "rts",
- &np->fwnode,
- GPIOD_OUT_LOW,
- np->name);
+ gpiod = devm_fwnode_gpiod_get(port->dev,
+ of_fwhandle_node(np),
+ "rts",
+ GPIOD_OUT_LOW,
+ np->name);
if (!IS_ERR(gpiod))
ascport->rts = gpiod;
}
--
2.24.1.735.g03f4e72817-goog
--
Dmitry
Powered by blists - more mailing lists