Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 220505
b: refs/heads/master
c: 21fc977
h: refs/heads/master
i:
  220503: 19081bd
v: v3
  • Loading branch information
Jean Delvare authored and Jean Delvare committed Oct 28, 2010
1 parent 66287ba commit 55d96ac
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 7 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: 1bb3450ce5050bc677c1995a60a0ddfe9e33e7b6
refs/heads/master: 21fc977551da43ec21ae0ebb859411afd4243d2b
9 changes: 3 additions & 6 deletions trunk/drivers/hwmon/w83795.c
Original file line number Diff line number Diff line change
Expand Up @@ -1265,8 +1265,7 @@ store_temp(struct device *dev, struct device_attribute *attr,
static ssize_t
show_dts_mode(struct device *dev, struct device_attribute *attr, char *buf)
{
struct i2c_client *client = to_i2c_client(dev);
struct w83795_data *data = i2c_get_clientdata(client);
struct w83795_data *data = dev_get_drvdata(dev);
int tmp;

if (data->enable_dts & 2)
Expand Down Expand Up @@ -1296,8 +1295,7 @@ show_dts_ext(struct device *dev, struct device_attribute *attr, char *buf)
struct sensor_device_attribute_2 *sensor_attr =
to_sensor_dev_attr_2(attr);
int nr = sensor_attr->nr;
struct i2c_client *client = to_i2c_client(dev);
struct w83795_data *data = i2c_get_clientdata(client);
struct w83795_data *data = dev_get_drvdata(dev);
long temp = temp_from_reg(data->dts_ext[nr]);

return sprintf(buf, "%ld\n", temp);
Expand Down Expand Up @@ -1328,8 +1326,7 @@ store_dts_ext(struct device *dev, struct device_attribute *attr,
static ssize_t
show_temp_mode(struct device *dev, struct device_attribute *attr, char *buf)
{
struct i2c_client *client = to_i2c_client(dev);
struct w83795_data *data = i2c_get_clientdata(client);
struct w83795_data *data = dev_get_drvdata(dev);
struct sensor_device_attribute_2 *sensor_attr =
to_sensor_dev_attr_2(attr);
int index = sensor_attr->index;
Expand Down

0 comments on commit 55d96ac

Please sign in to comment.