From 21f5a758c936bd640f4910efd5450aba04e76f02 Mon Sep 17 00:00:00 2001 From: Ulrich Langenbach Date: Wed, 17 Aug 2022 17:29:42 +0200 Subject: [PATCH] modules/mqnic: use unsigned short for I2C addresses the i2c_client defines i2c addresses as unsigned short so we follow this style --- modules/mqnic/mqnic_ethtool.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/mqnic/mqnic_ethtool.c b/modules/mqnic/mqnic_ethtool.c index f99699e71..bf44dcefb 100644 --- a/modules/mqnic/mqnic_ethtool.c +++ b/modules/mqnic/mqnic_ethtool.c @@ -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;