s390/con3270: add helper to get number of tty rows
authorSven Schnelle <svens@linux.ibm.com>
Thu, 24 Nov 2022 19:32:20 +0000 (20:32 +0100)
committerHeiko Carstens <hca@linux.ibm.com>
Mon, 9 Jan 2023 13:33:59 +0000 (14:33 +0100)
commit9eb99b941ba78a0aad996a3c129ee2a19507d87e
tree39b10407f21528ebe4da658d11d637fda77045b0
parent1fefd62fee50d4455ef5ebf65e22b282d773ed7d
s390/con3270: add helper to get number of tty rows

There a quite a few places using 'tp->view.rows - 2'.
Add a helper function for this. This will also be used
when a function key help line will be added.

Signed-off-by: Sven Schnelle <svens@linux.ibm.com>
Acked-by: Heiko Carstens <hca@linux.ibm.com>
Tested-by: Niklas Schnelle <schnelle@linux.ibm.com>
Signed-off-by: Heiko Carstens <hca@linux.ibm.com>
drivers/s390/char/con3270.c