]> git.baikalelectronics.ru Git - kernel.git/commit
crypto: omap-aes - Constify static attribute_group
authorRikard Falkeborn <rikard.falkeborn@gmail.com>
Thu, 10 Feb 2022 20:28:03 +0000 (21:28 +0100)
committerHerbert Xu <herbert@gondor.apana.org.au>
Fri, 18 Feb 2022 05:21:09 +0000 (16:21 +1100)
commite71aa7d6bcf3d0e0eb04c6216d6f662fe19d1831
tree2c6987f424027e44905e12adf568d9a828ea294b
parentddede7af4858e0d8b2608ef053ea16e708108a0e
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>
drivers/crypto/omap-aes.c