Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 108146
b: refs/heads/master
c: 2ce5b34
h: refs/heads/master
v: v3
  • Loading branch information
David Brownell authored and Jean Delvare committed Aug 10, 2008
1 parent c88fc3b commit b78874f
Show file tree
Hide file tree
Showing 3 changed files with 7 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: c1159f9e8927f5732c19816a605926bc76c498b2
refs/heads/master: 2ce5b34fd519275d788338ae692e4b71df6661d4
8 changes: 4 additions & 4 deletions trunk/drivers/i2c/chips/at24.c
Original file line number Diff line number Diff line change
Expand Up @@ -188,7 +188,7 @@ static ssize_t at24_eeprom_read(struct at24_data *at24, char *buf,
count = I2C_SMBUS_BLOCK_MAX;
status = i2c_smbus_read_i2c_block_data(client, offset,
count, buf);
dev_dbg(&client->dev, "smbus read %zd@%d --> %d\n",
dev_dbg(&client->dev, "smbus read %zu@%d --> %d\n",
count, offset, status);
return (status < 0) ? -EIO : status;
}
Expand All @@ -214,7 +214,7 @@ static ssize_t at24_eeprom_read(struct at24_data *at24, char *buf,
msg[1].len = count;

status = i2c_transfer(client->adapter, msg, 2);
dev_dbg(&client->dev, "i2c read %zd@%d --> %d\n",
dev_dbg(&client->dev, "i2c read %zu@%d --> %d\n",
count, offset, status);

if (status == 2)
Expand Down Expand Up @@ -334,7 +334,7 @@ static ssize_t at24_eeprom_write(struct at24_data *at24, char *buf,
if (status == 1)
status = count;
}
dev_dbg(&client->dev, "write %zd@%d --> %zd (%ld)\n",
dev_dbg(&client->dev, "write %zu@%d --> %zd (%ld)\n",
count, offset, status, jiffies);

if (status == count)
Expand Down Expand Up @@ -512,7 +512,7 @@ static int at24_probe(struct i2c_client *client, const struct i2c_device_id *id)

i2c_set_clientdata(client, at24);

dev_info(&client->dev, "%Zd byte %s EEPROM %s\n",
dev_info(&client->dev, "%zu byte %s EEPROM %s\n",
at24->bin.size, client->name,
writable ? "(writable)" : "(read-only)");
dev_dbg(&client->dev,
Expand Down
4 changes: 2 additions & 2 deletions trunk/drivers/i2c/i2c-dev.c
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,7 @@ static ssize_t i2cdev_read (struct file *file, char __user *buf, size_t count,
if (tmp==NULL)
return -ENOMEM;

pr_debug("i2c-dev: i2c-%d reading %zd bytes.\n",
pr_debug("i2c-dev: i2c-%d reading %zu bytes.\n",
iminor(file->f_path.dentry->d_inode), count);

ret = i2c_master_recv(client,tmp,count);
Expand Down Expand Up @@ -175,7 +175,7 @@ static ssize_t i2cdev_write (struct file *file, const char __user *buf, size_t c
return -EFAULT;
}

pr_debug("i2c-dev: i2c-%d writing %zd bytes.\n",
pr_debug("i2c-dev: i2c-%d writing %zu bytes.\n",
iminor(file->f_path.dentry->d_inode), count);

ret = i2c_master_send(client,tmp,count);
Expand Down

0 comments on commit b78874f

Please sign in to comment.