serdev: ttyport: call tiocmget and tiocmset ops directly
authorJohan Hovold <johan@kernel.org>
Wed, 30 Jan 2019 09:52:03 +0000 (10:52 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 30 Jan 2019 10:48:08 +0000 (11:48 +0100)
commit3c635e4f14482bc11e25461892f3ae193e5266f8
tree09a1c705927b3cca082794565592213693a750f4
parent2d908b38d40921a03225d42fd6e48eb51bffd606
serdev: ttyport: call tiocmget and tiocmset ops directly

The tty struct holds a pointer to the driver's tty operations so drop
the unnecessary driver dereference when calling tiocmget and tiocmset.

Note that this also makes the calls match the preceding sanity checks as
expected.

Signed-off-by: Johan Hovold <johan@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/tty/serdev/serdev-ttyport.c