diff options
author | David Brownell <dbrownell@users.sourceforge.net> | 2009-06-24 10:06:31 -0700 |
---|---|---|
committer | Stephen Rothwell <sfr@canb.auug.org.au> | 2009-09-14 10:34:14 +1000 |
commit | 7d58190ce5435969400db061ae562efe0992f7e0 (patch) | |
tree | 2166556a0b512b22efd2e5bdaa66d0a7fbbe41c9 /drivers/misc | |
parent | 65637b83785f4df0d017899d6a8069743d8851a5 (diff) |
driver model: constify attribute groups
Let attribute group vectors be declared "const". We'd
like to let most attribute metadata live in read-only
sections... this is a start.
Signed-off-by: David Brownell <dbrownell@users.sourceforge.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'drivers/misc')
-rw-r--r-- | drivers/misc/enclosure.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/misc/enclosure.c b/drivers/misc/enclosure.c index 348443bdb23b..b5dd532cbbd1 100644 --- a/drivers/misc/enclosure.c +++ b/drivers/misc/enclosure.c @@ -218,7 +218,7 @@ static void enclosure_component_release(struct device *dev) put_device(dev->parent); } -static struct attribute_group *enclosure_groups[]; +static const struct attribute_group *enclosure_groups[]; /** * enclosure_component_register - add a particular component to an enclosure @@ -507,7 +507,7 @@ static struct attribute_group enclosure_group = { .attrs = enclosure_component_attrs, }; -static struct attribute_group *enclosure_groups[] = { +static const struct attribute_group *enclosure_groups[] = { &enclosure_group, NULL }; |