summaryrefslogtreecommitdiffstats
path: root/drivers/i2c/chips/ds1682.c
diff options
context:
space:
mode:
authorAl Viro <viro@ftp.linux.org.uk>2007-07-15 21:01:22 +0100
committerLinus Torvalds <torvalds@woody.linux-foundation.org>2007-07-15 16:40:52 -0700
commit05bd711ea2862cb1c754903326b7858bc700b2e9 (patch)
treeaec7cdf2fee4576ff2563090ba8907bc10a68713 /drivers/i2c/chips/ds1682.c
parentececfdee1cc287123149c801af201e41c7c3cc84 (diff)
downloadblackbird-op-linux-05bd711ea2862cb1c754903326b7858bc700b2e9.tar.gz
blackbird-op-linux-05bd711ea2862cb1c754903326b7858bc700b2e9.zip
missing argument in bin_attribute ->read()/->write()
Fallout from commit 91a6902958f052358899f58683d44e36228d85c2 ('sysfs: add parameter "struct bin_attribute *" ...') Signed-off-by: Al Viro <viro@zeniv.linux.org.uk> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'drivers/i2c/chips/ds1682.c')
-rw-r--r--drivers/i2c/chips/ds1682.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/drivers/i2c/chips/ds1682.c b/drivers/i2c/chips/ds1682.c
index 25fd4676fb17..5879f0f25495 100644
--- a/drivers/i2c/chips/ds1682.c
+++ b/drivers/i2c/chips/ds1682.c
@@ -140,8 +140,8 @@ static const struct attribute_group ds1682_group = {
/*
* 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 *attr,
+ char *buf, loff_t off, size_t count)
{
struct i2c_client *client = kobj_to_i2c_client(kobj);
int rc;
@@ -163,8 +163,8 @@ static ssize_t ds1682_eeprom_read(struct kobject *kobj, char *buf, loff_t off,
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 *attr,
+ char *buf, loff_t off, size_t count)
{
struct i2c_client *client = kobj_to_i2c_client(kobj);
OpenPOWER on IntegriCloud