]> bbs.cooldavid.org Git - net-next-2.6.git/commitdiff
Staging: iio: add file pointer to sysfs callbacks
authorDan Carpenter <error27@gmail.com>
Wed, 16 Jun 2010 13:32:07 +0000 (15:32 +0200)
committerGreg Kroah-Hartman <gregkh@suse.de>
Fri, 18 Jun 2010 20:14:33 +0000 (13:14 -0700)
The sysfs attribute call backs take a file pointer these days.  This was
added in 2c3c8bea6088 "sysfs: add struct file* to bin_attr callbacks"

Signed-off-by: Dan Carpenter <error27@gmail.com>
Cc: Jonathan Cameron <jic23@cam.ac.uk>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/staging/iio/accel/adis16220_core.c

index fefeca281cb95f863810e966fc689d1cb1338e78..7daa3d72286c398d19c8a4aa7c8e8be11b494dfb 100644 (file)
@@ -414,7 +414,7 @@ static ssize_t adis16220_capture_buffer_read(struct adis16220_state *st,
        return count;
 }
 
-static ssize_t adis16220_accel_bin_read(struct kobject *kobj,
+static ssize_t adis16220_accel_bin_read(struct file *filp, struct kobject *kobj,
                                        struct bin_attribute *attr,
                                        char *buf,
                                        loff_t off,
@@ -438,7 +438,7 @@ static struct bin_attribute accel_bin = {
        .size = ADIS16220_CAPTURE_SIZE,
 };
 
-static ssize_t adis16220_adc1_bin_read(struct kobject *kobj,
+static ssize_t adis16220_adc1_bin_read(struct file *filp, struct kobject *kobj,
                                struct bin_attribute *attr,
                                char *buf, loff_t off,
                                size_t count)
@@ -461,7 +461,7 @@ static struct bin_attribute adc1_bin = {
        .size = ADIS16220_CAPTURE_SIZE,
 };
 
-static ssize_t adis16220_adc2_bin_read(struct kobject *kobj,
+static ssize_t adis16220_adc2_bin_read(struct file *filp, struct kobject *kobj,
                                struct bin_attribute *attr,
                                char *buf, loff_t off,
                                size_t count)