blob: 50fcce81065507ffecb07ff20a1b64ec5d022a17 [file] [log] [blame]
Greg Kroah-Hartmanb2441312017-11-01 15:07:57 +01001/* SPDX-License-Identifier: GPL-2.0 */
Joshua Covb2d0b7a2012-04-13 21:08:26 +02002#ifndef _ASM_PARISC_KBDLEDS_H
3#define _ASM_PARISC_KBDLEDS_H
4
5/*
6 * On HIL keyboards of PARISC machines there is no NumLock key and
7 * everyone expects the keypad to be used for numbers. That's why
8 * we can safely turn on the NUMLOCK bit.
9 */
10
11static inline int kbd_defleds(void)
12{
13#if defined(CONFIG_KEYBOARD_HIL) || defined(CONFIG_KEYBOARD_HIL_OLD)
14 return 1 << VC_NUMLOCK;
15#else
16 return 0;
17#endif
18}
19
20#endif /* _ASM_PARISC_KBDLEDS_H */