Staging: iio: light: tsl2563: fix static sparse warning
authorGreg Kroah-Hartman <gregkh@suse.de>
Wed, 5 May 2010 05:29:41 +0000 (22:29 -0700)
committerGreg Kroah-Hartman <gregkh@suse.de>
Tue, 11 May 2010 18:36:10 +0000 (11:36 -0700)
Cc: Jonathan Cameron <jic23@cam.ac.uk>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/staging/iio/light/tsl2563.c

index f8a08365f19dd978d2067fd52e5590c3527191a2..e4b0a5ef1c1f4913d39870c9ef363917ca552e83 100644 (file)
@@ -607,7 +607,7 @@ static ssize_t tsl2563_show_name(struct device *dev,
        return sprintf(buf, "%s\n", chip->client->name);
 }
 
-DEVICE_ATTR(name, S_IRUGO, tsl2563_show_name, NULL);
+static DEVICE_ATTR(name, S_IRUGO, tsl2563_show_name, NULL);
 
 static struct attribute *tsl2563_attributes[] = {
        &dev_attr_adc0.attr,