summaryrefslogtreecommitdiff
path: root/drivers/input
diff options
context:
space:
mode:
authorDmitry Torokhov <dmitry.torokhov@gmail.com>2026-10-07 23:01:53 -0700
committerDmitry Torokhov <dmitry.torokhov@gmail.com>2026-10-09 12:10:12 -0700
commitb37d23791fe52eb457753eb5ecaa5361b2d64189 (patch)
treedd1e956fc7391ab40e43b1ce1118645643a2f095 /drivers/input
parent940d4b53c1718dbd422d9ee981f02c4b21b8c4b5 (diff)
downloadlinux-next-b37d23791fe52eb457753eb5ecaa5361b2d64189.tar.gz
linux-next-b37d23791fe52eb457753eb5ecaa5361b2d64189.zip
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: sashiko-bot@kernel.org Assisted-by: LLM Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
Diffstat (limited to 'drivers/input')
-rw-r--r--drivers/input/mouse/cyapa.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/drivers/input/mouse/cyapa.c b/drivers/input/mouse/cyapa.c
index 47000c30e4d8..5d99abea89aa 100644
--- a/drivers/input/mouse/cyapa.c
+++ b/drivers/input/mouse/cyapa.c
@@ -449,7 +449,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;