Skip to content

Commit

Permalink
[pb] Update bin_attribute function signature
Browse files Browse the repository at this point in the history
Signed-off-by: Michael Brown <mbrown@fensystems.co.uk>
  • Loading branch information
mcb30 committed Sep 11, 2013
1 parent cce481d commit 2f1db98
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions kernel/pulseblaster.c
Expand Up @@ -405,14 +405,16 @@ static int pb_program(struct pulseblaster *pb, char *buf, loff_t off,
/**
* Write to binary attribute
*
* @filp: File
* @kobj: Kernel object
* @attr: Attribute
* @buf: Data buffer
* @off: Starting offset
* @len: Length of data
* @handle: Attribute handler
*/
static ssize_t pb_attr_bin_write(struct kobject *kobj,
static ssize_t pb_attr_bin_write(struct file *filp __maybe_unused,
struct kobject *kobj,
struct bin_attribute *attr __maybe_unused,
char *buf, loff_t off, size_t len,
int (*handle)(struct pulseblaster *pb,
Expand Down Expand Up @@ -569,17 +571,18 @@ static ssize_t pb_attr_continue_write(struct device *dev,
/**
* Write to program attribute
*
* @filp: File
* @kobj: Kernel object
* @attr: Attribute
* @buf: Data buffer
* @off: Starting offset
* @len: Length of data
*/
static ssize_t pb_attr_program_write(struct kobject *kobj,
static ssize_t pb_attr_program_write(struct file *filp, struct kobject *kobj,
struct bin_attribute *attr,
char *buf, loff_t off, size_t len)
{
return pb_attr_bin_write(kobj, attr, buf, off, len, pb_program);
return pb_attr_bin_write(filp, kobj, attr, buf, off, len, pb_program);
}

/** Pulseblaster simple attributes */
Expand Down

0 comments on commit 2f1db98

Please sign in to comment.