Re: [PATCH v4 1/3] hwmon: (lm90) Define status bits

2013-10-30 Thread Wei Ni
On 10/31/2013 10:47 AM, Wei Ni wrote: > On 10/30/2013 11:41 PM, Jean Delvare wrote: >> Hi Wei, >> >> On Wed, 7 Aug 2013 14:18:24 +0800, Wei Ni wrote: >>> Add bit defines for the status register. And add a function >>> lm90_is_tripped() which will read status register and return >>> tripped or not,

Re: [PATCH v4 1/3] hwmon: (lm90) Define status bits

2013-10-30 Thread Wei Ni
On 10/30/2013 11:41 PM, Jean Delvare wrote: > Hi Wei, > > On Wed, 7 Aug 2013 14:18:24 +0800, Wei Ni wrote: >> Add bit defines for the status register. And add a function >> lm90_is_tripped() which will read status register and return >> tripped or not, then lm90_alert can call it directly, and in

Re: [PATCH v4 1/3] hwmon: (lm90) Define status bits

2013-10-30 Thread Guenter Roeck
On Wed, Oct 30, 2013 at 04:41:13PM +0100, Jean Delvare wrote: > Hi Wei, > > On Wed, 7 Aug 2013 14:18:24 +0800, Wei Ni wrote: > > Add bit defines for the status register. And add a function > > lm90_is_tripped() which will read status register and return > > tripped or not, then lm90_alert can call

Re: [PATCH v4 1/3] hwmon: (lm90) Define status bits

2013-10-30 Thread Jean Delvare
Hi Wei, On Wed, 7 Aug 2013 14:18:24 +0800, Wei Ni wrote: > Add bit defines for the status register. And add a function > lm90_is_tripped() which will read status register and return > tripped or not, then lm90_alert can call it directly, and in the > future the IRQ thread also can use it. > > Sig

[PATCH v4 1/3] hwmon: (lm90) Define status bits

2013-08-06 Thread Wei Ni
Add bit defines for the status register. And add a function lm90_is_tripped() which will read status register and return tripped or not, then lm90_alert can call it directly, and in the future the IRQ thread also can use it. Signed-off-by: Wei Ni --- drivers/hwmon/lm90.c | 75 +