public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH v1 0/4] thermal: Eliminate thermal_zone_device_register()
@ 2023-08-30 16:10 Rafael J. Wysocki
  2023-08-30 16:11 ` [PATCH v1 1/4] thermal: core: Clean up headers of thermal zone registration functions Rafael J. Wysocki
                   ` (3 more replies)
  0 siblings, 4 replies; 9+ messages in thread
From: Rafael J. Wysocki @ 2023-08-30 16:10 UTC (permalink / raw)
  To: Linux PM
  Cc: LKML, Daniel Lezcano, Srinivas Pandruvada, Zhang Rui,
	Amit Kucheria, Miquel Raynal, Sebastian Reichel

Hi Everyone,

After recently merged changes in the ACPI thermal and Intel DTS IOSF thermal
drivers, the only callers of thermal_zone_device_register() are the ones
using it for registering thermal zones without any trip points.  They all
pass zeros as 4 (out of 8) function arguments, so retaining the full
thermal_zone_device_register() just for this purpose seems a bit excessive.

For this reason, the series adds a thermal_zone_device_register()
replacement tailored to this specific use case and called
thermal_tripless_zone_device_register() [2/4] and makes all of the
existing callers of the former use the replacement [3/4].  This allows
thermal_zone_device_register() to be dropped [4/4].

The first patch is just a clean up making function headers in thermal.h
a bit more consistent.

This series it not intended to make any functional impact, but if the
changes are fine with everyone, I would like to introduce them during the
ongoing merge window to prevent the obsolete interface from lingering.

The series applies to the linux-next branch in linux-pm.git.

Thanks!




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

end of thread, other threads:[~2023-09-12 16:30 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-08-30 16:10 [PATCH v1 0/4] thermal: Eliminate thermal_zone_device_register() Rafael J. Wysocki
2023-08-30 16:11 ` [PATCH v1 1/4] thermal: core: Clean up headers of thermal zone registration functions Rafael J. Wysocki
2023-08-30 16:13 ` [PATCH v1 2/4] thermal: core: Add function for registering tripless thermal zones Rafael J. Wysocki
2023-08-30 16:14 ` [PATCH v1 3/4] thermal: Use thermal_tripless_zone_device_register() Rafael J. Wysocki
2023-08-31  6:58   ` Miquel Raynal
2023-09-04 12:54     ` Rafael J. Wysocki
2023-09-04 12:56   ` Rafael J. Wysocki
2023-09-12 16:30   ` Sebastian Reichel
2023-08-30 16:16 ` [PATCH v1 4/4] thermal: core: Drop thermal_zone_device_register() Rafael J. Wysocki

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