From: Greg Kroah-Hartman Date: Wed, 5 May 2010 05:29:41 +0000 (-0700) Subject: Staging: iio: light: tsl2563: fix static sparse warning X-Git-Tag: MMI-PSA29.97-13-9~23841^2^2~195 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=341713f265950884d2edbbf55088127a915927ad;p=GitHub%2FMotorolaMobilityLLC%2Fkernel-slsi.git Staging: iio: light: tsl2563: fix static sparse warning Cc: Jonathan Cameron Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/staging/iio/light/tsl2563.c b/drivers/staging/iio/light/tsl2563.c index f8a08365f19d..e4b0a5ef1c1f 100644 --- a/drivers/staging/iio/light/tsl2563.c +++ b/drivers/staging/iio/light/tsl2563.c @@ -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,