Modified: trunk/drivers/staging/iio/adc/ad7816.c (8618 => 8619)
--- trunk/drivers/staging/iio/adc/ad7816.c 2010-04-07 02:21:22 UTC (rev 8618)
+++ trunk/drivers/staging/iio/adc/ad7816.c 2010-04-07 02:22:09 UTC (rev 8619)
@@ -144,7 +144,7 @@
return len;
}
-IIO_DEVICE_ATTR(mode, S_IRUGO | S_IWUSR,
+static IIO_DEVICE_ATTR(mode, S_IRUGO | S_IWUSR,
ad7816_show_mode,
ad7816_store_mode,
0);
@@ -156,7 +156,7 @@
return sprintf(buf, "full\npower-save\n");
}
-IIO_DEVICE_ATTR(available_modes, S_IRUGO, ad7816_show_available_modes, NULL, 0);
+static IIO_DEVICE_ATTR(available_modes, S_IRUGO, ad7816_show_available_modes, NULL, 0);
static ssize_t ad7816_show_channel(struct device *dev,
struct device_attribute *attr,
@@ -201,7 +201,7 @@
return len;
}
-IIO_DEVICE_ATTR(channel, S_IRUGO | S_IWUSR,
+static IIO_DEVICE_ATTR(channel, S_IRUGO | S_IWUSR,
ad7816_show_channel,
ad7816_store_channel,
0);
@@ -233,7 +233,7 @@
return sprintf(buf, "%u\n", data);
}
-IIO_DEVICE_ATTR(value, S_IRUGO, ad7816_show_value, NULL, 0);
+static IIO_DEVICE_ATTR(value, S_IRUGO, ad7816_show_value, NULL, 0);
static ssize_t ad7816_show_name(struct device *dev,
struct device_attribute *attr,
@@ -244,7 +244,7 @@
return sprintf(buf, "%s\n", chip->name);
}
-IIO_DEVICE_ATTR(name, S_IRUGO, ad7816_show_name, NULL, 0);
+static IIO_DEVICE_ATTR(name, S_IRUGO, ad7816_show_name, NULL, 0);
static struct attribute *ad7816_attributes[] = {
&iio_dev_attr_available_modes.dev_attr.attr,