Skip to content

Commit 0859c17

Browse files
qodroidtor
authored andcommitted
Input: rotary_encoder - don't double assign input->dev.parent
devm_input_allocate_device() already assigns the @dev.parent field of the input device/structure, so there's no need to reassign input->dev.parent to dev. Signed-off-by: Roi L <roeilev321_@outlook.com> Link: https://lore.kernel.org/r/PH0P220MB0460B69CA018F5515F5FACDDDD53A@PH0P220MB0460.NAMP220.PROD.OUTLOOK.COM Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
1 parent 0b64150 commit 0859c17

1 file changed

Lines changed: 0 additions & 1 deletion

File tree

drivers/input/misc/rotary_encoder.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -251,7 +251,6 @@ static int rotary_encoder_probe(struct platform_device *pdev)
251251

252252
input->name = pdev->name;
253253
input->id.bustype = BUS_HOST;
254-
input->dev.parent = dev;
255254

256255
if (encoder->relative_axis)
257256
input_set_capability(input, EV_REL, encoder->axis);

0 commit comments

Comments
 (0)