mirror of
https://github.com/lm-sensors/lm-sensors.git
synced 2026-11-11 16:40:16 +00:00
(dan) Corrected inadvertent overwrite of part of cached data value.
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@912 7894878c-1315-0410-8ee3-d5d059ff63e0
This commit is contained in:
1 parent
9e7e663693
commit
9b95794b50
1 file changed
+3
-2
@@ -313,9 +313,10 @@ void pcf8574_status(struct i2c_client *client, int operation,
|
||||
pcf8574_update_client(client);
|
||||
tmpstatus = data->status;
|
||||
tmpstatus = (tmpstatus & 0xf0) >> 4;
|
||||
data->status &= 0x0f;
|
||||
results[0] = tmpstatus;
|
||||
results[1] = data->status;
|
||||
tmpstatus = data->status;
|
||||
tmpstatus &= 0x0f;
|
||||
results[1] = tmpstatus;
|
||||
*nrels_mag = 2;
|
||||
} else if (operation == SENSORS_PROC_REAL_WRITE) {
|
||||
if (*nrels_mag >= 1) {
|
||||
|
||||
Reference in new issue
Block a user