Commit 83b5a23b authored by Rikard Falkeborn's avatar Rikard Falkeborn Committed by Herbert Xu

crypto: omap-sham - Constify static attribute_group

The only usage of omap_sham_attr_group is to pass its address to
sysfs_{create,remove}_group(), which takes pointers to const struct
attribute_group. Make it const to allow the compiler to put it in
read-only memory.
Signed-off-by: default avatarRikard Falkeborn <rikard.falkeborn@gmail.com>
Signed-off-by: default avatarHerbert Xu <herbert@gondor.apana.org.au>
parent 882f6c60
...@@ -2045,7 +2045,7 @@ static struct attribute *omap_sham_attrs[] = { ...@@ -2045,7 +2045,7 @@ static struct attribute *omap_sham_attrs[] = {
NULL, NULL,
}; };
static struct attribute_group omap_sham_attr_group = { static const struct attribute_group omap_sham_attr_group = {
.attrs = omap_sham_attrs, .attrs = omap_sham_attrs,
}; };
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment