ChangeSet 1.1784.13.11, 2004/07/09 15:08:41-07:00, alex at alexdalton.org [PATCH] I2C: small ADM1030 fix Please find an incremental patch that applies on top of the previous one (the one from the first message of the thread) and that adds parenthesis to the macro as pointed out by Mark. Signed-off-by: Greg Kroah-Hartman <greg at kroah.com> drivers/i2c/chips/adm1031.c | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff -Nru a/drivers/i2c/chips/adm1031.c b/drivers/i2c/chips/adm1031.c --- a/drivers/i2c/chips/adm1031.c 2004-07-14 16:59:22 -07:00 +++ b/drivers/i2c/chips/adm1031.c 2004-07-14 16:59:22 -07:00 @@ -162,8 +162,8 @@ (AUTO_TEMP_MIN_FROM_REG(reg) - 5000) #define AUTO_TEMP_MAX_FROM_REG(reg) \ - AUTO_TEMP_RANGE_FROM_REG(reg) + \ - AUTO_TEMP_MIN_FROM_REG(reg) + (AUTO_TEMP_RANGE_FROM_REG(reg) + \ + AUTO_TEMP_MIN_FROM_REG(reg)) static int AUTO_TEMP_MAX_TO_REG(int val, int reg, int pwm) {