Input: da9063_onkey - avoid explicitly setting input's parent
authorDmitry Torokhov <dmitry.torokhov@gmail.com>
Thu, 21 Dec 2023 03:09:45 +0000 (19:09 -0800)
committerDmitry Torokhov <dmitry.torokhov@gmail.com>
Thu, 4 Jan 2024 20:02:20 +0000 (12:02 -0800)
devm_input_allocate_device() already sets parent of the new input
device, there's no need to set it up explicitly.

Reviewed-by: Biju Das <biju.das.jz@bp.renesas.com>
Link: https://lore.kernel.org/r/ZYOseYfVgg0Ve6Zl@google.com
Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
drivers/input/misc/da9063_onkey.c

index ce499c28a7b267a22d755844603312f48c96a383..c338765e0ecd032ab541ad70020cec84bea9c296 100644 (file)
@@ -211,7 +211,6 @@ static int da9063_onkey_probe(struct platform_device *pdev)
        snprintf(onkey->phys, sizeof(onkey->phys), "%s/input0",
                 onkey->config->name);
        onkey->input->phys = onkey->phys;
-       onkey->input->dev.parent = &pdev->dev;
 
        input_set_capability(onkey->input, EV_KEY, KEY_POWER);