linux_dsm_epyc7002/drivers/usb/misc/sisusbvga
Jiri Slaby 35cc56f9a3 tty: vgacon+sisusb, move scrolldelta to a common helper
The code is mirrorred in scrolldelta implementations of both vgacon
and sisusb. Let's move the code to a separate helper where we will
perform a common cleanup and further changes.

While we are moving the code, make it linear and save one indentation
level. This is done by returning from the "!lines" then-branch
immediatelly. This allows flushing the else-branch 1 level to the
left, obviously.

Few more new lines and comments were added too.

And do not forget to export the helper function given sisusb can be
built as module.

Signed-off-by: Jiri Slaby <jslaby@suse.cz>
Cc: Thomas Winischhofer <thomas@winischhofer.net>
Cc: Tomi Valkeinen <tomi.valkeinen@ti.com>
Cc: <linux-fbdev@vger.kernel.org>
Cc: <linux-usb@vger.kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2016-10-27 16:37:44 +02:00
..
Kconfig console/font: Refactor font support code selection logic 2013-06-23 15:55:16 +02:00
Makefile usb: makefile cleanup 2010-10-22 10:22:07 -07:00
sisusb_con.c tty: vgacon+sisusb, move scrolldelta to a common helper 2016-10-27 16:37:44 +02:00
sisusb_init.c usb: delete non-required instances of include <linux/init.h> 2014-01-08 15:01:39 -08:00
sisusb_init.h sisusb: remove dummy variables 2016-06-25 09:04:48 -07:00
sisusb_struct.h USB: SisUSB2VGA: Lindent drivers/usb/misc/sisusbvga/sisusb_struct.h 2007-10-12 14:55:13 -07:00
sisusb.c usb: misc: sisusbvga: sisusb: don't print error when allocating urb fails 2016-08-15 15:54:27 +02:00
sisusb.h USB: sisusbvga: drop usb_buffer_alloc 2009-09-23 06:46:19 -07:00