Re: [PATCH 8/8] platform/x86: thinkpad_acpi: drop redundant input device parent assignment
From: Mark Pearson
Date: Thu Nov 26 2026 - 22:05:49 EST
On Wed, Nov 25, 2026, at 6:11 PM, Dmitry Torokhov wrote:
> Drop the manual tpacpi_inputdev->dev.parent assignment in
> tpacpi_pdriver_probe(), as devm_input_allocate_device(&pdev->dev)
> already sets the parent device.
>
> Signed-off-by: Dmitry Torokhov <dmitry.torokhov@xxxxxxxxx>
> ---
> drivers/platform/x86/lenovo/thinkpad_acpi.c | 1 -
> 1 file changed, 1 deletion(-)
>
> diff --git a/drivers/platform/x86/lenovo/thinkpad_acpi.c
> b/drivers/platform/x86/lenovo/thinkpad_acpi.c
> index 898d919d697a..e809ed417e0c 100644
> --- a/drivers/platform/x86/lenovo/thinkpad_acpi.c
> +++ b/drivers/platform/x86/lenovo/thinkpad_acpi.c
> @@ -12245,7 +12245,6 @@ static int __init tpacpi_pdriver_probe(struct
> platform_device *pdev)
> tpacpi_inputdev->id.vendor = thinkpad_id.vendor;
> tpacpi_inputdev->id.product = TPACPI_HKEY_INPUT_PRODUCT;
> tpacpi_inputdev->id.version = TPACPI_HKEY_INPUT_VERSION;
> - tpacpi_inputdev->dev.parent = &tpacpi_pdev->dev;
>
> /* Init subdriver dependencies */
> tpacpi_detect_brightness_capabilities();
>
> --
> 2.56.1.839.g22a8290db9-goog
Looks good.
Reviewed-by: Mark Pearson <mpearson-lenovo@xxxxxxxxx>
Mark