netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH v1 00/21] hwmon: Fix the type of 'config' in struct hwmon_channel_info to u64
@ 2025-01-21  6:44 Huisong Li
  2025-01-21  6:44 ` [PATCH v1 01/21] " Huisong Li
                   ` (22 more replies)
  0 siblings, 23 replies; 40+ messages in thread
From: Huisong Li @ 2025-01-21  6:44 UTC (permalink / raw)
  To: linux-hwmon
  Cc: linux-kernel, linux-media, linux-arm-kernel, arm-scmi, netdev,
	linux-rtc, oss-drivers, linux-rdma, platform-driver-x86, linuxarm,
	linux, jdelvare, kernel, pauk.denis, james, sudeep.holla,
	cristian.marussi, matt, mchehab, irusskikh, andrew+netdev, davem,
	edumazet, kuba, pabeni, saeedm, leon, tariqt, louis.peens,
	hkallweit1, linux, kabel, W_Armin, hdegoede, ilpo.jarvinen,
	alexandre.belloni, krzk, jonathan.cameron, zhanjie9, zhenglifeng1,
	liuyonglong, lihuisong

The hwmon_device_register() is deprecated. When I try to repace it with
hwmon_device_register_with_info() for acpi_power_meter driver, I found that
the power channel attribute in linux/hwmon.h have to extend and is more
than 32 after this replacement.

However, the maximum number of hwmon channel attributes is 32 which is
limited by current hwmon codes. This is not good to add new channel
attribute for some hwmon sensor type and support more channel attribute.

This series are aimed to do this. And also make sure that acpi_power_meter
driver can successfully replace the deprecated hwmon_device_register()
later.

Huisong Li (21):
  hwmon: Fix the type of 'config' in struct hwmon_channel_info to u64
  media: video-i2c: Use HWMON_CHANNEL_INFO macro to simplify code
  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
  rtc: ab-eoz9: Use HWMON_CHANNEL_INFO macro to simplify code
  rtc: ds3232: Use HWMON_CHANNEL_INFO macro to simplify code
  w1: w1_therm: w1: Use HWMON_CHANNEL_INFO macro to simplify code
  net: phy: aquantia: Use HWMON_CHANNEL_INFO macro to simplify code
  hwmon: (asus_wmi_sensors) Fix type of 'config' in struct
    hwmon_channel_info to u64
  hwmon: (hp-wmi-sensors) Fix type of 'config' in struct
    hwmon_channel_info to u64
  hwmon: (mr75203) Fix the type of 'config' in struct hwmon_channel_info
    to u64
  hwmon: (pwm-fan) Fix the type of 'config' in struct hwmon_channel_info
    to u64
  hwmon: (scmi-hwmon) Fix the type of 'config' in struct
    hwmon_channel_info to u64
  hwmon: (tmp401) Fix the type of 'config' in struct hwmon_channel_info
    to u64
  hwmon: (tmp421) Fix the type of 'config' in struct hwmon_channel_info
    to u64
  net/mlx5: Fix the type of 'config' in struct hwmon_channel_info to u64
  platform/x86: dell-ddv: Fix the type of 'config' in struct
    hwmon_channel_info to u64
  hwmon: (asus-ec-sensors) Fix the type of 'config' in struct
    hwmon_channel_info to u64
  hwmon: (lm90) Fix the type of 'config' in struct hwmon_channel_info to
    u64

 drivers/hwmon/asus-ec-sensors.c               |   6 +-
 drivers/hwmon/asus_wmi_sensors.c              |   8 +-
 drivers/hwmon/hp-wmi-sensors.c                |   6 +-
 drivers/hwmon/hwmon.c                         |   4 +-
 drivers/hwmon/lm90.c                          |   4 +-
 drivers/hwmon/mr75203.c                       |   6 +-
 drivers/hwmon/pwm-fan.c                       |   4 +-
 drivers/hwmon/scmi-hwmon.c                    |   6 +-
 drivers/hwmon/tmp401.c                        |   4 +-
 drivers/hwmon/tmp421.c                        |   2 +-
 drivers/media/i2c/video-i2c.c                 |  12 +-
 .../ethernet/aquantia/atlantic/aq_drvinfo.c   |  14 +-
 .../net/ethernet/mellanox/mlx5/core/hwmon.c   |   8 +-
 .../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 +-
 drivers/platform/x86/dell/dell-wmi-ddv.c      |   6 +-
 drivers/rtc/rtc-ab-eoz9.c                     |  24 +-
 drivers/rtc/rtc-ds3232.c                      |  24 +-
 drivers/w1/slaves/w1_therm.c                  |  12 +-
 include/linux/hwmon.h                         | 300 +++++++++---------
 22 files changed, 205 insertions(+), 365 deletions(-)

