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

Commit fb7f6cca authored by Michael Hennerich's avatar Michael Hennerich Committed by Greg Kroah-Hartman
Browse files

staging:iio:meter:ade7758: Fix return value of ade7758_write_reset



Update file comment/license header.

Signed-off-by: default avatarMichael Hennerich <michael.hennerich@analog.com>
Acked-by: default avatarJonathan Cameron <jic23@cam.ac.uk>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@suse.de>
parent f535e08e
Loading
Loading
Loading
Loading
+4 −4
Original line number Original line Diff line number Diff line
/*
/*
 * 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>
#include <linux/interrupt.h>
@@ -342,7 +342,7 @@ static ssize_t ade7758_write_reset(struct device *dev,
	case 'Y':
	case 'Y':
		return ade7758_reset(dev);
		return ade7758_reset(dev);
	}
	}
	return -1;
	return len;
}
}


static IIO_DEV_ATTR_VPEAK(S_IWUSR | S_IRUGO,
static IIO_DEV_ATTR_VPEAK(S_IWUSR | S_IRUGO,