vt: move set_leds to keyboard.c
authorJiri Slaby <jslaby@suse.cz>
Tue, 5 Jan 2021 12:02:28 +0000 (13:02 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 7 Jan 2021 15:17:31 +0000 (16:17 +0100)
commit63f24a7fafd44899f001b8467b38fac5a534f63e
tree672602e2489bbc8a1b40961fc378a3291d786d9a
parent01493ccb4436aadcaf8f33cd5d524a5d68f22836
vt: move set_leds to keyboard.c

set_leds and compute_shiftstate are called from a single place in vt.c.
Let's combine these two into vt_set_leds_compute_shiftstate. This allows
for making keyboard_tasklet local in the next patch.

Signed-off-by: Jiri Slaby <jslaby@suse.cz>
Link: https://lore.kernel.org/r/20210105120239.28031-1-jslaby@suse.cz
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/tty/vt/keyboard.c
drivers/tty/vt/vt.c
include/linux/kbd_kern.h