[PATCH] Input: axp20x-pek - drop redundant idev->dev.parent assignment
From: Dmitry Torokhov
Date: Thu Oct 08 2026 - 02:10:12 EST
devm_input_allocate_device() already initializes idev->dev.parent to
the supplied parent device, so the explicit assignment in
axp20x_pek_probe_input_device() is redundant. Remove it.
Reported-by: sashiko-bot@xxxxxxxxxx
Assisted-by: LLM
Signed-off-by: Dmitry Torokhov <dmitry.torokhov@xxxxxxxxx>
---
drivers/input/misc/axp20x-pek.c | 1 -
1 file changed, 1 deletion(-)
diff --git a/drivers/input/misc/axp20x-pek.c b/drivers/input/misc/axp20x-pek.c
index 24f9e9d893de..c34e002258ee 100644
--- a/drivers/input/misc/axp20x-pek.c
+++ b/drivers/input/misc/axp20x-pek.c
@@ -241,7 +241,6 @@ static int axp20x_pek_probe_input_device(struct axp20x_pek *axp20x_pek,
idev->name = "axp20x-pek";
idev->phys = "m1kbd/input2";
- idev->dev.parent = &pdev->dev;
input_set_capability(idev, EV_KEY, KEY_POWER);
--
2.56.0.385.gd3acb90ef8-goog
--
Dmitry