Re: [PATCH v1] hwmon: (acpi_power_meter) Stop setting acpi_device_name/class()

From: Guenter Roeck

Date: Mon Jul 06 2026 - 10:23:41 EST


On Mon, Jul 06, 2026 at 02:35:51PM +0200, Rafael J. Wysocki wrote:
> From: "Rafael J. Wysocki" <rafael.j.wysocki@xxxxxxxxx>
>
> The driver populates acpi_device_name() and acpi_device_class() that are
> never read afterward, so make it stop doing that and drop the symbols
> defined for this purpose.
>
> Since ACPI_POWER_METER_CLASS is also used for generating ACPI netlink
> events, use the "pwr_meter_resource" string literal directly instead of
> it for that.
>
> No intentional functional impact.
>
> This will facilitate the removal of device_name and device_class from
> struct acpi_device_pnp in the future.
>
> Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@xxxxxxxxx>

Applied.

Thanks,
Guenter