-- 
2.22.0


^ permalink raw reply	[flat|nested] 40+ messages in thread

end of thread, other threads:[~2025-01-22 14:36 UTC | newest]

Thread overview: 40+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-01-21  6:44 [PATCH v1 00/21] hwmon: Fix the type of 'config' in struct hwmon_channel_info to u64 Huisong Li
2025-01-21  6:44 ` [PATCH v1 01/21] " Huisong Li
2025-01-21 17:05   ` Russell King (Oracle)
2025-01-21 17:32     ` Guenter Roeck
2025-01-22  3:34     ` lihuisong (C)
2025-01-21  6:45 ` [PATCH v1 02/21] media: video-i2c: Use HWMON_CHANNEL_INFO macro to simplify code Huisong Li
2025-01-21  6:45 ` [PATCH v1 03/21] net: aquantia: " Huisong Li
2025-01-21  6:45 ` [PATCH v1 04/21] net: nfp: " Huisong Li
2025-01-21  6:45 ` [PATCH v1 05/21] net: phy: marvell: " Huisong Li
2025-01-21  6:45 ` [PATCH v1 06/21] net: phy: marvell10g: " Huisong Li
2025-01-21  6:45 ` [PATCH v1 07/21] rtc: ab-eoz9: " Huisong Li
2025-01-21  6:45 ` [PATCH v1 08/21] rtc: ds3232: " Huisong Li
2025-01-21  6:45 ` [PATCH v1 09/21] w1: w1_therm: w1: " Huisong Li
2025-01-21  6:45 ` [PATCH v1 10/21] net: phy: aquantia: " Huisong Li
2025-01-21  6:45 ` [PATCH v1 11/21] hwmon: (asus_wmi_sensors) Fix type of 'config' in struct hwmon_channel_info to u64 Huisong Li
2025-01-21  6:45 ` [PATCH v1 12/21] hwmon: (hp-wmi-sensors) " Huisong Li
2025-01-21  6:45 ` [PATCH v1 13/21] hwmon: (mr75203) Fix the " Huisong Li
2025-01-21  6:45 ` [PATCH v1 14/21] hwmon: (pwm-fan) " Huisong Li
2025-01-21  6:45 ` [PATCH v1 15/21] hwmon: (scmi-hwmon) " Huisong Li
2025-01-21  6:45 ` [PATCH v1 16/21] hwmon: (tmp401) " Huisong Li
2025-01-21  6:45 ` [PATCH v1 17/21] hwmon: (tmp421) " Huisong Li
2025-01-21  6:45 ` [PATCH v1 18/21] net/mlx5: " Huisong Li
2025-01-21  6:45 ` [PATCH v1 19/21] platform/x86: dell-ddv: " Huisong Li
2025-01-21 12:18   ` Ilpo Järvinen
2025-01-22  5:57     ` lihuisong (C)
2025-01-21  6:45 ` [PATCH v1 20/21] hwmon: (asus-ec-sensors) " Huisong Li
2025-01-21  6:45 ` [PATCH v1 21/21] hwmon: (lm90) " Huisong Li
2025-01-21  7:47 ` [PATCH v1 00/21] hwmon: " Krzysztof Kozlowski
2025-01-21  8:14   ` lihuisong (C)
2025-01-22  7:51     ` Krzysztof Kozlowski
2025-01-22 14:36       ` Guenter Roeck
2025-01-21 14:12 ` Armin Wolf
2025-01-21 14:50   ` Guenter Roeck
2025-01-21 17:20     ` Russell King (Oracle)
2025-01-21 17:37       ` Guenter Roeck
2025-01-22  4:06       ` lihuisong (C)
2025-01-22  2:52     ` lihuisong (C)
2025-01-22  3:19       ` Guenter Roeck
2025-01-22  3:36         ` lihuisong (C)
2025-01-22  2:34   ` lihuisong (C)

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).