[PATCH v2 0/5] Use HWMON_CHANNEL_INFO macro to simplify code
From: Huisong Li
Date: Mon Feb 10 2025 - 00:59:36 EST
The HWMON_CHANNEL_INFO macro is provided by hwmon.h and used widely by many
other drivers. This series use HWMON_CHANNEL_INFO macro to simplify code
in net subsystem.
Note: These patches do not depend on each other. Put them togeter just for
belonging to the same subsystem.
---
-v2:
* detach these patches from the series[1]
[1] https://lore.kernel.org/lkml/20250124022635.16647-3-lihuisong@xxxxxxxxxx/T/
Huisong Li (5):
net: aquantia: Use HWMON_CHANNEL_INFO macro to simplify code
net: nfp: Use HWMON_CHANNEL_INFO macro to simplify code
net: phy: marvell: Use HWMON_CHANNEL_INFO macro to simplify code
net: phy: marvell10g: Use HWMON_CHANNEL_INFO macro to simplify code
net: phy: aquantia: Use HWMON_CHANNEL_INFO macro to simplify code
.../ethernet/aquantia/atlantic/aq_drvinfo.c | 14 +------
.../net/ethernet/netronome/nfp/nfp_hwmon.c | 40 +++----------------
drivers/net/phy/aquantia/aquantia_hwmon.c | 32 +++------------
drivers/net/phy/marvell.c | 24 +----------
drivers/net/phy/marvell10g.c | 24 +----------
5 files changed, 17 insertions(+), 117 deletions(-)
--
2.22.0