From 0859c1764c77dd61adf46e3d0c440145118d9e0e Mon Sep 17 00:00:00 2001 From: Roi L Date: Wed, 12 Jul 2023 14:09:06 -0700 Subject: [PATCH] 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 Link: https://lore.kernel.org/r/PH0P220MB0460B69CA018F5515F5FACDDDD53A@PH0P220MB0460.NAMP220.PROD.OUTLOOK.COM Signed-off-by: Dmitry Torokhov --- drivers/input/misc/rotary_encoder.c | 1 - 1 file changed, 1 deletion(-) diff --git a/drivers/input/misc/rotary_encoder.c b/drivers/input/misc/rotary_encoder.c index fb3a34f8eccd2..e94cab8133bec 100644 --- a/drivers/input/misc/rotary_encoder.c +++ b/drivers/input/misc/rotary_encoder.c @@ -251,7 +251,6 @@ static int rotary_encoder_probe(struct platform_device *pdev) input->name = pdev->name; input->id.bustype = BUS_HOST; - input->dev.parent = dev; if (encoder->relative_axis) input_set_capability(input, EV_REL, encoder->axis); -- 2.30.2