summaryrefslogtreecommitdiff
path: root/drivers/crypto/omap-aes.c
diff options
context:
space:
mode:
authorRikard Falkeborn <rikard.falkeborn@gmail.com>2022-02-10 23:28:03 +0300
committerHerbert Xu <herbert@gondor.apana.org.au>2022-02-18 08:21:09 +0300
commit882f6c602b65cd384bec2cea4fbfc091a7bbfc50 (patch)
tree2c6987f424027e44905e12adf568d9a828ea294b /drivers/crypto/omap-aes.c
parente5745f34113b758b45d134dec04a7df94dc67131 (diff)
downloadlinux-882f6c602b65cd384bec2cea4fbfc091a7bbfc50.tar.xz
crypto: omap-aes - Constify static attribute_group
The only usage of omap_aes_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: Rikard Falkeborn <rikard.falkeborn@gmail.com> Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Diffstat (limited to 'drivers/crypto/omap-aes.c')
-rw-r--r--drivers/crypto/omap-aes.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/crypto/omap-aes.c b/drivers/crypto/omap-aes.c
index a196bb8b1701..581211a92628 100644
--- a/drivers/crypto/omap-aes.c
+++ b/drivers/crypto/omap-aes.c
@@ -1093,7 +1093,7 @@ static struct attribute *omap_aes_attrs[] = {
NULL,
};
-static struct attribute_group omap_aes_attr_group = {
+static const struct attribute_group omap_aes_attr_group = {
.attrs = omap_aes_attrs,
};