mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH v3 0/2] hwmon: (core) Avoid ifdef CONFIG_THERMAL in C source file
@ 2024-11-18  6:15 Thomas Weißschuh
  2024-11-18  6:15 ` [PATCH v3 1/2] thermal: core: Add stub for thermal_zone_device_update() Thomas Weißschuh
  2024-11-18  6:15 ` [PATCH v3 2/2] hwmon: (core) Avoid ifdef CONFIG_THERMAL in C source file Thomas Weißschuh
  0 siblings, 2 replies; 6+ messages in thread
From: Thomas Weißschuh @ 2024-11-18  6:15 UTC (permalink / raw)
  To: Jean Delvare, Guenter Roeck, Rafael J. Wysocki, Daniel Lezcano,
	Zhang Rui, Lukasz Luba
  Cc: linux-hwmon, linux-kernel, linux-pm, Thomas Weißschuh

Replace some confusing ifdeffery with IS_ENABLED() conditionals.
The ifdefs confused me while looking at the implementation of
HWMON_C_REGISTER_TZ.

Signed-off-by: Thomas Weißschuh <linux@weissschuh.net>
---
Changes in v3:
- Fix warning "omitting the parameter name in a function definition is a C23 extension [-Werror,-Wc23-extensions]"
- Link to v2: https://lore.kernel.org/r/20241115-hwmon-thermal-v2-0-c96f0c0984b2@weissschuh.net

Changes in v2:
- Add stub for thermal_zone_device_update()
- Link to v1: https://lore.kernel.org/r/20241113-hwmon-thermal-v1-1-71270be7f7a2@weissschuh.net

---
Thomas Weißschuh (2):
      thermal: core: Add stub for thermal_zone_device_update()
      hwmon: (core) Avoid ifdef CONFIG_THERMAL in C source file

 drivers/hwmon/hwmon.c   | 21 ++++++---------------
 include/linux/thermal.h |  4 ++++
 2 files changed, 10 insertions(+), 15 deletions(-)
---
base-commit: f66d6acccbc08b4146f4c2cf9445241f70f5517d
change-id: 20241113-hwmon-thermal-2d2da581c276

Best regards,
-- 
Thomas Weißschuh <linux@weissschuh.net>


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

end of thread, other threads:[~2024-11-25 17:10 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-11-18  6:15 [PATCH v3 0/2] hwmon: (core) Avoid ifdef CONFIG_THERMAL in C source file Thomas Weißschuh
2024-11-18  6:15 ` [PATCH v3 1/2] thermal: core: Add stub for thermal_zone_device_update() Thomas Weißschuh
2024-11-25 14:12   ` Rafael J. Wysocki
2024-11-25 17:09   ` Guenter Roeck
2024-11-18  6:15 ` [PATCH v3 2/2] hwmon: (core) Avoid ifdef CONFIG_THERMAL in C source file Thomas Weißschuh
2024-11-25 17:09   ` Guenter Roeck

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®