summaryrefslogtreecommitdiff
path: root/include/linux/kbd_kern.h
diff options
context:
space:
mode:
authorJiri Slaby <jslaby@suse.cz>2021-01-05 13:02:28 +0100
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2021-01-07 16:17:31 +0100
commit63f24a7fafd44899f001b8467b38fac5a534f63e (patch)
tree672602e2489bbc8a1b40961fc378a3291d786d9a /include/linux/kbd_kern.h
parent01493ccb4436aadcaf8f33cd5d524a5d68f22836 (diff)
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 'include/linux/kbd_kern.h')
-rw-r--r--include/linux/kbd_kern.h8
1 files changed, 1 insertions, 7 deletions
diff --git a/include/linux/kbd_kern.h b/include/linux/kbd_kern.h
index 82f29aa35062..adf98004624b 100644
--- a/include/linux/kbd_kern.h
+++ b/include/linux/kbd_kern.h
@@ -71,12 +71,6 @@ extern void (*kbd_ledfunc)(unsigned int led);
extern int set_console(int nr);
extern void schedule_console_callback(void);
-/* FIXME: review locking for vt.c callers */
-static inline void set_leds(void)
-{
- tasklet_schedule(&keyboard_tasklet);
-}
-
static inline int vc_kbd_mode(struct kbd_struct * kbd, int flag)
{
return ((kbd->modeflags >> flag) & 1);
@@ -135,7 +129,7 @@ static inline void chg_vc_kbd_led(struct kbd_struct * kbd, int flag)
struct console;
-void compute_shiftstate(void);
+void vt_set_leds_compute_shiftstate(void);
/* defkeymap.c */