diff options
author | Jiri Slaby <jslaby@suse.cz> | 2021-01-05 13:02:28 +0100 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2021-01-07 16:17:31 +0100 |
commit | 63f24a7fafd44899f001b8467b38fac5a534f63e (patch) | |
tree | 672602e2489bbc8a1b40961fc378a3291d786d9a /drivers/tty/vt/vt.c | |
parent | tty: serial: icom: Use DEFINE_SPINLOCK() for spinlock (diff) | |
download | linux-63f24a7fafd44899f001b8467b38fac5a534f63e.tar.xz linux-63f24a7fafd44899f001b8467b38fac5a534f63e.zip |
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>
Diffstat (limited to 'drivers/tty/vt/vt.c')
-rw-r--r-- | drivers/tty/vt/vt.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/tty/vt/vt.c b/drivers/tty/vt/vt.c index d04a162939a4..fe4fedbc0386 100644 --- a/drivers/tty/vt/vt.c +++ b/drivers/tty/vt/vt.c @@ -1036,8 +1036,7 @@ void redraw_screen(struct vc_data *vc, int is_switch) } set_cursor(vc); if (is_switch) { - set_leds(); - compute_shiftstate(); + vt_set_leds_compute_shiftstate(); notify_update(vc); } } |