[PATCH v2 0/2] Use HWMON_CHANNEL_INFO macro to simplify code

From: Huisong Li
Date: Mon Feb 10 2025 - 00:58:33 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
for rtc 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 (2):
rtc: ab-eoz9: Use HWMON_CHANNEL_INFO macro to simplify code
rtc: ds3232: Use HWMON_CHANNEL_INFO macro to simplify code

drivers/rtc/rtc-ab-eoz9.c | 24 ++----------------------
drivers/rtc/rtc-ds3232.c | 24 ++----------------------
2 files changed, 4 insertions(+), 44 deletions(-)

--
2.22.0