Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 794e7d9d authored by Dan Carpenter's avatar Dan Carpenter Committed by Greg Kroah-Hartman
Browse files

Staging: iio: add file pointer to sysfs callbacks



The sysfs attribute call backs take a file pointer these days.  This was
added in 2c3c8bea "sysfs: add struct file* to bin_attr callbacks"

Signed-off-by: default avatarDan Carpenter <error27@gmail.com>
Cc: Jonathan Cameron <jic23@cam.ac.uk>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@suse.de>
parent de6c37ad
Loading
Loading
Loading
Loading
+3 −3
Original line number Original line Diff line number Diff line
@@ -414,7 +414,7 @@ static ssize_t adis16220_capture_buffer_read(struct adis16220_state *st,
	return count;
	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,
					struct bin_attribute *attr,
					char *buf,
					char *buf,
					loff_t off,
					loff_t off,
@@ -438,7 +438,7 @@ static struct bin_attribute accel_bin = {
	.size = ADIS16220_CAPTURE_SIZE,
	.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,
				struct bin_attribute *attr,
				char *buf, loff_t off,
				char *buf, loff_t off,
				size_t count)
				size_t count)
@@ -461,7 +461,7 @@ static struct bin_attribute adc1_bin = {
	.size = ADIS16220_CAPTURE_SIZE,
	.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,
				struct bin_attribute *attr,
				char *buf, loff_t off,
				char *buf, loff_t off,
				size_t count)
				size_t count)