From 6e72e954e5f9a07030c9d151d2fcf4ecff21bf0f Mon Sep 17 00:00:00 2001 From: Richard Sailer Date: Sun, 18 Aug 2019 05:55:43 +0200 Subject: [PATCH] Add own struct type for kbd_led_state --- src/tuxedo_keyboard.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/tuxedo_keyboard.c b/src/tuxedo_keyboard.c index bdb2cac..54c5912 100644 --- a/src/tuxedo_keyboard.c +++ b/src/tuxedo_keyboard.c @@ -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 = {