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


--- trunk/drivers/staging/iio/adc/adt7410.c	2010-04-07 02:21:04 UTC (rev 8617)
+++ trunk/drivers/staging/iio/adc/adt7410.c	2010-04-07 02:21:22 UTC (rev 8618)
@@ -197,7 +197,7 @@
 	return ret;
 }
 
-IIO_DEVICE_ATTR(mode, S_IRUGO | S_IWUSR,
+static IIO_DEVICE_ATTR(mode, S_IRUGO | S_IWUSR,
 		adt7410_show_mode,
 		adt7410_store_mode,
 		0);
@@ -209,7 +209,7 @@
 	return sprintf(buf, "full\none-shot\nsps\npower-down\n");
 }
 
-IIO_DEVICE_ATTR(available_modes, S_IRUGO, adt7410_show_available_modes, NULL, 0);
+static IIO_DEVICE_ATTR(available_modes, S_IRUGO, adt7410_show_available_modes, NULL, 0);
 
 static ssize_t adt7410_show_resolution(struct device *dev,
 		struct device_attribute *attr,
@@ -264,7 +264,7 @@
 	return ret;
 }
 
-IIO_DEVICE_ATTR(resolution, S_IRUGO | S_IWUSR,
+static IIO_DEVICE_ATTR(resolution, S_IRUGO | S_IWUSR,
 		adt7410_show_resolution,
 		adt7410_store_resolution,
 		0);
@@ -287,7 +287,7 @@
 			(id & ADT7410_MANUFACTORY_ID_MASK) >> ADT7410_MANUFACTORY_ID_OFFSET);
 }
 
-IIO_DEVICE_ATTR(id, S_IRUGO | S_IWUSR,
+static IIO_DEVICE_ATTR(id, S_IRUGO | S_IWUSR,
 		adt7410_show_id,
 		NULL,
 		0);
@@ -342,7 +342,7 @@
 	return adt7410_convert_temperature(chip, data, buf);
 }
 
-IIO_DEVICE_ATTR(value, S_IRUGO, adt7410_show_value, NULL, 0);
+static IIO_DEVICE_ATTR(value, S_IRUGO, adt7410_show_value, NULL, 0);
 
 static ssize_t adt7410_show_name(struct device *dev,
 		struct device_attribute *attr,
@@ -353,7 +353,7 @@
 	return sprintf(buf, "%s\n", chip->name);
 }
 
-IIO_DEVICE_ATTR(name, S_IRUGO, adt7410_show_name, NULL, 0);
+static IIO_DEVICE_ATTR(name, S_IRUGO, adt7410_show_name, NULL, 0);
 
 static struct attribute *adt7410_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