LCOV - code coverage report
Current view: top level - arch/x86/include/asm - kbdleds.h (source / functions) Hit Total Coverage
Test: combined.info Lines: 2 2 100.0 %
Date: 2022-03-28 16:04:14 Functions: 0 0 -
Branches: 1 2 50.0 %

           Branch data     Line data    Source code
       1                 :            : /* SPDX-License-Identifier: GPL-2.0 */
       2                 :            : #ifndef _ASM_X86_KBDLEDS_H
       3                 :            : #define _ASM_X86_KBDLEDS_H
       4                 :            : 
       5                 :            : /*
       6                 :            :  * Some laptops take the 789uiojklm,. keys as number pad when NumLock is on.
       7                 :            :  * This seems a good reason to start with NumLock off. That's why on X86 we
       8                 :            :  * ask the bios for the correct state.
       9                 :            :  */
      10                 :            : 
      11                 :            : #include <asm/setup.h>
      12                 :            : 
      13                 :        819 : static inline int kbd_defleds(void)
      14                 :            : {
      15         [ -  + ]:        819 :         return boot_params.kbd_status & 0x20 ? (1 << VC_NUMLOCK) : 0;
      16                 :            : }
      17                 :            : 
      18                 :            : #endif /* _ASM_X86_KBDLEDS_H */

Generated by: LCOV version 1.14