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 | 4653515dcb566d9140ab83bce54899e3323e2d83 (patch) | |
| tree | 689de0b342744cf69679f4abc517a25d934e72f5 /drivers/input | |
| parent | 0e9c121b32457cdaf9393785aa306eafb741250d (diff) | |
Input: twl4030-pwrbutton - drop redundant pwr->dev.parent assignment
devm_input_allocate_device() already initializes pwr->dev.parent to the
supplied parent device, so the explicit assignment in
twl4030_pwrbutton_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/twl4030-pwrbutton.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/drivers/input/misc/twl4030-pwrbutton.c b/drivers/input/misc/twl4030-pwrbutton.c index 3e94a5995766..949d57f32958 100644 --- a/drivers/input/misc/twl4030-pwrbutton.c +++ b/drivers/input/misc/twl4030-pwrbutton.c @@ -90,7 +90,6 @@ static int twl4030_pwrbutton_probe(struct platform_device *pdev) input_set_capability(pwr, EV_KEY, KEY_POWER); pwr->name = "twl4030_pwrbutton"; pwr->phys = "twl4030_pwrbutton/input0"; - pwr->dev.parent = &pdev->dev; err = devm_request_threaded_irq(&pdev->dev, irq, NULL, powerbutton_irq, IRQF_TRIGGER_FALLING | IRQF_TRIGGER_RISING | |
