thunderbolt: Rename and make nvm_read() available for other files
authorSzuying Chen <Chloe_Chen@asmedia.com.tw>
Sat, 3 Sep 2022 07:39:18 +0000 (10:39 +0300)
committerMika Westerberg <mika.westerberg@linux.intel.com>
Wed, 7 Sep 2022 06:06:51 +0000 (09:06 +0300)
commit7bfafaa5185be3088e57f046956d6db0155ddc17
tree25c10caa09ba24f49777eb4d9800323bb957c36f
parent5424e1bf16f96bd681c780f5fd12e33588c7ade3
thunderbolt: Rename and make nvm_read() available for other files

In order to support non-Intel NVM formats the vendor specific NVM
validation code that will live in nvm.c needs to be able to read various
parts of the NVM so make the function available outside of switch.c and
rename it accordingly.

Signed-off-by: Szuying Chen <Chloe_Chen@asmedia.com.tw>
Signed-off-by: Mika Westerberg <mika.westerberg@linux.intel.com>
drivers/thunderbolt/switch.c
drivers/thunderbolt/tb.h