Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 262961
b: refs/heads/master
c: 3a2805e
h: refs/heads/master
i:
  262959: 86bd746
v: v3
  • Loading branch information
Guenter Roeck committed Aug 11, 2011
1 parent a1c1136 commit f1d21e4
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 044cd3a574be5cd97ab80d0c6d06f5fab327541d
refs/heads/master: 3a2805e845761ea76a6ad5688d637b2624de0cab
12 changes: 12 additions & 0 deletions trunk/drivers/hwmon/pmbus/lm25066.c
Original file line number Diff line number Diff line change
Expand Up @@ -161,6 +161,17 @@ static int lm25066_write_word_data(struct i2c_client *client, int page, int reg,
return ret;
}

static int lm25066_write_byte(struct i2c_client *client, int page, u8 value)
{
if (page > 1)
return -EINVAL;

if (page == 0)
return pmbus_write_byte(client, 0, value);

return 0;
}

static int lm25066_probe(struct i2c_client *client,
const struct i2c_device_id *id)
{
Expand Down Expand Up @@ -204,6 +215,7 @@ static int lm25066_probe(struct i2c_client *client,

info->read_word_data = lm25066_read_word_data;
info->write_word_data = lm25066_write_word_data;
info->write_byte = lm25066_write_byte;

switch (id->driver_data) {
case lm25066:
Expand Down

0 comments on commit f1d21e4

Please sign in to comment.