Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 143215
b: refs/heads/master
c: 280ca29
h: refs/heads/master
i:
  143213: b65ed53
  143211: 79d7a67
  143207: b6b4cb3
  143199: 2fd29d5
v: v3
  • Loading branch information
Geert Uytterhoeven authored and Linus Torvalds committed Apr 13, 2009
1 parent 07d592a commit 25ca25f
Show file tree
Hide file tree
Showing 2 changed files with 5 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: 32433879480d13bc019d5a067ce884064a93dd63
refs/heads/master: 280ca299dea58180a59ec4b146595211b280f598
8 changes: 4 additions & 4 deletions trunk/drivers/misc/eeprom/at24.c
Original file line number Diff line number Diff line change
Expand Up @@ -278,7 +278,7 @@ static ssize_t at24_bin_read(struct kobject *kobj, struct bin_attribute *attr,
* We only use page mode writes; the alternative is sloooow. This routine
* writes at most one page.
*/
static ssize_t at24_eeprom_write(struct at24_data *at24, char *buf,
static ssize_t at24_eeprom_write(struct at24_data *at24, const char *buf,
unsigned offset, size_t count)
{
struct i2c_client *client;
Expand Down Expand Up @@ -347,8 +347,8 @@ static ssize_t at24_eeprom_write(struct at24_data *at24, char *buf,
return -ETIMEDOUT;
}

static ssize_t at24_write(struct at24_data *at24,
char *buf, loff_t off, size_t count)
static ssize_t at24_write(struct at24_data *at24, const char *buf, loff_t off,
size_t count)
{
ssize_t retval = 0;

Expand Down Expand Up @@ -406,7 +406,7 @@ static ssize_t at24_macc_read(struct memory_accessor *macc, char *buf,
return at24_read(at24, buf, offset, count);
}

static ssize_t at24_macc_write(struct memory_accessor *macc, char *buf,
static ssize_t at24_macc_write(struct memory_accessor *macc, const char *buf,
off_t offset, size_t count)
{
struct at24_data *at24 = container_of(macc, struct at24_data, macc);
Expand Down

0 comments on commit 25ca25f

Please sign in to comment.