Skip to contentSkip to conversation

Input: gpio_keys - drop redundant input->dev.parent assignment

PATCH New Dmitry Torokhov 1 participant 1 message Oct 8

Subsystems (2)
lore
Share & tools
lore

Dmitry Torokhov

author maintainer
#0 lore raw

PATCH 1/1 Input: gpio_keys - drop redundant input->dev.parent assignment

devm_input_allocate_device() already initializes input->dev.parent to the supplied parent device, so the explicit assignment in gpio_keys_probe() is redundant. Remove it.

Reported-by [email protected]
Assisted-by LLM
---
 drivers/input/keyboard/gpio_keys.c | 1 -
 1 file changed, 1 deletion(-)
drivers/input/keyboard/gpio_keys.c +0 -1
index e19617485679..defe4074a60e 100644
@@ -885,7 +885,6 @@ static int gpio_keys_probe(struct platform_device *pdev)
 
 	input->name = pdata->name ? : pdev->name;
 	input->phys = "gpio-keys/input0";
-	input->dev.parent = dev;
 	input->open = gpio_keys_open;
 	input->close = gpio_keys_close;
 
Signature · 5 lines
2.56.0.385.gd3acb90ef8-goog


-- 
Dmitry