]> git.ipfire.org Git - thirdparty/linux.git/commit
tpm: svsm: constify tpm_chip_ops
authorDavid Windsor <dwindsor@gmail.com>
Tue, 5 May 2026 20:27:38 +0000 (16:27 -0400)
committerJarkko Sakkinen <jarkko@kernel.org>
Sun, 21 Jun 2026 01:25:27 +0000 (04:25 +0300)
commitebc242f78c52ef9de0e650bf48f64eb110351a4f
treeb5733c36efff2d356a530047622e18dcb07d2e6a
parent1a3746ccbb0a97bed3c06ccde6b880013b1dddc1
tpm: svsm: constify tpm_chip_ops

Constify the SVSM vTPM ops. It is statically initialized and never
written to, so let's store it in .rodata.

Every other tpm_class_ops instance in drivers/char/tpm/ is already
const.

Signed-off-by: David Windsor <dwindsor@gmail.com>
Reviewed-by: Stefano Garzarella <sgarzare@redhat.com>
Link: https://lore.kernel.org/r/20260505202738.145800-1-dwindsor@gmail.com
Signed-off-by: Jarkko Sakkinen <jarkko@kernel.org>
drivers/char/tpm/tpm_svsm.c