tpm/ppi: Constify static struct attribute_group
authorRikard Falkeborn <rikard.falkeborn@gmail.com>
Thu, 4 Feb 2021 21:54:27 +0000 (22:54 +0100)
committerJarkko Sakkinen <jarkko@kernel.org>
Tue, 16 Feb 2021 08:40:27 +0000 (10:40 +0200)
commit90cba8d20f8b09d62a25f9864cb8e67722d76c3a
tree759ae82b4cd6fd8545f094562b989d7d6f8748ff
parent52d0848e1d60e8884eca6a949300f8e5be094ddf
tpm/ppi: Constify static struct attribute_group

The only usage of ppi_attr_grp is to put its address in an array of
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>
Reviewed-by: Jarkko Sakkinen <jarkko@kernel.org>
Signed-off-by: Jarkko Sakkinen <jarkko@kernel.org>
drivers/char/tpm/tpm-chip.c
drivers/char/tpm/tpm_ppi.c