diff options
author | Ido Schimmel <idosch@nvidia.com> | 2021-10-12 16:25:12 +0300 |
---|---|---|
committer | Michal Kubecek <mkubecek@suse.cz> | 2021-11-08 18:17:57 +0100 |
commit | 795f42092f205b555e498ee3379d75261c16ef40 (patch) | |
tree | b1e896f591e324b83933ec32c142ac80040beda0 /cmis.h | |
parent | 88892ece6357ddb74fe52a3209c11b9867d4f7b1 (diff) | |
download | ethtool-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.h | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -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__ */ |