summaryrefslogtreecommitdiff
path: root/drivers/char/tpm/tpm_i2c_nuvoton.c
diff options
context:
space:
mode:
authorHeiner Kallweit <hkallweit1@gmail.com>2021-08-18 22:03:44 +0300
committerBjorn Helgaas <bhelgaas@google.com>2021-08-20 23:49:00 +0300
commit37838aa437c78fefd7d818f5f01a3a3950e92f40 (patch)
tree947723f1c76760d0b6371da52b7a470f6fca05b3 /drivers/char/tpm/tpm_i2c_nuvoton.c
parent5119e20facfaa9f5454dd01192f3729415c7b139 (diff)
downloadlinux-37838aa437c78fefd7d818f5f01a3a3950e92f40.tar.xz
sfc: Search VPD with pci_vpd_find_ro_info_keyword()
Use pci_vpd_find_ro_info_keyword() to search for keywords in VPD to simplify the code. Replace netif_err() with pci_err() because the netdevice isn't registered yet, which results in very ugly messages. Use kmemdup_nul() instead of open-coding it. Link: https://lore.kernel.org/r/bf5d4ba9-61a9-2bfe-19ec-75472732d74d@gmail.com Signed-off-by: Heiner Kallweit <hkallweit1@gmail.com> Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
Diffstat (limited to 'drivers/char/tpm/tpm_i2c_nuvoton.c')
0 files changed, 0 insertions, 0 deletions