Skip to contentSkip to conversation

Input: axp20x-pek - drop redundant idev->dev.parent assignment

PATCH New Dmitry Torokhov 1 participant 1 message Oct 8

Subsystems (3)
lore
Share & tools
lore

Dmitry Torokhov

author maintainer
#0 lore raw

PATCH 1/1 Input: axp20x-pek - drop redundant idev->dev.parent assignment

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 [email protected]
Assisted-by LLM
---
 drivers/input/misc/axp20x-pek.c | 1 -
 1 file changed, 1 deletion(-)
drivers/input/misc/axp20x-pek.c +0 -1
index 24f9e9d893de..c34e002258ee 100644
@@ -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);
 
Signature · 5 lines
2.56.0.385.gd3acb90ef8-goog


-- 
Dmitry