]> git.karo-electronics.de Git - linux-beck.git/commitdiff
staging:iio:meter:ade7758: Fix return value of ade7758_write_reset
authorMichael Hennerich <michael.hennerich@analog.com>
Wed, 18 May 2011 13:42:05 +0000 (14:42 +0100)
committerGreg Kroah-Hartman <gregkh@suse.de>
Thu, 19 May 2011 23:14:58 +0000 (16:14 -0700)
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>
drivers/staging/iio/meter/ade7758_core.c

index 8cfb617082cede509d3575e0a7d1ba4470352dd7..971b247fba63e225627812291f99d8cc5d458d66 100644 (file)
@@ -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>
@@ -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,