From: Guenter Roeck Date: Thu, 10 Mar 2011 23:47:14 +0000 (-0800) Subject: hwmon: (w83627ehf) Display correct temperature sensor labels for systems with NCT6775F X-Git-Tag: firefly_0821_release~7613^2~2176^2~11 X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=02309ad2b8cbcf45260dd9bb5a527799a612c161;p=firefly-linux-kernel-4.4.55.git hwmon: (w83627ehf) Display correct temperature sensor labels for systems with NCT6775F Systems with NCT6775F reported temperature sensor labels for systems with NCT6776F. This patch fixes the problem. Signed-off-by: Guenter Roeck --- diff --git a/drivers/hwmon/w83627ehf.c b/drivers/hwmon/w83627ehf.c index d18031944960..f2b377c56a3a 100644 --- a/drivers/hwmon/w83627ehf.c +++ b/drivers/hwmon/w83627ehf.c @@ -1899,9 +1899,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;