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