mirror of
https://github.com/torvalds/linux.git
synced 2026-11-07 06:17:02 +01:00
Input: wm831x-ts - drop redundant input_dev->dev.parent assignment
devm_input_allocate_device() already initializes input_dev->dev.parent to the supplied parent device, so the explicit assignment in wm831x_ts_probe() is redundant. Remove it. Assisted-by: LLM Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
This commit is contained in:
parent
f49a843965
commit
24edf39189
|
|
@ -356,7 +356,6 @@ static int wm831x_ts_probe(struct platform_device *pdev)
|
|||
input_set_abs_params(input_dev, ABS_PRESSURE, 0, 4095, 5, 0);
|
||||
|
||||
input_set_drvdata(input_dev, wm831x_ts);
|
||||
input_dev->dev.parent = &pdev->dev;
|
||||
|
||||
error = input_register_device(input_dev);
|
||||
if (error)
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user