s390/con3215: Simplify console write operation
authorThomas Richter <tmricht@linux.ibm.com>
Tue, 30 Aug 2022 13:03:07 +0000 (15:03 +0200)
committerVasily Gorbik <gor@linux.ibm.com>
Wed, 26 Oct 2022 12:46:51 +0000 (14:46 +0200)
commit655ae931548f09ab6d583474097893a482eb4d61
tree54ae349c973d112fa540039bf9d234900232f4a8
parent247f34f7b80357943234f93f247a1ae6b6c3a740
s390/con3215: Simplify console write operation

The functions con3215_write() and tty3215_write() have nearly
identical function bodies and a slightly different function prototype.
Create function handle_write() to handle the common function
body and maintain the function prototypes.

Signed-off-by: Thomas Richter <tmricht@linux.ibm.com>
Reviewed-by: Peter Oberparleiter <oberpar@linux.ibm.com>
Signed-off-by: Vasily Gorbik <gor@linux.ibm.com>
drivers/s390/char/con3215.c