diff options
| author | Dmitry Torokhov <dmitry.torokhov@gmail.com> | 2026-10-07 23:19:55 -0700 |
|---|---|---|
| committer | Dmitry Torokhov <dmitry.torokhov@gmail.com> | 2026-10-09 12:10:30 -0700 |
| commit | 892fd791e7b7af74716fb724d74f70328db4b7b7 (patch) | |
| tree | 823ad8afac5348a125237c1c5d26d996b00bf9ea /drivers/input | |
| parent | 4653515dcb566d9140ab83bce54899e3323e2d83 (diff) | |
Input: wm831x-on - drop redundant wm831x_on->dev->dev.parent assignment
devm_input_allocate_device() already initializes
wm831x_on->dev->dev.parent to the supplied parent device, so the
explicit assignment in wm831x_on_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/misc/wm831x-on.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/drivers/input/misc/wm831x-on.c b/drivers/input/misc/wm831x-on.c index 18eb319bc6f7..a885873bcbd8 100644 --- a/drivers/input/misc/wm831x-on.c +++ b/drivers/input/misc/wm831x-on.c @@ -96,7 +96,6 @@ static int wm831x_on_probe(struct platform_device *pdev) wm831x_on->dev->keybit[BIT_WORD(KEY_POWER)] = BIT_MASK(KEY_POWER); wm831x_on->dev->name = "wm831x_on"; wm831x_on->dev->phys = "wm831x_on/input0"; - wm831x_on->dev->dev.parent = &pdev->dev; ret = request_threaded_irq(irq, NULL, wm831x_on_irq, IRQF_TRIGGER_RISING | IRQF_ONESHOT, |
