kbdleds.h 477 B

1234567891011121314151617181920
  1. /* SPDX-License-Identifier: GPL-2.0 */
  2. #ifndef _ASM_PARISC_KBDLEDS_H
  3. #define _ASM_PARISC_KBDLEDS_H
  4. /*
  5. * On HIL keyboards of PARISC machines there is no NumLock key and
  6. * everyone expects the keypad to be used for numbers. That's why
  7. * we can safely turn on the NUMLOCK bit.
  8. */
  9. static inline int kbd_defleds(void)
  10. {
  11. #if defined(CONFIG_KEYBOARD_HIL) || defined(CONFIG_KEYBOARD_HIL_OLD)
  12. return 1 << VC_NUMLOCK;
  13. #else
  14. return 0;
  15. #endif
  16. }
  17. #endif /* _ASM_PARISC_KBDLEDS_H */