diff options
author | Dmitry Torokhov <dmitry.torokhov@gmail.com> | 2023-12-21 04:09:45 +0100 |
---|---|---|
committer | Dmitry Torokhov <dmitry.torokhov@gmail.com> | 2024-01-04 21:02:20 +0100 |
commit | 0c64117d112b35dc3ba2020108ec26f538b95ae6 (patch) | |
tree | 85097b33676b32a3dd215bfb766edd86905fead2 /drivers/input | |
parent | Input: da9063_onkey - avoid using OF-specific APIs (diff) | |
download | linux-0c64117d112b35dc3ba2020108ec26f538b95ae6.tar.xz linux-0c64117d112b35dc3ba2020108ec26f538b95ae6.zip |
Input: da9063_onkey - avoid explicitly setting input's parent
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>
Diffstat (limited to 'drivers/input')
-rw-r--r-- | drivers/input/misc/da9063_onkey.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/drivers/input/misc/da9063_onkey.c b/drivers/input/misc/da9063_onkey.c index ce499c28a7b2..c338765e0ecd 100644 --- a/drivers/input/misc/da9063_onkey.c +++ b/drivers/input/misc/da9063_onkey.c @@ -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); |