Skip to content

Commit

Permalink
modules/mqnic: use unsigned short for I2C addresses
Browse files Browse the repository at this point in the history
the i2c_client defines i2c addresses as unsigned short so we follow
this style
  • Loading branch information
Basseuph authored and alexforencich committed Jun 26, 2023
1 parent b1f1465 commit 21f5a75
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions modules/mqnic/mqnic_ethtool.c
Expand Up @@ -323,7 +323,7 @@ static int mqnic_query_module_id(struct net_device *ndev)
}

static int mqnic_query_module_eeprom_by_page(struct net_device *ndev,
u8 i2c_addr, u16 page, u16 bank, u16 offset, u16 len, u8 *data)
unsigned short i2c_addr, u16 page, u16 bank, u16 offset, u16 len, u8 *data)
{
int module_id;
u8 d;
Expand Down Expand Up @@ -399,7 +399,7 @@ static int mqnic_query_module_eeprom(struct net_device *ndev,
u16 offset, u16 len, u8 *data)
{
int module_id;
u8 i2c_addr = 0x50;
unsigned short i2c_addr = 0x50;
u16 page = 0;
u16 bank = 0;

Expand Down

0 comments on commit 21f5a75

Please sign in to comment.