From: Ido Schimmel <idosch@idosch.org>
To: netdev@vger.kernel.org
Cc: mkubecek@suse.cz, popadrian1996@gmail.com, mlxsw@nvidia.com,
Ido Schimmel <idosch@nvidia.com>
Subject: [PATCH ethtool-next v2 2/7] cmis: Fix wrong define name
Date: Fri, 1 Oct 2021 18:06:22 +0300 [thread overview]
Message-ID: <20211001150627.1353209-3-idosch@idosch.org> (raw)
In-Reply-To: <20211001150627.1353209-1-idosch@idosch.org>
From: Ido Schimmel <idosch@nvidia.com>
Offset 0x10 in the Lower Memory stores the "VccMonVoltage".
Signed-off-by: Ido Schimmel <idosch@nvidia.com>
---
cmis.c | 2 +-
cmis.h | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/cmis.c b/cmis.c
index 499355d0e024..408db6f26c3b 100644
--- a/cmis.c
+++ b/cmis.c
@@ -271,7 +271,7 @@ static void cmis_show_mod_lvl_monitors(const __u8 *id)
PRINT_TEMP("Module temperature",
OFFSET_TO_TEMP(CMIS_CURR_TEMP_OFFSET));
PRINT_VCC("Module voltage",
- OFFSET_TO_U16(CMIS_CURR_CURR_OFFSET));
+ OFFSET_TO_U16(CMIS_CURR_VCC_OFFSET));
}
static void cmis_show_link_len_from_page(const __u8 *page_one_data)
diff --git a/cmis.h b/cmis.h
index cfac08f42904..e3012ccfdd79 100644
--- a/cmis.h
+++ b/cmis.h
@@ -11,7 +11,7 @@
/* Module-Level Monitors (Page 0) */
#define CMIS_CURR_TEMP_OFFSET 0x0E
-#define CMIS_CURR_CURR_OFFSET 0x10
+#define CMIS_CURR_VCC_OFFSET 0x10
#define CMIS_CTOR_OFFSET 0xCB
--
2.31.1
next prev parent reply other threads:[~2021-10-01 15:07 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-10-01 15:06 [PATCH ethtool-next v2 0/7] ethtool: Small EEPROM changes Ido Schimmel
2021-10-01 15:06 ` [PATCH ethtool-next v2 1/7] cmis: Fix CLEI code parsing Ido Schimmel
2021-10-01 15:06 ` Ido Schimmel [this message]
2021-10-01 15:06 ` [PATCH ethtool-next v2 3/7] cmis: Correct comment Ido Schimmel
2021-10-01 15:06 ` [PATCH ethtool-next v2 4/7] sff-8636: Remove incorrect comment Ido Schimmel
2021-10-01 15:06 ` [PATCH ethtool-next v2 5/7] sff-8636: Fix incorrect function name Ido Schimmel
2021-10-01 15:06 ` [PATCH ethtool-next v2 6/7] sff-8636: Convert if statement to switch-case Ido Schimmel
2021-10-01 15:06 ` [PATCH ethtool-next v2 7/7] sff-8636: Remove extra blank lines Ido Schimmel
2021-10-08 12:32 ` [PATCH ethtool-next v2 0/7] ethtool: Small EEPROM changes Ido Schimmel
2021-10-11 10:50 ` patchwork-bot+netdevbpf
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20211001150627.1353209-3-idosch@idosch.org \
--to=idosch@idosch.org \
--cc=idosch@nvidia.com \
--cc=mkubecek@suse.cz \
--cc=mlxsw@nvidia.com \
--cc=netdev@vger.kernel.org \
--cc=popadrian1996@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).