[PATCH] hwmon: (w83627ehf) Display correct temperature sensor labels for systems with NCT6775F

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Systems with NCT6775F reported temperature sensor labels for systems with
NCT6776F. This patch fixes the problem.

Signed-off-by: Guenter Roeck <guenter.roeck@xxxxxxxxxxxx>
---
This patch has to be applied on top of the other pending patches for
NCT6775F/NCT6776F support.

An updated standalone driver is available at
	http://www.roeck-us.net/linux/drivers/w83627ehf/.

 drivers/hwmon/w83627ehf.c |    5 +++--
 1 files changed, 3 insertions(+), 2 deletions(-)

diff --git a/drivers/hwmon/w83627ehf.c b/drivers/hwmon/w83627ehf.c
index 460292b..628666b 100644
--- a/drivers/hwmon/w83627ehf.c
+++ b/drivers/hwmon/w83627ehf.c
@@ -1894,9 +1894,10 @@ static int __devinit w83627ehf_probe(struct platform_device *pdev)
 				else
 					data->in6_skip = 1;
 			}
+			data->temp_label = nct6776_temp_label;
+		} else {
+			data->temp_label = nct6775_temp_label;
 		}
-
-		data->temp_label = nct6776_temp_label;
 	} else if (sio_data->kind == w83667hg_b) {
 		u8 reg;
 
-- 
1.7.3.1


_______________________________________________
lm-sensors mailing list
lm-sensors@xxxxxxxxxxxxxx
http://lists.lm-sensors.org/mailman/listinfo/lm-sensors


[Index of Archives]     [Linux Kernel]     [Linux Hardware Monitoring]     [Linux USB Devel]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [Yosemite Backpacking]

  Powered by Linux