* [PATCH] i2c/ds1682: Fix binary file callback signatures
@ 2007-07-13 9:22 Jean Delvare
0 siblings, 0 replies; only message in thread
From: Jean Delvare @ 2007-07-13 9:22 UTC (permalink / raw)
To: Linux I2C, LKML; +Cc: Zhang Rui
Commit 91a6902958f052358899f58683d44e36228d85c2 changed the binary
sysfs file signatures at the same time the ds1682 driver was added.
Signed-off-by: Jean Delvare <khali@linux-fr.org>
---
drivers/i2c/chips/ds1682.c | 10 ++++++----
1 file changed, 6 insertions(+), 4 deletions(-)
--- linux-2.6.23-pre.orig/drivers/i2c/chips/ds1682.c 2007-07-13 09:46:20.000000000 +0200
+++ linux-2.6.23-pre/drivers/i2c/chips/ds1682.c 2007-07-13 11:14:59.000000000 +0200
@@ -140,8 +140,9 @@ static const struct attribute_group ds16
/*
* User data attribute
*/
-static ssize_t ds1682_eeprom_read(struct kobject *kobj, char *buf, loff_t off,
- size_t count)
+static ssize_t ds1682_eeprom_read(struct kobject *kobj,
+ struct bin_attribute *bin_attr, char *buf,
+ loff_t off, size_t count)
{
struct i2c_client *client = kobj_to_i2c_client(kobj);
int rc;
@@ -163,8 +164,9 @@ static ssize_t ds1682_eeprom_read(struct
return count;
}
-static ssize_t ds1682_eeprom_write(struct kobject *kobj, char *buf, loff_t off,
- size_t count)
+static ssize_t ds1682_eeprom_write(struct kobject *kobj,
+ struct bin_attribute *bin_attr, char *buf,
+ loff_t off, size_t count)
{
struct i2c_client *client = kobj_to_i2c_client(kobj);
--
Jean Delvare
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2007-07-13 9:22 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-07-13 9:22 [PATCH] i2c/ds1682: Fix binary file callback signatures Jean Delvare
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox