diff options
| author | Dmitry Torokhov <dmitry.torokhov@gmail.com> | 2026-10-07 23:19:47 -0700 |
|---|---|---|
| committer | Dmitry Torokhov <dmitry.torokhov@gmail.com> | 2026-10-09 12:10:21 -0700 |
| commit | 64159a032ae7016323bd07540e1a804cafca6853 (patch) | |
| tree | 51decc3e5330c3a971d188c9dee334e4a0d91f47 /drivers/input | |
| parent | 9293becb199761b0429485808198fbc8b377cebe (diff) | |
| download | linux-64159a032ae7016323bd07540e1a804cafca6853.tar.gz linux-64159a032ae7016323bd07540e1a804cafca6853.zip | |
Input: stmpe-keypad - 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
stmpe_keypad_probe() is redundant. Remove it.
Assisted-by: LLM
Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
Diffstat (limited to 'drivers/input')
| -rw-r--r-- | drivers/input/keyboard/stmpe-keypad.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/drivers/input/keyboard/stmpe-keypad.c b/drivers/input/keyboard/stmpe-keypad.c index 0acded4fb9c9..bc5d0217be5c 100644 --- a/drivers/input/keyboard/stmpe-keypad.c +++ b/drivers/input/keyboard/stmpe-keypad.c @@ -361,7 +361,6 @@ static int stmpe_keypad_probe(struct platform_device *pdev) input->name = "STMPE keypad"; input->id.bustype = BUS_I2C; - input->dev.parent = &pdev->dev; error = matrix_keypad_parse_properties(&pdev->dev, &rows, &cols); if (error) |
