[PATCH 3/3] crypto/nx: Constify static attribute_group structs

2022-02-10 Thread Rikard Falkeborn
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: Rikard Falkeborn --- drivers/crypto/nx/nx-common-pseries.c | 4 ++-- 1

[PATCH 2/3] crypto: omap-sham - Constify static attribute_group

2022-02-10 Thread Rikard Falkeborn
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: Rikard Falkeborn --- drivers/crypto/omap-sham.c | 2 +- 1 file

[PATCH 1/3] crypto: omap-aes - Constify static attribute_group

2022-02-10 Thread Rikard Falkeborn
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 --- drivers/crypto/omap-aes.c | 2 +- 1 file

[PATCH 0/3] drivers/crypto: Constify static attribute_group

2022-02-10 Thread Rikard Falkeborn
This series constifies a couple of static attribute_group structs that are not modified. This allows the compiler to put them in read-only memory. The patches are independent and can be applied in any order (and go through different trees if needed). Rikard Falkeborn (3): crypto: omap-aes

[PATCH] ASoC: fsl: Constify static snd_soc_ops

2021-09-20 Thread Rikard Falkeborn
These are only assigned to the ops field in the snd_soc_dai_link struct which is a pointer to const struct snd_soc_ops. Make them const to allow the compiler to put them in read-only memory. Signed-off-by: Rikard Falkeborn --- sound/soc/fsl/imx-audmix.c | 4 ++-- sound/soc/fsl/imx-card.c | 4

[PATCH] ASoC: fsl: constify static snd_soc_dai_ops structs

2021-02-06 Thread Rikard Falkeborn
The only usage of these is to assign their address to the 'ops' field in the snd_soc_dai_driver struct, which is a pointer to const. Make them const to allow the compiler to put them in read-only memory. Signed-off-by: Rikard Falkeborn --- sound/soc/fsl/fsl_easrc.c | 2 +- sou