Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
[pb] Fix unused parameter warnings
Signed-off-by: Michael Brown <mbrown@fensystems.co.uk>
  • Loading branch information
mcb30 committed Oct 12, 2010
1 parent 58be2f2 commit 8b4c642
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions kernel/pulseblaster.c
Expand Up @@ -389,7 +389,7 @@ static int pb_program(struct pulseblaster *pb, char *buf, loff_t off,
* @handle: Attribute handler
*/
static ssize_t pb_attr_bin_write(struct kobject *kobj,
struct bin_attribute *attr,
struct bin_attribute *attr __maybe_unused,
char *buf, loff_t off, size_t len,
int (*handle)(struct pulseblaster *pb,
char *buf, loff_t off,
Expand Down Expand Up @@ -429,7 +429,8 @@ static ssize_t pb_attr_bin_write(struct kobject *kobj,
* @handle: Attribute handler
*/
static ssize_t pb_attr_button_write(struct device *dev,
struct device_attribute *attr,
struct device_attribute *attr
__maybe_unused,
const char *buf, size_t len,
int (*handle)(struct pulseblaster *pb))
{
Expand Down Expand Up @@ -473,7 +474,7 @@ static ssize_t pb_attr_button_write(struct device *dev,
* @buf: Data buffer
*/
static ssize_t pb_attr_type_read(struct device *dev,
struct device_attribute *attr,
struct device_attribute *attr __maybe_unused,
char *buf)
{
struct pulseblaster *pb = dev_get_drvdata(dev);
Expand Down

0 comments on commit 8b4c642

Please sign in to comment.