vt: selection, split __set_selection_kernel
authorJiri Slaby <jslaby@suse.cz>
Wed, 15 Apr 2020 09:36:07 +0000 (11:36 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 16 Apr 2020 14:14:15 +0000 (16:14 +0200)
commit9ba4ddbc04feac9513d573e02a4360db6f598455
tree56de1d49d60bb09cf7d8223d007a7241f2c141a9
parent30c67b91973cc6a9d4118d53eaf6da059a8d3996
vt: selection, split __set_selection_kernel

Handle these actions:
* poking console
* TIOCL_SELCLEAR
* TIOCL_SELMOUSEREPORT
* start/end precomputation
* clear_selection if the console changed
in a separate function, thus making __set_selection_kernel way shorter
and more readable. The function still needs dissection, but we are
approaching.

This includes introduction of vc_selection and renaming
__set_selection_kernel to vc_do_selection.

Signed-off-by: Jiri Slaby <jslaby@suse.cz>
Link: https://lore.kernel.org/r/20200415093608.10348-1-jslaby@suse.cz
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/tty/vt/selection.c