summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDmitry Torokhov <dmitry.torokhov@gmail.com>2026-10-07 23:19:56 -0700
committerDmitry Torokhov <dmitry.torokhov@gmail.com>2026-10-09 12:10:32 -0700
commit9c7c99e6d477ef06d41550df15be7d40d52b5272 (patch)
tree6ad71c23265b71491f0dce7b566efd22746659d6
parent2bd73a60f4c3ff3722e3bdfbed53e4ce9c4d4a55 (diff)
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 <dmitry.torokhov@gmail.com>
-rw-r--r--drivers/input/touchscreen/ad7879.c1
1 files changed, 0 insertions, 1 deletions
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;