1f2507
From a934091a0b42cd7c71c9e71a235e57af718c9952 Mon Sep 17 00:00:00 2001
1f2507
From: Ido Schimmel <idosch@nvidia.com>
1f2507
Date: Fri, 1 Oct 2021 18:06:22 +0300
1f2507
Subject: [PATCH 07/35] cmis: Fix wrong define name
1f2507
1f2507
Offset 0x10 in the Lower Memory stores the "VccMonVoltage".
1f2507
1f2507
Signed-off-by: Ido Schimmel <idosch@nvidia.com>
1f2507
---
1f2507
 cmis.c | 2 +-
1f2507
 cmis.h | 2 +-
1f2507
 2 files changed, 2 insertions(+), 2 deletions(-)
1f2507
1f2507
diff --git a/cmis.c b/cmis.c
1f2507
index 499355d0e024..408db6f26c3b 100644
1f2507
--- a/cmis.c
1f2507
+++ b/cmis.c
1f2507
@@ -271,7 +271,7 @@ static void cmis_show_mod_lvl_monitors(const __u8 *id)
1f2507
 	PRINT_TEMP("Module temperature",
1f2507
 		   OFFSET_TO_TEMP(CMIS_CURR_TEMP_OFFSET));
1f2507
 	PRINT_VCC("Module voltage",
1f2507
-		  OFFSET_TO_U16(CMIS_CURR_CURR_OFFSET));
1f2507
+		  OFFSET_TO_U16(CMIS_CURR_VCC_OFFSET));
1f2507
 }
1f2507
 
1f2507
 static void cmis_show_link_len_from_page(const __u8 *page_one_data)
1f2507
diff --git a/cmis.h b/cmis.h
1f2507
index cfac08f42904..e3012ccfdd79 100644
1f2507
--- a/cmis.h
1f2507
+++ b/cmis.h
1f2507
@@ -11,7 +11,7 @@
1f2507
 
1f2507
 /* Module-Level Monitors (Page 0) */
1f2507
 #define CMIS_CURR_TEMP_OFFSET			0x0E
1f2507
-#define CMIS_CURR_CURR_OFFSET			0x10
1f2507
+#define CMIS_CURR_VCC_OFFSET			0x10
1f2507
 
1f2507
 #define CMIS_CTOR_OFFSET			0xCB
1f2507
 
1f2507
-- 
1f2507
2.35.1
1f2507