mirror of
https://github.com/wessel-novacustom/clevo-keyboard.git
synced 2024-11-15 03:34:01 +01:00
Move uw manual mode set/remove
This commit is contained in:
parent
64c47a6943
commit
56b5c5461d
|
@ -291,9 +291,6 @@ static void uniwill_init(void)
|
|||
uw_ec_write_addr(0x43 + i, 0x07, reg_read_return.bytes.data_low, 0x00, ®_write_return);
|
||||
}
|
||||
|
||||
// Enable manual mode
|
||||
uw_ec_write_addr(0x41, 0x07, 0x01, 0x00, ®_write_return);
|
||||
|
||||
// Zero second fan temp for detection
|
||||
uw_ec_write_addr(0x4f, 0x04, 0x00, 0x00, ®_write_return);
|
||||
}
|
||||
|
@ -302,8 +299,6 @@ static void uniwill_exit(void)
|
|||
{
|
||||
union uw_ec_write_return reg_write_return;
|
||||
|
||||
// Disable manual mode
|
||||
uw_ec_write_addr(0x41, 0x07, 0x00, 0x00, ®_write_return);
|
||||
}
|
||||
|
||||
static u32 uw_set_fan(u32 fan_index, u8 fan_speed)
|
||||
|
|
|
@ -876,6 +876,9 @@ static int uniwill_keyboard_remove(struct platform_device *dev)
|
|||
if (uw_lightbar_loaded)
|
||||
uw_lightbar_remove(dev);
|
||||
|
||||
// Disable manual mode
|
||||
uniwill_write_ec_ram(0x0741, 0x00);
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue