sysfs: add struct file* to bin_attr callbacks
[deliverable/linux.git] / drivers / misc / eeprom / at24.c
index db7d0f21b65d34f450db3d731abd1da807c6afbf..a79a62f7548185edc8cc960b8a73f9b267012aa3 100644 (file)
@@ -274,7 +274,8 @@ static ssize_t at24_read(struct at24_data *at24,
        return retval;
 }
 
-static ssize_t at24_bin_read(struct kobject *kobj, struct bin_attribute *attr,
+static ssize_t at24_bin_read(struct file *filp, struct kobject *kobj,
+               struct bin_attribute *attr,
                char *buf, loff_t off, size_t count)
 {
        struct at24_data *at24;
@@ -395,7 +396,8 @@ static ssize_t at24_write(struct at24_data *at24, const char *buf, loff_t off,
        return retval;
 }
 
-static ssize_t at24_bin_write(struct kobject *kobj, struct bin_attribute *attr,
+static ssize_t at24_bin_write(struct file *filp, struct kobject *kobj,
+               struct bin_attribute *attr,
                char *buf, loff_t off, size_t count)
 {
        struct at24_data *at24;
This page took 0.026239 seconds and 5 git commands to generate.