Add own struct type for kbd_led_state

This commit is contained in:
Richard Sailer 2019-08-18 05:55:43 +02:00
parent 0df6f7362b
commit 6e72e954e5

View file

@ -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 = {