Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 2727
b: refs/heads/master
c: eb071cb
h: refs/heads/master
i:
  2725: 053ee88
  2723: 94d2d98
  2719: 5b53a37
v: v3
  • Loading branch information
Jean Delvare authored and Greg Kroah-Hartman committed Jun 22, 2005
1 parent 7dda18f commit bceda8d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 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: 5d740fe9fefda41292b5cabe70f4f8eff9f8aad0
refs/heads/master: eb071cbbc38efa4b1d707f540de2ec6283ab0894
6 changes: 2 additions & 4 deletions trunk/drivers/i2c/chips/pcf8574.c
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ SENSORS_INSMOD_2(pcf8574, pcf8574a);
struct pcf8574_data {
struct i2c_client client;

u8 read, write; /* Register values */
u8 write; /* Remember last written value */
};

static int pcf8574_attach_adapter(struct i2c_adapter *adapter);
Expand All @@ -79,9 +79,7 @@ static struct i2c_driver pcf8574_driver = {
static ssize_t show_read(struct device *dev, struct device_attribute *attr, char *buf)
{
struct i2c_client *client = to_i2c_client(dev);
struct pcf8574_data *data = i2c_get_clientdata(client);
data->read = i2c_smbus_read_byte(client);
return sprintf(buf, "%u\n", data->read);
return sprintf(buf, "%u\n", i2c_smbus_read_byte(client));
}

static DEVICE_ATTR(read, S_IRUGO, show_read, NULL);
Expand Down

0 comments on commit bceda8d

Please sign in to comment.