lists.openwall.net | lists / announce owl-users owl-dev john-users john-dev passwdqc-users yescrypt popa3d-users / oss-security kernel-hardening musl sabotage tlsify passwords / crypt-dev xvendor / Bugtraq Full-Disclosure linux-kernel linux-netdev linux-ext4 linux-hardening linux-cve-announce PHC | |
Open Source and information security mailing list archives
| ||
|
Date: Sat, 5 Nov 2011 15:08:28 +0300 From: Alexander Beregalov <a.beregalov@...il.com> To: Guenter Roeck <guenter.roeck@...csson.com> Cc: "linux-kernel@...r.kernel.org" <linux-kernel@...r.kernel.org>, Jean Delvare <khali@...ux-fr.org>, "stable@...nel.org" <stable@...nel.org> Subject: Re: [PATCH] hwmon: (w83627ehf): fix broken driver init On 5 November 2011 08:51, Guenter Roeck <guenter.roeck@...csson.com> wrote: > Followup - something like > const char *label = NULL; > > if (data->temp_label) > label = data->temp_label[data->temp_src[i]]; > > /* Digital source overrides analog type */ > if (label && strncmp(label, "PECI", 4) == 0) > data->temp_type[i] = 6; > else if (label && strncmp(label, "AMD", 3) == 0) > data->temp_type[i] = 5; > else if ((tmp & (0x02 << i))) > > should do it. I am open to better ideas... Works for me, thanks. You may add my Tested-by: Alexander Beregalov <a.beregalov@...il.com>
Powered by blists - more mailing lists