Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 326190
b: refs/heads/master
c: 37f9648
h: refs/heads/master
v: v3
  • Loading branch information
Dan Carpenter authored and Guenter Roeck committed Sep 24, 2012
1 parent 356dbc7 commit fbd0ce3
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 3 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: 983b97bed21e392280e80f704e97170b76cb7f3e
refs/heads/master: 37f9648b2745fc3830f3715a601f7f94296de838
9 changes: 7 additions & 2 deletions trunk/drivers/hwmon/adt7410.c
Original file line number Diff line number Diff line change
Expand Up @@ -236,9 +236,14 @@ static ssize_t adt7410_show_t_hyst(struct device *dev,
char *buf)
{
struct sensor_device_attribute *attr = to_sensor_dev_attr(da);
struct adt7410_data *data = adt7410_update_device(dev);
struct adt7410_data *data;
int nr = attr->index;
int hyst = (data->hyst & ADT7410_T_HYST_MASK) * 1000;
int hyst;

data = adt7410_update_device(dev);
if (IS_ERR(data))
return PTR_ERR(data);
hyst = (data->hyst & ADT7410_T_HYST_MASK) * 1000;

/*
* hysteresis is stored as a 4 bit offset in the device, convert it
Expand Down

0 comments on commit fbd0ce3

Please sign in to comment.