linux/drivers/video/console
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
..
bitblit.c framebuffer: fix border color 2014-09-30 13:39:16 +03:00
dummycon.c tty: vt, remove consw->con_bmove 2016-06-25 09:04:48 -07:00
fbcon_ccw.c framebuffer: fix border color 2014-09-30 13:39:16 +03:00
fbcon_cw.c framebuffer: fix border color 2014-09-30 13:39:16 +03:00
fbcon_rotate.c include cleanup: Update gfp.h and slab.h includes to prepare for breaking implicit slab.h inclusion from percpu.h 2010-03-30 22:02:32 +09:00
fbcon_rotate.h
fbcon_ud.c framebuffer: fix border color 2014-09-30 13:39:16 +03:00
fbcon.c tty: vt, cleanup and document con_scroll 2016-10-27 16:37:43 +02:00
fbcon.h fbcon: use the cursor blink interval provided by vt 2015-05-10 19:15:52 +02:00
Kconfig fbdev changes for 4.3 2015-09-08 16:42:55 -07:00
Makefile lib: Move fonts from drivers/video/console/ to lib/fonts/ 2013-06-28 10:28:22 +02:00
mdacon.c tty: vt, cleanup and document con_scroll 2016-10-27 16:37:43 +02:00
newport_con.c tty: vt, cleanup and document con_scroll 2016-10-27 16:37:43 +02:00
softcursor.c drivers/video/console/softcursor.c: remove redundant NULL check before kfree() 2012-12-10 11:33:53 +02:00
sticon.c tty: vt, cleanup and document con_scroll 2016-10-27 16:37:43 +02:00
sticore.c video: move fbdev to drivers/video/fbdev 2014-04-17 08:10:19 +03:00
tileblit.c fbcon: Bugfix soft cursor detection in Tile Blitting 2011-03-22 16:41:08 +09:00
vgacon.c tty: vt, cleanup and document con_scroll 2016-10-27 16:37:43 +02:00