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


--- trunk/drivers/staging/iio/adc/adt7408.c	2010-04-07 02:20:42 UTC (rev 8616)
+++ trunk/drivers/staging/iio/adc/adt7408.c	2010-04-07 02:21:04 UTC (rev 8617)
@@ -173,7 +173,7 @@
 	return ret;
 }
 
-IIO_DEVICE_ATTR(mode, S_IRUGO | S_IWUSR,
+static IIO_DEVICE_ATTR(mode, S_IRUGO | S_IWUSR,
 		adt7408_show_mode,
 		adt7408_store_mode,
 		0);
@@ -185,7 +185,7 @@
 	return sprintf(buf, "full\npower-down\n");
 }
 
-IIO_DEVICE_ATTR(available_modes, S_IRUGO, adt7408_show_available_modes, NULL, 0);
+static IIO_DEVICE_ATTR(available_modes, S_IRUGO, adt7408_show_available_modes, NULL, 0);
 
 static ssize_t adt7408_show_capability(struct device *dev,
 		struct device_attribute *attr,
@@ -203,7 +203,7 @@
 	return sprintf(buf, "0x%x\n", capability);
 }
 
-IIO_DEVICE_ATTR(capability, S_IRUGO | S_IWUSR,
+static IIO_DEVICE_ATTR(capability, S_IRUGO | S_IWUSR,
 		adt7408_show_capability,
 		NULL,
 		0);
@@ -224,7 +224,7 @@
 	return sprintf(buf, "0x%x\n", id);
 }
 
-IIO_DEVICE_ATTR(manufactory_id, S_IRUGO | S_IWUSR,
+static IIO_DEVICE_ATTR(manufactory_id, S_IRUGO | S_IWUSR,
 		adt7408_show_manufactory_id,
 		NULL,
 		0);
@@ -245,7 +245,7 @@
 	return sprintf(buf, "0x%x\n", id);
 }
 
-IIO_DEVICE_ATTR(device_id, S_IRUGO | S_IWUSR,
+static IIO_DEVICE_ATTR(device_id, S_IRUGO | S_IWUSR,
 		adt7408_show_device_id,
 		NULL,
 		0);
@@ -280,7 +280,7 @@
 		(data & ADT7408_T_VALUE_FLOAT_MASK) * 625);
 }
 
-IIO_DEVICE_ATTR(value, S_IRUGO, adt7408_show_value, NULL, 0);
+static IIO_DEVICE_ATTR(value, S_IRUGO, adt7408_show_value, NULL, 0);
 
 static ssize_t adt7408_show_name(struct device *dev,
 		struct device_attribute *attr,
@@ -291,7 +291,7 @@
 	return sprintf(buf, "%s\n", chip->name);
 }
 
-IIO_DEVICE_ATTR(name, S_IRUGO, adt7408_show_name, NULL, 0);
+static IIO_DEVICE_ATTR(name, S_IRUGO, adt7408_show_name, NULL, 0);
 
 static struct attribute *adt7408_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