From: Jean Delvare Subject: Re: [PATCH RESEND v4 1/3] hwmon: (lm90) Define status bits Date: Mon, 4 Nov 2013 09:31:42 +0100 Message-ID: <20131104093142.6a02b212@endymion.delvare> References: <1383188862-4157-1-git-send-email-wni@nvidia.com> Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <1383188862-4157-1-git-send-email-wni-DDmLM1+adcrQT0dZR+AlfA@public.gmane.org> Sender: linux-tegra-owner-u79uwXL29TY76Z2rM5mHXA@public.gmane.org To: Wei Ni Cc: linux-0h96xk9xTtrk1uMJSBkQmQ@public.gmane.org, lm-sensors-GZX6beZjE8VD60Wz+7aTrA@public.gmane.org, linux-tegra-u79uwXL29TY76Z2rM5mHXA@public.gmane.org List-Id: linux-tegra@vger.kernel.org On Thu, 31 Oct 2013 11:07:41 +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. > > Signed-off-by: Wei Ni > --- > drivers/hwmon/lm90.c | 75 ++++++++++++++++++++++++++++++++++---------------- > 1 file changed, 51 insertions(+), 24 deletions(-) > (...) Looks good now. Applied, thanks. -- Jean Delvare