Title: [8804] trunk/drivers/staging/iio/industrialio-trigger.c: Staging: iio: industrialio-trigger.c: minor fixups
Revision
8804
Author
vapier
Date
2010-05-23 00:14:05 -0400 (Sun, 23 May 2010)

Log Message

Staging: iio: industrialio-trigger.c: minor fixups

From: Greg Kroah-Hartman <[email protected]>

We needed to include a header file that declared the functions that are
being exported in this file.

Also fix up an indentation problem, and some sparse warnings.

Modified Paths

Diff

Modified: trunk/drivers/staging/iio/industrialio-trigger.c (8803 => 8804)


--- trunk/drivers/staging/iio/industrialio-trigger.c	2010-05-23 04:13:52 UTC (rev 8803)
+++ trunk/drivers/staging/iio/industrialio-trigger.c	2010-05-23 04:14:05 UTC (rev 8804)
@@ -18,6 +18,7 @@
 
 #include "iio.h"
 #include "trigger.h"
+#include "trigger_consumer.h"
 
 /* RFC - Question of approach
  * Make the common case (single sensor single trigger)
@@ -92,9 +93,9 @@
  **/
 static void iio_trigger_unregister_id(struct iio_trigger *trig_info)
 {
-		spin_lock(&iio_trigger_idr_lock);
-		idr_remove(&iio_trigger_idr, trig_info->id);
-		spin_unlock(&iio_trigger_idr_lock);
+	spin_lock(&iio_trigger_idr_lock);
+	idr_remove(&iio_trigger_idr, trig_info->id);
+	spin_unlock(&iio_trigger_idr_lock);
 }
 
 int iio_trigger_register(struct iio_trigger *trig_info)
@@ -334,9 +335,9 @@
 	return len;
 }
 
-DEVICE_ATTR(current_trigger, S_IRUGO | S_IWUSR,
-	    iio_trigger_read_current,
-	    iio_trigger_write_current);
+static DEVICE_ATTR(current_trigger, S_IRUGO | S_IWUSR,
+		   iio_trigger_read_current,
+		   iio_trigger_write_current);
 
 static struct attribute *iio_trigger_consumer_attrs[] = {
 	&dev_attr_current_trigger.attr,
_______________________________________________
Linux-kernel-commits mailing list
[email protected]
https://blackfin.uclinux.org/mailman/listinfo/linux-kernel-commits

Reply via email to