Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 56c607b5 authored by Stefan Wahren's avatar Stefan Wahren Committed by Greg Kroah-Hartman
Browse files

tty: serdev-ttyport: return actual baudrate from ttyport_set_baudrate



Instead of returning the requested baudrate, we better return the
actual one because it isn't always the same.

Signed-off-by: default avatarStefan Wahren <stefan.wahren@i2se.com>
Acked-by: default avatarRob Herring <robh@kernel.org>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 352b9266
Loading
Loading
Loading
Loading
+1 −1
Original line number Original line Diff line number Diff line
@@ -151,7 +151,7 @@ static unsigned int ttyport_set_baudrate(struct serdev_controller *ctrl, unsigne


	/* tty_set_termios() return not checked as it is always 0 */
	/* tty_set_termios() return not checked as it is always 0 */
	tty_set_termios(tty, &ktermios);
	tty_set_termios(tty, &ktermios);
	return speed;
	return ktermios.c_ospeed;
}
}


static void ttyport_set_flow_control(struct serdev_controller *ctrl, bool enable)
static void ttyport_set_flow_control(struct serdev_controller *ctrl, bool enable)