From: Frans Meulenbroeks Date: Wed, 4 Jan 2012 22:16:39 +0000 (+0100) Subject: hwmon: (lm75) fix checkpatch warnings X-Git-Tag: v3.3-rc1~162^2~1 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=a01a68472cb6bf9de31e1980399dd09baeab0d38;p=platform%2Fupstream%2Fkernel-adaptation-pc.git hwmon: (lm75) fix checkpatch warnings Fix checkpatch warnings in lm75.h include file Signed-off-by: Frans Meulenbroeks Signed-off-by: Guenter Roeck --- diff --git a/drivers/hwmon/lm75.h b/drivers/hwmon/lm75.h index e547a3e..89aa909 100644 --- a/drivers/hwmon/lm75.h +++ b/drivers/hwmon/lm75.h @@ -1,6 +1,6 @@ /* lm75.h - Part of lm_sensors, Linux kernel modules for hardware - monitoring + monitoring Copyright (c) 2003 Mark M. Hoffman This program is free software; you can redistribute it and/or modify @@ -37,7 +37,7 @@ static inline u16 LM75_TEMP_TO_REG(long temp) { int ntemp = SENSORS_LIMIT(temp, LM75_TEMP_MIN, LM75_TEMP_MAX); - ntemp += (ntemp<0 ? -250 : 250); + ntemp += (ntemp < 0 ? -250 : 250); return (u16)((ntemp / 500) << 7); } @@ -47,4 +47,3 @@ static inline int LM75_TEMP_FROM_REG(u16 reg) guarantee arithmetic shift and preserve the sign */ return ((s16)reg / 128) * 500; } -