Commit bd75b4ef authored by Rikard Falkeborn's avatar Rikard Falkeborn Committed by Herbert Xu

crypto: nx - Constify static attribute_group structs

The only usage of these is to pass their address to
sysfs_{create,remove}_group(), which takes pointers to const struct
attribute_group. Make them const to allow the compiler to put them in
read-only memory.
Signed-off-by: default avatarRikard Falkeborn <rikard.falkeborn@gmail.com>
Reviewed-by: default avatarDaniel Axtens <dja@axtens.net>
Signed-off-by: default avatarHerbert Xu <herbert@gondor.apana.org.au>
parent 83b5a23b
...@@ -962,7 +962,7 @@ static struct attribute *nx842_sysfs_entries[] = { ...@@ -962,7 +962,7 @@ static struct attribute *nx842_sysfs_entries[] = {
NULL, NULL,
}; };
static struct attribute_group nx842_attribute_group = { static const struct attribute_group nx842_attribute_group = {
.name = NULL, /* put in device directory */ .name = NULL, /* put in device directory */
.attrs = nx842_sysfs_entries, .attrs = nx842_sysfs_entries,
}; };
...@@ -992,7 +992,7 @@ static struct attribute *nxcop_caps_sysfs_entries[] = { ...@@ -992,7 +992,7 @@ static struct attribute *nxcop_caps_sysfs_entries[] = {
NULL, NULL,
}; };
static struct attribute_group nxcop_caps_attr_group = { static const struct attribute_group nxcop_caps_attr_group = {
.name = "nx_gzip_caps", .name = "nx_gzip_caps",
.attrs = nxcop_caps_sysfs_entries, .attrs = nxcop_caps_sysfs_entries,
}; };
......
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