From f583bf7d8a156efd723c71c2cef186ce975221d9 Mon Sep 17 00:00:00 2001 From: "Mark M. Hoffman" Date: Fri, 22 Oct 2004 04:26:45 +0000 Subject: [PATCH] bugfix: typo in dynamic VID alarms also adds a couple log messages for failed transactions patch by David Knierim git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@2744 7894878c-1315-0410-8ee3-d5d059ff63e0 --- kernel/chips/lm93.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/kernel/chips/lm93.c b/kernel/chips/lm93.c index 53ce1998..d16239ae 100644 --- a/kernel/chips/lm93.c +++ b/kernel/chips/lm93.c @@ -382,6 +382,7 @@ static u8 lm93_read_byte(struct i2c_client *client, u8 reg) } /* what to return in case of error? */ + printk(KERN_ERR "lm93.o: All read byte retries failed!!\n"); return 0; } @@ -416,6 +417,7 @@ static u16 lm93_read_word(struct i2c_client *client, u8 reg) } /* what to return in case of error? */ + printk(KERN_ERR "lm93.o: All read word retries failed!!\n"); return 0; } @@ -849,12 +851,12 @@ static unsigned LM93_ALARMS_FROM_REG(struct block1_t b1) result = b1.host_status_2 & 0x3f; if (vccp_limit_type[0]) - result |= (b1.host_status_1 & 0x10) << 2; + result |= (b1.host_status_4 & 0x10) << 2; else result |= b1.host_status_2 & 0x40; if (vccp_limit_type[1]) - result |= (b1.host_status_1 & 0x20) << 2; + result |= (b1.host_status_4 & 0x20) << 2; else result |= b1.host_status_2 & 0x80;