Title: [8616] trunk/drivers/staging/iio/adc/adt75.c: IIO maintainer prefers to make it static is in the call of the macro.
Revision
8616
Author
sonicz
Date
2010-04-06 22:20:42 -0400 (Tue, 06 Apr 2010)

Log Message

IIO maintainer prefers to make it static is in the call of the macro.

Modified Paths

Diff

Modified: trunk/drivers/staging/iio/adc/adt75.c (8615 => 8616)


--- trunk/drivers/staging/iio/adc/adt75.c	2010-04-07 02:20:05 UTC (rev 8615)
+++ trunk/drivers/staging/iio/adc/adt75.c	2010-04-07 02:20:42 UTC (rev 8616)
@@ -146,7 +146,7 @@
 	return ret;
 }
 
-IIO_DEVICE_ATTR(mode, S_IRUGO | S_IWUSR,
+static IIO_DEVICE_ATTR(mode, S_IRUGO | S_IWUSR,
 		adt75_show_mode,
 		adt75_store_mode,
 		0);
@@ -158,7 +158,7 @@
 	return sprintf(buf, "full\npower-down\n");
 }
 
-IIO_DEVICE_ATTR(available_modes, S_IRUGO, adt75_show_available_modes, NULL, 0);
+static IIO_DEVICE_ATTR(available_modes, S_IRUGO, adt75_show_available_modes, NULL, 0);
 
 static ssize_t adt75_show_oneshot(struct device *dev,
 		struct device_attribute *attr,
@@ -203,7 +203,7 @@
 	return ret;
 }
 
-IIO_DEVICE_ATTR(oneshot, S_IRUGO | S_IWUSR,
+static IIO_DEVICE_ATTR(oneshot, S_IRUGO | S_IWUSR,
 		adt75_show_oneshot,
 		adt75_store_oneshot,
 		0);
@@ -246,7 +246,7 @@
 		(data & ADT75_VALUE_FLOAT_MASK) * 625);
 }
 
-IIO_DEVICE_ATTR(value, S_IRUGO, adt75_show_value, NULL, 0);
+static IIO_DEVICE_ATTR(value, S_IRUGO, adt75_show_value, NULL, 0);
 
 static ssize_t adt75_show_name(struct device *dev,
 		struct device_attribute *attr,
@@ -257,7 +257,7 @@
 	return sprintf(buf, "%s\n", chip->name);
 }
 
-IIO_DEVICE_ATTR(name, S_IRUGO, adt75_show_name, NULL, 0);
+static IIO_DEVICE_ATTR(name, S_IRUGO, adt75_show_name, NULL, 0);
 
 static struct attribute *adt75_attributes[] = {
 	&iio_dev_attr_available_modes.dev_attr.attr,
_______________________________________________
Linux-kernel-commits mailing list
[email protected]
https://blackfin.uclinux.org/mailman/listinfo/linux-kernel-commits

Reply via email to