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


--- trunk/drivers/staging/iio/adc/ad7291.c	2010-04-07 02:18:54 UTC (rev 8613)
+++ trunk/drivers/staging/iio/adc/ad7291.c	2010-04-07 02:19:34 UTC (rev 8614)
@@ -192,7 +192,7 @@
 	return ret;
 }
 
-IIO_DEVICE_ATTR(mode, S_IRUGO | S_IWUSR,
+static IIO_DEVICE_ATTR(mode, S_IRUGO | S_IWUSR,
 		ad7291_show_mode,
 		ad7291_store_mode,
 		0);
@@ -204,7 +204,7 @@
 	return sprintf(buf, "command\nautocycle\n");
 }
 
-IIO_DEVICE_ATTR(available_modes, S_IRUGO, ad7291_show_available_modes, NULL, 0);
+static IIO_DEVICE_ATTR(available_modes, S_IRUGO, ad7291_show_available_modes, NULL, 0);
 
 static ssize_t ad7291_store_reset(struct device *dev,
 		struct device_attribute *attr,
@@ -225,7 +225,7 @@
 	return ret;
 }
 
-IIO_DEVICE_ATTR(reset, S_IWUSR,
+static IIO_DEVICE_ATTR(reset, S_IWUSR,
 		NULL,
 		ad7291_store_reset,
 		0);
@@ -263,7 +263,7 @@
 	return ret;
 }
 
-IIO_DEVICE_ATTR(ext_ref, S_IRUGO | S_IWUSR,
+static IIO_DEVICE_ATTR(ext_ref, S_IRUGO | S_IWUSR,
 		ad7291_show_ext_ref,
 		ad7291_store_ext_ref,
 		0);
@@ -301,7 +301,7 @@
 	return ret;
 }
 
-IIO_DEVICE_ATTR(noise_delay, S_IRUGO | S_IWUSR,
+static IIO_DEVICE_ATTR(noise_delay, S_IRUGO | S_IWUSR,
 		ad7291_show_noise_delay,
 		ad7291_store_noise_delay,
 		0);
@@ -331,7 +331,7 @@
 		(data & AD7291_T_VALUE_FLOAT_MASK) * 25);
 }
 
-IIO_DEVICE_ATTR(t_sense, S_IRUGO, ad7291_show_t_sense, NULL, 0);
+static IIO_DEVICE_ATTR(t_sense, S_IRUGO, ad7291_show_t_sense, NULL, 0);
 
 static ssize_t ad7291_show_t_average(struct device *dev,
 		struct device_attribute *attr,
@@ -358,7 +358,7 @@
 		(data & AD7291_T_VALUE_FLOAT_MASK) * 25);
 }
 
-IIO_DEVICE_ATTR(t_average, S_IRUGO, ad7291_show_t_average, NULL, 0);
+static IIO_DEVICE_ATTR(t_average, S_IRUGO, ad7291_show_t_average, NULL, 0);
 
 static ssize_t ad7291_show_voltage(struct device *dev,
 		struct device_attribute *attr,
@@ -387,7 +387,7 @@
 	return size;
 }
 
-IIO_DEVICE_ATTR(voltage, S_IRUGO, ad7291_show_voltage, NULL, 0);
+static IIO_DEVICE_ATTR(voltage, S_IRUGO, ad7291_show_voltage, NULL, 0);
 
 static ssize_t ad7291_show_channel_mask(struct device *dev,
 		struct device_attribute *attr,
@@ -432,7 +432,7 @@
 	return ret;
 }
 
-IIO_DEVICE_ATTR(channel_mask, S_IRUGO | S_IWUSR,
+static IIO_DEVICE_ATTR(channel_mask, S_IRUGO | S_IWUSR,
 		ad7291_show_channel_mask,
 		ad7291_store_channel_mask,
 		0);
@@ -446,7 +446,7 @@
 	return sprintf(buf, "%s\n", chip->name);
 }
 
-IIO_DEVICE_ATTR(name, S_IRUGO, ad7291_show_name, NULL, 0);
+static IIO_DEVICE_ATTR(name, S_IRUGO, ad7291_show_name, NULL, 0);
 
 static struct attribute *ad7291_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