From b9b3c12b643c73a210f222c049a62707cc403f53 Mon Sep 17 00:00:00 2001 From: Werner Sembach Date: Wed, 31 Aug 2022 19:13:38 +0200 Subject: [PATCH] Fix spelling and reset value --- src/clevo_leds.h | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/clevo_leds.h b/src/clevo_leds.h index 20b5f8c..5175e9e 100644 --- a/src/clevo_leds.h +++ b/src/clevo_leds.h @@ -60,7 +60,7 @@ void clevo_leds_set_color_extern(u32 color); #define CLEVO_KB_COLOR_DEFAULT ((CLEVO_KB_COLOR_DEFAULT_RED << 16) + (CLEVO_KB_COLOR_DEFAULT_GREEN << 8) + CLEVO_KB_COLOR_DEFAULT_BLUE) static enum clevo_kb_backlight_types clevo_kb_backlight_type = CLEVO_KB_BACKLIGHT_TYPE_NONE; -static bool leds_initiaized; +static bool leds_initialized = false; static int clevo_evaluate_set_white_brightness(u8 brightness) { @@ -315,7 +315,7 @@ int clevo_leds_init(struct platform_device *dev) } } - leds_initiaized = true; + leds_initialized = true; return 0; } EXPORT_SYMBOL(clevo_leds_init); @@ -335,6 +335,8 @@ int clevo_leds_remove(struct platform_device *dev) { } } + leds_initialized = false; + return 0; } EXPORT_SYMBOL(clevo_leds_remove);