mirror of
https://github.com/wessel-novacustom/clevo-keyboard.git
synced 2024-11-15 03:34:01 +01:00
Fix uw kbd bl rgb sysfs removal
This commit is contained in:
parent
839f13b350
commit
8db1b16c79
|
@ -750,10 +750,12 @@ static int uniwill_keyboard_remove(struct platform_device *dev)
|
|||
{
|
||||
int i;
|
||||
|
||||
if (uniwill_kbd_bl_type_rgb_single_color) {
|
||||
sysfs_remove_group(&dev->dev.kobj, &uw_kbd_bl_color_attr_group);
|
||||
}
|
||||
|
||||
// Restore previous backlight enable state
|
||||
if (uniwill_kbd_bl_enable_state_on_start != 0xff) {
|
||||
if (uniwill_kbd_bl_type_rgb_single_color)
|
||||
sysfs_remove_group(&dev->dev.kobj, &uw_kbd_bl_color_attr_group);
|
||||
uniwill_write_kbd_bl_enable(uniwill_kbd_bl_enable_state_on_start);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue