aboutsummaryrefslogtreecommitdiffstats
path: root/cmis.h
diff options
context:
space:
mode:
authorIdo Schimmel <idosch@nvidia.com>2021-10-12 16:25:12 +0300
committerMichal Kubecek <mkubecek@suse.cz>2021-11-08 18:17:57 +0100
commit795f42092f205b555e498ee3379d75261c16ef40 (patch)
treeb1e896f591e324b83933ec32c142ac80040beda0 /cmis.h
parent88892ece6357ddb74fe52a3209c11b9867d4f7b1 (diff)
downloadethtool-795f42092f205b555e498ee3379d75261c16ef40.tar.gz
cmis: Rename CMIS parsing functions
Currently, there are two CMIS parsing functions. qsfp_dd_show_all() and cmis_show_all(). The former is called from the IOCTL path with a buffer containing EEPROM contents and the latter is called from the netlink path with pointer to individual EEPROM pages. Rename them with '_ioctl' and '_nl' suffixes to make the distinction clear. In subsequent patches, these two functions will only differ in the way they initialize the CMIS memory map for parsing, while the parsing code itself will be shared between the two. Signed-off-by: Ido Schimmel <idosch@nvidia.com>
Diffstat (limited to 'cmis.h')
-rw-r--r--cmis.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/cmis.h b/cmis.h
index e3012cc..734b90f 100644
--- a/cmis.h
+++ b/cmis.h
@@ -120,9 +120,9 @@
#define YESNO(x) (((x) != 0) ? "Yes" : "No")
#define ONOFF(x) (((x) != 0) ? "On" : "Off")
-void qsfp_dd_show_all(const __u8 *id);
+void cmis_show_all_ioctl(const __u8 *id);
-void cmis_show_all(const struct ethtool_module_eeprom *page_zero,
- const struct ethtool_module_eeprom *page_one);
+void cmis_show_all_nl(const struct ethtool_module_eeprom *page_zero,
+ const struct ethtool_module_eeprom *page_one);
#endif /* CMIS_H__ */