mirror of
https://github.com/lm-sensors/lm-sensors.git
synced 2026-11-06 15:51:34 +00:00
Refine byte read retry on error. Patch by David Knierim.
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@2748 7894878c-1315-0410-8ee3-d5d059ff63e0
This commit is contained in:
1 parent
ac53193d98
commit
3457c6112a
1 file changed
+2
-1
+2
-1
@@ -492,10 +492,11 @@ static int lm87_read_value(struct i2c_client *client, u8 reg)
|
||||
|
||||
printk(KERN_WARNING "lm87.o: Read byte data failed, "
|
||||
"address 0x%02x\n", reg);
|
||||
mdelay(i);
|
||||
mdelay(i + 3);
|
||||
}
|
||||
|
||||
/* <TODO> what to return in case of error? */
|
||||
printk(KERN_ERR "lm87.o: All read byte retries failed!!\n");
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user