]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
keyboard: Use BIOS Keyboard variable to set Numlock
authorJoshua Cov <joshuacov@googlemail.com>
Fri, 13 Apr 2012 19:08:26 +0000 (21:08 +0200)
committerH. Peter Anvin <hpa@zytor.com>
Tue, 8 May 2012 21:19:41 +0000 (14:19 -0700)
commitb2d0b7a061bfddd27155c7dcd53f365d9dc0c7c3
tree8063c6df479723b7adc509ee2aad728889faa9a4
parentc2c21e9bb17549e8add4ff76931bcec2e2d3ad48
keyboard: Use BIOS Keyboard variable to set Numlock

The PC BIOS does provide a NUMLOCK flag containing the desired state
of this LED. This patch sets the current state according to the data
in the bios.

[ hpa: fixed __weak declaration without definition, changed "inline"
  to "static inline" ]

Signed-Off-By: Joshua Cov <joshuacov@googlemail.com>
Link: http://lkml.kernel.org/r/CAKL7Q7rvq87TNS1T_Km8fW_5OzS%2BSbYazLXKxW-6ztOxo3zorg@mail.gmail.com
Acked-by: Alan Cox <alan@lxorguk.ukuu.org.uk>
Signed-off-by: H. Peter Anvin <hpa@zytor.com>
arch/parisc/include/asm/kbdleds.h [new file with mode: 0644]
arch/x86/boot/main.c
arch/x86/include/asm/bootparam.h
arch/x86/include/asm/kbdleds.h [new file with mode: 0644]
drivers/tty/vt/keyboard.c