linux-iio.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] IIO:sysfs.h: Use static declaration
@ 2010-03-09 15:13 Hennerich, Michael
  2010-03-09 15:29 ` Jonathan Cameron
  0 siblings, 1 reply; 4+ messages in thread
From: Hennerich, Michael @ 2010-03-09 15:13 UTC (permalink / raw)
  To: Jonathan Cameron
  Cc: linux-iio@vger.kernel.org,
	uclinux-dist-devel@blackfin.uclinux.org

Shouldn't those be better declared 'static'?


Index: drivers/staging/iio/sysfs.h
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
--- drivers/staging/iio/sysfs.h (revision 8430)
+++ drivers/staging/iio/sysfs.h (working copy)
@@ -95,16 +95,16 @@
                        .val2 =3D _val2 }

 #define IIO_DEVICE_ATTR(_name, _mode, _show, _store, _addr)    \
-       struct iio_dev_attr iio_dev_attr_##_name                \
+       static struct iio_dev_attr iio_dev_attr_##_name         \
        =3D IIO_ATTR(_name, _mode, _show, _store, _addr)


 #define IIO_DEVICE_ATTR_2(_name, _mode, _show, _store, _addr, _val2)   \
-       struct iio_dev_attr iio_dev_attr_##_name                        \
+       static struct iio_dev_attr iio_dev_attr_##_name                 \
        =3D IIO_ATTR_2(_name, _mode, _show, _store, _addr, _val2)

 #define IIO_CONST_ATTR(_name, _string)                                 \
-       struct iio_const_attr iio_const_attr_##_name                    \
+       static struct iio_const_attr iio_const_attr_##_name                =
     \
        =3D { .string =3D _string,                                         =
 \
            .dev_attr =3D __ATTR(_name, S_IRUGO, iio_read_const_attr, NULL)=
}


------------------------------------------------------------------
********* Analog Devices GmbH              Open Platform Solutions
**  *****
**     ** Wilhelm-Wagenfeld-Strasse 6
**  ***** D-80807 Munich
********* Germany
Registergericht M=FCnchen HRB 40368,  Gesch=E4ftsf=FChrer: Thomas Wessel, W=
illiam A. Martin, Margaret K. Seif

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2010-03-09 15:44 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-03-09 15:13 [PATCH] IIO:sysfs.h: Use static declaration Hennerich, Michael
2010-03-09 15:29 ` Jonathan Cameron
2010-03-09 15:39   ` Hennerich, Michael
2010-03-09 15:46     ` Jonathan Cameron

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).