diff options
author | Roi L <roeilev321_@outlook.com> | 2023-07-12 14:09:06 -0700 |
---|---|---|
committer | Dmitry Torokhov <dmitry.torokhov@gmail.com> | 2023-07-12 14:10:32 -0700 |
commit | 0859c1764c77dd61adf46e3d0c440145118d9e0e (patch) | |
tree | 232dee92f0ca31bea22dfa531d3a73e9725ee3d8 | |
parent | 0b64150c34290df5bf962b3b7e45389b0acb03ae (diff) | |
download | linux-0859c1764c77dd61adf46e3d0c440145118d9e0e.tar.gz linux-0859c1764c77dd61adf46e3d0c440145118d9e0e.tar.bz2 linux-0859c1764c77dd61adf46e3d0c440145118d9e0e.zip |
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>
-rw-r--r-- | drivers/input/misc/rotary_encoder.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/drivers/input/misc/rotary_encoder.c b/drivers/input/misc/rotary_encoder.c index fb3a34f8eccd..e94cab8133be 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); |