Title: [8612] trunk/drivers/staging/iio/adc/ad7414.c: IIO maintainer prefers to make it static is in the call of the macro.
Revision
8612
Author
sonicz
Date
2010-04-06 22:18:20 -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/ad7414.c (8611 => 8612)


--- trunk/drivers/staging/iio/adc/ad7414.c	2010-04-06 09:11:59 UTC (rev 8611)
+++ trunk/drivers/staging/iio/adc/ad7414.c	2010-04-07 02:18:20 UTC (rev 8612)
@@ -147,7 +147,7 @@
 	return ret;
 }
 
-IIO_DEVICE_ATTR(mode, S_IRUGO | S_IWUSR,
+static IIO_DEVICE_ATTR(mode, S_IRUGO | S_IWUSR,
 		ad7414_show_mode,
 		ad7414_store_mode,
 		0);
@@ -159,7 +159,7 @@
 	return sprintf(buf, "full\npower-save\n");
 }
 
-IIO_DEVICE_ATTR(available_modes, S_IRUGO, ad7414_show_available_modes, NULL, 0);
+static IIO_DEVICE_ATTR(available_modes, S_IRUGO, ad7414_show_available_modes, NULL, 0);
 
 static ssize_t ad7414_show_temperature(struct device *dev,
 		struct device_attribute *attr,
@@ -195,7 +195,7 @@
 	return sprintf(buf, "%c%d.%.2d\n", sign, (data >> 2), (data & 3) * 25);
 }
 
-IIO_DEVICE_ATTR(temperature, S_IRUGO, ad7414_show_temperature, NULL, 0);
+static IIO_DEVICE_ATTR(temperature, S_IRUGO, ad7414_show_temperature, NULL, 0);
 
 static ssize_t ad7414_show_name(struct device *dev,
 		struct device_attribute *attr,
@@ -206,7 +206,7 @@
 	return sprintf(buf, "%s\n", chip->name);
 }
 
-IIO_DEVICE_ATTR(name, S_IRUGO, ad7414_show_name, NULL, 0);
+static IIO_DEVICE_ATTR(name, S_IRUGO, ad7414_show_name, NULL, 0);
 
 static struct attribute *ad7414_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