From: Wolfgang Denk Date: Sun, 13 Apr 2008 19:17:33 +0200 Subject: [U-Boot-Users] [PATCH] LM73 bug fix for negative temperatures and cleanup In-Reply-To: Your message of "Thu, 21 Feb 2008 13:58:11 EST." <47BDC9C3.90504@acm.org> Message-ID: <20080413171733.A84B4248AB@gemini.denx.de> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de In message <47BDC9C3.90504@acm.org> you wrote: > When the LM73 temperature sensor measures a temperature below 0 C, the > current driver does not perform sign extension, so the result returned is > 512 C too high. This patch fixes the problem, and does general cleanup > of the code. > > Signed-off-by: Larry Johnson > --- > drivers/hwmon/lm73.c | 60 +++++++++++++++++++++++++------------------------- > 1 files changed, 30 insertions(+), 30 deletions(-) Applied, thanks. Best regards, Wolfgang Denk -- DENX Software Engineering GmbH, MD: Wolfgang Denk & Detlev Zundel HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de Even if you aren't in doubt, consider the mental welfare of the per- son who has to maintain the code after you, and who will probably put parens in the wrong place. - Larry Wall in the perl man page