mirror of
https://github.com/torvalds/linux.git
synced 2026-11-07 06:17:02 +01:00
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:
parent
01278816a1
commit
0e9c121b32
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user