From 9c7c99e6d477ef06d41550df15be7d40d52b5272 Mon Sep 17 00:00:00 2001 From: Dmitry Torokhov Date: Wed, 7 Oct 2026 23:19:56 -0700 Subject: [PATCH] Input: ad7879 - 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 ad7879_probe() is redundant. Remove it. Assisted-by: LLM Signed-off-by: Dmitry Torokhov --- drivers/input/touchscreen/ad7879.c | 1 - 1 file changed, 1 deletion(-) diff --git a/drivers/input/touchscreen/ad7879.c b/drivers/input/touchscreen/ad7879.c index 31d2a3029d5f..0789d8e19eab 100644 --- a/drivers/input/touchscreen/ad7879.c +++ b/drivers/input/touchscreen/ad7879.c @@ -545,7 +545,6 @@ int ad7879_probe(struct device *dev, struct regmap *regmap, input_dev->name = "AD7879 Touchscreen"; input_dev->phys = ts->phys; - input_dev->dev.parent = dev; input_dev->id.bustype = bustype; input_dev->open = ad7879_open;