tty: vt, unify scrolling functions
authorJiri Slaby <jslaby@suse.cz>
Mon, 3 Oct 2016 09:18:34 +0000 (11:18 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 27 Oct 2016 14:37:43 +0000 (16:37 +0200)
commit89765b9424eafb954b1ca167a00c2a10e4f025be
tree57517598079fb7a63406c5204caf947f9ce8a501
parentd705ff38189fcfbbfa6aa97363d30c23348ad166
tty: vt, unify scrolling functions

Both scrup and scrdown are copies of the same code except source and
destination pointers computation. Unify those functions into a single
one named con_scroll.

Note that scrdown used step to compute the destination, while scrup
did the computation explicitly. We sticked to the latter here.

Signed-off-by: Jiri Slaby <jslaby@suse.cz>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/tty/vt/vt.c