]> git.ipfire.org Git - people/arne_f/kernel.git/commitdiff
hwmon: (nct6775) Fix names of DIMM temperature sources
authorGuenter Roeck <linux@roeck-us.net>
Thu, 20 Sep 2018 04:52:49 +0000 (21:52 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 24 Nov 2019 07:21:00 +0000 (08:21 +0100)
[ Upstream commit 3be8c9d103534fadc72b3e174613f37aa19fa423 ]

For NCT6795D and NCT6796D, the DIMM temperature sources are named
"Agent[01] Dimm [01]" per datasheet. Match names in datasheets to
avoid confusion.

Signed-off-by: Guenter Roeck <linux@roeck-us.net>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/hwmon/nct6775.c

index eba692cddbdee721ece32e4b943d1a244575e991..559101a1c1367a69b2d5402fcac24ff67c5f4de5 100644 (file)
@@ -704,10 +704,10 @@ static const char *const nct6795_temp_label[] = {
        "PCH_CHIP_TEMP",
        "PCH_CPU_TEMP",
        "PCH_MCH_TEMP",
-       "PCH_DIM0_TEMP",
-       "PCH_DIM1_TEMP",
-       "PCH_DIM2_TEMP",
-       "PCH_DIM3_TEMP",
+       "Agent0 Dimm0",
+       "Agent0 Dimm1",
+       "Agent1 Dimm0",
+       "Agent1 Dimm1",
        "BYTE_TEMP0",
        "BYTE_TEMP1",
        "PECI Agent 0 Calibration",
@@ -742,10 +742,10 @@ static const char *const nct6796_temp_label[] = {
        "PCH_CHIP_TEMP",
        "PCH_CPU_TEMP",
        "PCH_MCH_TEMP",
-       "PCH_DIM0_TEMP",
-       "PCH_DIM1_TEMP",
-       "PCH_DIM2_TEMP",
-       "PCH_DIM3_TEMP",
+       "Agent0 Dimm0",
+       "Agent0 Dimm1",
+       "Agent1 Dimm0",
+       "Agent1 Dimm1",
        "BYTE_TEMP0",
        "BYTE_TEMP1",
        "PECI Agent 0 Calibration",