diff options
author | Jiri Slaby <[email protected]> | 2016-10-03 11:18:33 +0200 |
---|---|---|
committer | Greg Kroah-Hartman <[email protected]> | 2016-10-27 16:37:43 +0200 |
commit | d705ff38189fcfbbfa6aa97363d30c23348ad166 (patch) | |
tree | 48b1720feab3c44d79b2d4cdfdc13c82941c1f2e /scripts/gdb/linux/config.py | |
parent | de48b0999df44b5d2ab75500a48aedff5a36f0e6 (diff) |
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 <[email protected]>
Cc: Thomas Winischhofer <[email protected]>
Cc: Tomi Valkeinen <[email protected]>
Cc: "James E.J. Bottomley" <[email protected]>
Cc: Helge Deller <[email protected]>
Cc: <[email protected]>
Cc: <[email protected]>
Cc: <[email protected]>
Signed-off-by: Greg Kroah-Hartman <[email protected]>
Diffstat (limited to 'scripts/gdb/linux/config.py')
0 files changed, 0 insertions, 0 deletions