Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

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>

-1
-1
drivers/input/misc/da9063_onkey.c
··· 211 211 snprintf(onkey->phys, sizeof(onkey->phys), "%s/input0", 212 212 onkey->config->name); 213 213 onkey->input->phys = onkey->phys; 214 - onkey->input->dev.parent = &pdev->dev; 215 214 216 215 input_set_capability(onkey->input, EV_KEY, KEY_POWER); 217 216