* [PATCH 1/1] I2C: i2c-core, make attr groups const
@ 2009-08-22 18:34 Jiri Slaby
[not found] ` <1250966092-28291-1-git-send-email-jirislaby-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
0 siblings, 1 reply; 2+ messages in thread
From: Jiri Slaby @ 2009-08-22 18:34 UTC (permalink / raw)
To: khali; +Cc: linux-i2c, linux-kernel, Jiri Slaby
Make attribute_group structure const, to avoid a compiler warning.
The groups were introduces by commit:
i2c: Convert i2c adapters to bus devices
Signed-off-by: Jiri Slaby <jirislaby@gmail.com>
Cc: Jean Delvare <khali@linux-fr.org>
---
drivers/i2c/i2c-core.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/drivers/i2c/i2c-core.c b/drivers/i2c/i2c-core.c
index eeb9ae5..8d80fce 100644
--- a/drivers/i2c/i2c-core.c
+++ b/drivers/i2c/i2c-core.c
@@ -214,7 +214,7 @@ static struct attribute_group i2c_dev_attr_group = {
.attrs = i2c_dev_attrs,
};
-static struct attribute_group *i2c_dev_attr_groups[] = {
+static const struct attribute_group *i2c_dev_attr_groups[] = {
&i2c_dev_attr_group,
NULL
};
@@ -528,7 +528,7 @@ static struct attribute_group i2c_adapter_attr_group = {
.attrs = i2c_adapter_attrs,
};
-static struct attribute_group *i2c_adapter_attr_groups[] = {
+static const struct attribute_group *i2c_adapter_attr_groups[] = {
&i2c_adapter_attr_group,
NULL
};
--
1.6.3.3
^ permalink raw reply related [flat|nested] 2+ messages in thread
end of thread, other threads:[~2009-08-29 13:23 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-08-22 18:34 [PATCH 1/1] I2C: i2c-core, make attr groups const Jiri Slaby
[not found] ` <1250966092-28291-1-git-send-email-jirislaby-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
2009-08-29 13:23 ` Jean Delvare
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).