linux/drivers/usb/misc/sisusbvga
Jiri Slaby d705ff3818 tty: vt, cleanup and document con_scroll
Scrolling helpers scrup and scrdown both accept 'top' and 'bottom' as
unsigned int. Number of lines 'nr' is accepted as int, but all callers
pass down unsigned too. So change the type of 'nr' to unsigned too.
Now, promote unsigned int from the helpers up to the con_scroll
hook which actually accepted all those as signed int.

Next, the 'dir' parameter can have only two values and we define
constants for that: SM_UP and SM_DOWN. Switch them to enum and do
proper type checking on 'dir' too.

Finally, document the behaviour of the hook.

Signed-off-by: Jiri Slaby <jslaby@suse.cz>
Cc: Thomas Winischhofer <thomas@winischhofer.net>
Cc: Tomi Valkeinen <tomi.valkeinen@ti.com>
Cc: "James E.J. Bottomley" <jejb@parisc-linux.org>
Cc: Helge Deller <deller@gmx.de>
Cc: <linux-fbdev@vger.kernel.org>
Cc: <linux-usb@vger.kernel.org>
Cc: <linux-parisc@vger.kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2016-10-27 16:37:43 +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: vt, cleanup and document con_scroll 2016-10-27 16:37:43 +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
sisusb.c usb: misc: sisusbvga: sisusb: don't print error when allocating urb fails 2016-08-15 15:54:27 +02:00
sisusb.h