Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

hwmon: (w83627ehf) Use proper exit sequence

According to the datasheet for Winbond W83627DHG the proper way to exit
the Extended Function Mode is to write 0xaa to the EFER(0x2e or 0x4e).

Signed-off-by: Jonas Jonsson <jonas@ludd.ltu.se>
Signed-off-by: Jean Delvare <khali@linux-fr.org>

authored by

Jonas Jonsson and committed by
Jean Delvare
022b75a3 f17c811d

+1
+1
drivers/hwmon/w83627ehf.c
··· 127 127 static inline void 128 128 superio_exit(int ioreg) 129 129 { 130 + outb(0xaa, ioreg); 130 131 outb(0x02, ioreg); 131 132 outb(0x02, ioreg + 1); 132 133 }