projects
/
platform
/
kernel
/
linux-amlogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8a7d999
)
MCU: FAN: fixup speed level
author
Nick Xie
<nick@khadas.com>
Wed, 26 Jun 2019 07:02:07 +0000
(15:02 +0800)
committer
Nick Xie
<nick@khadas.com>
Wed, 26 Jun 2019 07:02:07 +0000
(15:02 +0800)
Signed-off-by: Nick Xie <nick@khadas.com>
drivers/misc/khadas-mcu.c
patch
|
blob
|
history
diff --git
a/drivers/misc/khadas-mcu.c
b/drivers/misc/khadas-mcu.c
index
558d5ec
..
aa90e12
100644
(file)
--- a/
drivers/misc/khadas-mcu.c
+++ b/
drivers/misc/khadas-mcu.c
@@
-202,6
+202,8
@@
static void khadas_fan_level_set(struct khadas_fan_data *fan_data, int level)
data[0] = KHADAS_FAN_SPEED_HIGH;
}
+ g_mcu_data->fan_data.level = data[0];
+
ret = mcu_i2c_write_regs(g_mcu_data->client, MCU_FAN_CTRL, data, 1);
if (ret < 0) {
printk("write fan control err\n");