Title: [8703] trunk/drivers/staging/iio/gyro/adis16260_core.c: adis162260: replace -1 by -EINVAL
Revision
8703
Author
bhsong
Date
2010-05-11 05:16:46 -0400 (Tue, 11 May 2010)

Log Message

adis162260: replace -1 by -EINVAL

Modified Paths


Diff

Modified: trunk/drivers/staging/iio/gyro/adis16260_core.c (8702 => 8703)


--- trunk/drivers/staging/iio/gyro/adis16260_core.c	2010-05-11 08:43:12 UTC (rev 8702)
+++ trunk/drivers/staging/iio/gyro/adis16260_core.c	2010-05-11 09:16:46 UTC (rev 8703)
@@ -308,14 +308,14 @@
 		const char *buf, size_t len)
 {
 	if (len < 1)
-		return -1;
+		return -EINVAL;
 	switch (buf[0]) {
 	case '1':
 	case 'y':
 	case 'Y':
 		return adis16260_reset(dev);
 	}
-	return -1;
+	return -EINVAL;
 }
 
 int adis16260_set_irq(struct device *dev, bool enable)
_______________________________________________
Linux-kernel-commits mailing list
[email protected]
https://blackfin.uclinux.org/mailman/listinfo/linux-kernel-commits

Reply via email to