From 24edf39189e88218a65890ab858a1c39ef2f4a3a Mon Sep 17 00:00:00 2001 From: Dmitry Torokhov Date: Wed, 7 Oct 2026 23:20:04 -0700 Subject: [PATCH] Input: wm831x-ts - drop redundant input_dev->dev.parent assignment devm_input_allocate_device() already initializes input_dev->dev.parent to the supplied parent device, so the explicit assignment in wm831x_ts_probe() is redundant. Remove it. Assisted-by: LLM Signed-off-by: Dmitry Torokhov --- drivers/input/touchscreen/wm831x-ts.c | 1 - 1 file changed, 1 deletion(-) diff --git a/drivers/input/touchscreen/wm831x-ts.c b/drivers/input/touchscreen/wm831x-ts.c index 98f8ec408cad..17c58b6fa123 100644 --- a/drivers/input/touchscreen/wm831x-ts.c +++ b/drivers/input/touchscreen/wm831x-ts.c @@ -356,7 +356,6 @@ static int wm831x_ts_probe(struct platform_device *pdev) input_set_abs_params(input_dev, ABS_PRESSURE, 0, 4095, 5, 0); input_set_drvdata(input_dev, wm831x_ts); - input_dev->dev.parent = &pdev->dev; error = input_register_device(input_dev); if (error)