From 640369f05ee469076670407722a53288884b0988 Mon Sep 17 00:00:00 2001 From: Werner Sembach Date: Wed, 21 Sep 2022 18:14:10 +0200 Subject: [PATCH] Remove unused function --- src/clevo_keyboard.h | 15 --------------- 1 file changed, 15 deletions(-) diff --git a/src/clevo_keyboard.h b/src/clevo_keyboard.h index f68dbda..817e50f 100644 --- a/src/clevo_keyboard.h +++ b/src/clevo_keyboard.h @@ -246,21 +246,6 @@ static u8 param_kbd_backlight_mode = CLEVO_KB_MODE_DEFAULT; module_param_cb(kbd_backlight_mode, ¶m_ops_mode_ops, ¶m_kbd_backlight_mode, S_IRUSR); MODULE_PARM_DESC(kbd_backlight_mode, "Set the keyboard backlight mode"); -// TODO remove -static int brightness_validator(const char *value, - const struct kernel_param *brightness_param) -{ - int brightness = 0; - - if (kstrtoint(value, 10, &brightness) != 0 - || brightness < 0 - || brightness > 255) { - return -EINVAL; - } - - return param_set_int(value, brightness_param); -} - static void clevo_keyboard_event_callb(u32 event) { u32 key_event = event;