Skip to content

Commit

Permalink
staging:iio:meter:ade7758: Fix return value of ade7758_write_reset
Browse files Browse the repository at this point in the history
Update file comment/license header.

Signed-off-by: Michael Hennerich <michael.hennerich@analog.com>
Acked-by: Jonathan Cameron <jic23@cam.ac.uk>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
  • Loading branch information
Michael Hennerich authored and Greg Kroah-Hartman committed May 19, 2011
1 parent f535e08 commit fb7f6cc
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions drivers/staging/iio/meter/ade7758_core.c
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
/*
* ADE7758 Polyphase Multifunction Energy Metering IC Driver
* ADE7758 Poly Phase Multifunction Energy Metering IC driver
*
* Copyright 2010 Analog Devices Inc.
* Copyright 2010-2011 Analog Devices Inc.
*
* Licensed under the GPL-2 or later.
* Licensed under the GPL-2.
*/

#include <linux/interrupt.h>
Expand Down Expand Up @@ -342,7 +342,7 @@ static ssize_t ade7758_write_reset(struct device *dev,
case 'Y':
return ade7758_reset(dev);
}
return -1;
return len;
}

static IIO_DEV_ATTR_VPEAK(S_IWUSR | S_IRUGO,
Expand Down

0 comments on commit fb7f6cc

Please sign in to comment.