1
0
mirror of https://github.com/corundum/corundum.git synced 2025-01-16 08:12:53 +08:00

modules/mqnic: use unsigned short for I2C addresses

the i2c_client defines i2c addresses as unsigned short so we follow
this style
This commit is contained in:
Ulrich Langenbach 2022-08-17 17:29:42 +02:00 committed by Alex Forencich
parent b1f14659d9
commit 21f5a758c9

View File

@ -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;
@ -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;