Re: [PATCH v2] platform/surface: surfacepro3_button: Stop setting acpi_device_name()

From: Andy Shevchenko

Date: Wed Jul 08 2026 - 10:47:38 EST


On Tue, Jul 07, 2026 at 01:12:35PM +0200, Rafael J. Wysocki wrote:

> The driver sets acpi_device_name() to initialize an input class device
> name initialization and print a message on probe success, but the input
> class device name can be set directly to the "Surface Pro 3/4 Buttons"
> string literal and used for printing the message.
>
> Make the driver do so, stop setting acpi_device_name() in it and drop
> the symbol specifically defined for this purpose.
>
> No intentional functional impact.
>
> This will facilitate the removal of device_name from struct
> acpi_device_pnp in the future.

Reviewed-by: Andy Shevchenko <andriy.shevchenko@xxxxxxxxxxxxxxx>

--
With Best Regards,
Andy Shevchenko