OSDN Git Service

vt: selection, create struct from console selection globals
authorJiri Slaby <jslaby@suse.cz>
Wed, 19 Feb 2020 07:39:47 +0000 (08:39 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 6 Mar 2020 07:35:39 +0000 (08:35 +0100)
commit9256d09f1da178f67d37b054cb4aaadf816bf05b
tree359a1ea7744d7fc2cfd5f8e10cbfb6a88f3c77bf
parent555b4ef79797f10079760b3c8712d9ed99c9d680
vt: selection, create struct from console selection globals

Move all the selection global variables to a structure vc_selection,
instantiated as vc_sel. This helps to group all the variables together
and see what should be protected by the embedded lock too.

It might be used later also for per-console selection support.

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