tpm: nuvoton: Use i2c_get_match_data()
authorRob Herring <robh@kernel.org>
Wed, 15 Nov 2023 21:02:15 +0000 (15:02 -0600)
committerJarkko Sakkinen <jarkko@kernel.org>
Tue, 9 Jan 2024 09:12:27 +0000 (11:12 +0200)
commita4c7d794ac16224e5f86f359e65b89d5d8aad3bf
treeb3831fdcfac564a3de82e61418d4aec2ec4d8937
parent9f8413c4a66f2fb776d3dc3c9ed20bf435eb305e
tpm: nuvoton: Use i2c_get_match_data()

Use preferred i2c_get_match_data() instead of of_match_device() to
get the driver match data. With this, adjust the includes to explicitly
include the correct headers.

Signed-off-by: Rob Herring <robh@kernel.org>
Reviewed-by: Jarkko Sakkinen <jarkko@kernel.org>
Signed-off-by: Jarkko Sakkinen <jarkko@kernel.org>
drivers/char/tpm/tpm_i2c_nuvoton.c