diff mbox series

[v8,2/3] thunderbolt: Modify tb_nvm major and minor size.

Message ID 20220902094010.2170-3-chensiying21@gmail.com
State New
Headers show
Series thunderbolt: add vendor's NVM formats | expand

Commit Message

Szuying Chen Sept. 2, 2022, 9:40 a.m. UTC
From: Szuying Chen <Chloe_Chen@asmedia.com.tw>

Intel's version can be stored in 2 bytes, but ASMedia's version
requires 8 bytes. Extend the 'major' and 'minor' members of the tb_nvm
structure to support both vendors.

Signed-off-by: Szuying Chen <Chloe_Chen@asmedia.com.tw>
---
v7->v8: Fix patch message based on suggestion by Mario

 drivers/thunderbolt/tb.h | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

--
2.34.1
diff mbox series

Patch

diff --git a/drivers/thunderbolt/tb.h b/drivers/thunderbolt/tb.h
index 7ef571f88606..f3f834511983 100644
--- a/drivers/thunderbolt/tb.h
+++ b/drivers/thunderbolt/tb.h
@@ -50,8 +50,8 @@ 
  */
 struct tb_nvm {
 	struct device *dev;
-	u8 major;
-	u8 minor;
+	u32 major;
+	u32 minor;
 	int id;
 	struct nvmem_device *active;
 	struct nvmem_device *non_active;