]> Gentwo Git Trees - linux/.git/commit
tpm: Remove tpm_find_get_ops
authorJonathan McDowell <noodles@meta.com>
Thu, 27 Nov 2025 17:02:29 +0000 (17:02 +0000)
committerJarkko Sakkinen <jarkko@kernel.org>
Wed, 3 Dec 2025 20:55:28 +0000 (22:55 +0200)
commit020a0d8feac0fd8a6f6c545c55f5990875226a0b
tree463e8e8ac9da2b5f8f6681e180d3f35213155478
parente68407b6b0c7c5a4b873bbbd0758a2aed857dc3f
tpm: Remove tpm_find_get_ops

tpm_find_get_ops() looks for the first valid TPM if the caller passes in
NULL. All internal users have been converted to either associate
themselves with a TPM directly, or call tpm_default_chip() as part of
their setup. Remove the no longer necessary tpm_find_get_ops().

Reviewed-by: Jarkko Sakkinen <jarkko@kernel.org>
Signed-off-by: Jonathan McDowell <noodles@meta.com>
Signed-off-by: Jarkko Sakkinen <jarkko@kernel.org>
drivers/char/tpm/tpm-chip.c
drivers/char/tpm/tpm-interface.c
drivers/char/tpm/tpm.h
drivers/char/tpm/tpm_tis_core.c