[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <CAA1sL1QW+GYHcsE4A-1Oq3UxvKLzNzGw77bBobt_cTr7-5EKFA@mail.gmail.com>
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