Input: tps65218-pwrbutton - drop redundant idev->dev.parent assignment

devm_input_allocate_device() already initializes idev->dev.parent to the
supplied parent device, so the explicit assignment in
tps6521x_pb_probe() is redundant. Remove it.

Assisted-by: LLM
Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
This commit is contained in:
Dmitry Torokhov 2026-10-07 23:19:54 -07:00
parent 01278816a1
commit 0e9c121b32

View File

@ -105,7 +105,6 @@ static int tps6521x_pb_probe(struct platform_device *pdev)
snprintf(pwr->phys, sizeof(pwr->phys), "%s/input0",
pwr->data->name);
idev->phys = pwr->phys;
idev->dev.parent = dev;
idev->id.bustype = BUS_I2C;
input_set_capability(idev, EV_KEY, KEY_POWER);