summaryrefslogtreecommitdiffstats
path: root/drivers/hwmon
diff options
context:
space:
mode:
authorAhmad Khalifa <ahmad@khalifa.ws>2023-07-15 15:58:31 +0100
committerGuenter Roeck <linux@roeck-us.net>2023-07-15 09:12:15 -0700
commit368da76be8df60e9228a41b7d46e7836a67158fd (patch)
tree0c21ef9ad8d2af3ae5e4c5039e4fdae4499a77f3 /drivers/hwmon
parent06c2afb862f9da8dc5efa4b6076a0e48c3fbaaa5 (diff)
downloadlinux-stable-368da76be8df60e9228a41b7d46e7836a67158fd.tar.gz
linux-stable-368da76be8df60e9228a41b7d46e7836a67158fd.tar.bz2
linux-stable-368da76be8df60e9228a41b7d46e7836a67158fd.zip
hwmon: (nct6775) Fix register for nct6799
Datasheet and variable name point to 0xe6 Fixes: aee395bb1905 ("hwmon: (nct6755) Add support for NCT6799D") Signed-off-by: Ahmad Khalifa <ahmad@khalifa.ws> Link: https://lore.kernel.org/r/20230715145831.1304633-1-ahmad@khalifa.ws Signed-off-by: Guenter Roeck <linux@roeck-us.net>
Diffstat (limited to 'drivers/hwmon')
-rw-r--r--drivers/hwmon/nct6775-platform.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/hwmon/nct6775-platform.c b/drivers/hwmon/nct6775-platform.c
index ada867d6b98a..a409d7a0b813 100644
--- a/drivers/hwmon/nct6775-platform.c
+++ b/drivers/hwmon/nct6775-platform.c
@@ -586,7 +586,7 @@ nct6775_check_fan_inputs(struct nct6775_data *data, struct nct6775_sio_data *sio
int creb;
int cred;
- cre6 = sio_data->sio_inb(sio_data, 0xe0);
+ cre6 = sio_data->sio_inb(sio_data, 0xe6);
sio_data->sio_select(sio_data, NCT6775_LD_12);
cre0 = sio_data->sio_inb(sio_data, 0xe0);