Skip to contentSkip to conversation

Input: cyapa - 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: cyapa - 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 cyapa_create_input_dev() is redundant. Remove it.

Reported-by [email protected]
Assisted-by LLM
---
 drivers/input/mouse/cyapa.c | 1 -
 1 file changed, 1 deletion(-)
drivers/input/mouse/cyapa.c +0 -1
index 159cae446824..936ca4b08550 100644
@@ -453,7 +453,6 @@ static int cyapa_create_input_dev(struct cyapa *cyapa)
 	input->id.bustype = BUS_I2C;
 	input->id.version = 1;
 	input->id.product = 0;  /* Means any product in eventcomm. */
-	input->dev.parent = &cyapa->client->dev;
 
 	input->open = cyapa_open;
 	input->close = cyapa_close;
Signature · 5 lines
2.56.0.385.gd3acb90ef8-goog


-- 
Dmitry