Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 220484
b: refs/heads/master
c: 6f9dfd8
h: refs/heads/master
v: v3
  • Loading branch information
Jean Delvare authored and Jean Delvare committed Oct 28, 2010
1 parent 3214ee8 commit 5b1fd0c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 80646b95863ba282330d07290c79254c2f002139
refs/heads/master: 6f9dfd85f7b14dd3ea87106909dc54def08947b1
6 changes: 3 additions & 3 deletions trunk/drivers/hwmon/w83795.c
Original file line number Diff line number Diff line change
Expand Up @@ -1335,7 +1335,7 @@ show_in(struct device *dev, struct device_attribute *attr, char *buf)
case IN_READ:
/* calculate this value again by sensors as sensors3.conf */
if ((index >= 17) &&
((data->has_gain >> (index - 17)) & 1))
!((data->has_gain >> (index - 17)) & 1))
val *= 8;
break;
case IN_MAX:
Expand All @@ -1345,7 +1345,7 @@ show_in(struct device *dev, struct device_attribute *attr, char *buf)
val |= (data->in_lsb[lsb_idx][nr] >>
IN_LSB_SHIFT_IDX[lsb_idx][IN_LSB_SHIFT]) & 0x03;
if ((index >= 17) &&
((data->has_gain >> (index - 17)) & 1))
!((data->has_gain >> (index - 17)) & 1))
val *= 8;
break;
}
Expand Down Expand Up @@ -1373,7 +1373,7 @@ store_in(struct device *dev, struct device_attribute *attr,
val = in_to_reg(index, val);

if ((index >= 17) &&
((data->has_gain >> (index - 17)) & 1))
!((data->has_gain >> (index - 17)) & 1))
val /= 8;
val = SENSORS_LIMIT(val, 0, 0x3FF);
mutex_lock(&data->update_lock);
Expand Down

0 comments on commit 5b1fd0c

Please sign in to comment.