Skip to content

Commit

Permalink
ethtool: Use kernel data types for internal EEPROM struct
Browse files Browse the repository at this point in the history
The struct is not visible to user space and therefore should not use the
user visible data types.

Instead, use internal data types like other structures in the file.

Signed-off-by: Ido Schimmel <idosch@nvidia.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
  • Loading branch information
idosch authored and davem330 committed Jun 22, 2021
1 parent 37a025e commit b8c48be
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions include/linux/ethtool.h
Original file line number Diff line number Diff line change
Expand Up @@ -401,12 +401,12 @@ struct ethtool_rmon_stats {
* required information to the driver.
*/
struct ethtool_module_eeprom {
__u32 offset;
__u32 length;
__u8 page;
__u8 bank;
__u8 i2c_address;
__u8 *data;
u32 offset;
u32 length;
u8 page;
u8 bank;
u8 i2c_address;
u8 *data;
};

/**
Expand Down

0 comments on commit b8c48be

Please sign in to comment.