mirror of
https://github.com/wessel-novacustom/clevo-keyboard.git
synced 2024-11-15 03:34:01 +01:00
Add own struct type for kbd_led_state
This commit is contained in:
parent
0df6f7362b
commit
6e72e954e5
|
@ -158,7 +158,7 @@ MODULE_PARM_DESC(state,
|
|||
"Set the State of the Keyboard TRUE = ON | FALSE = OFF");
|
||||
|
||||
// Keyboard struct
|
||||
static struct {
|
||||
struct kbd_led_state_t {
|
||||
u8 has_extra;
|
||||
u8 state;
|
||||
|
||||
|
@ -171,7 +171,9 @@ static struct {
|
|||
|
||||
u8 brightness;
|
||||
u8 blinking_pattern;
|
||||
} keyboard = {
|
||||
};
|
||||
|
||||
static struct kbd_led_state_t keyboard = {
|
||||
.has_extra = 0,
|
||||
.state = 1,
|
||||
.color = {
|
||||
|
|
Loading…
Reference in a new issue