Message ID | PH0P220MB0460B69CA018F5515F5FACDDDD53A@PH0P220MB0460.NAMP220.PROD.OUTLOOK.COM |
---|---|
State | Accepted |
Commit | 0859c1764c77dd61adf46e3d0c440145118d9e0e |
Headers | show
Return-Path: <linux-input-owner@vger.kernel.org> X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 064B0C7EE29 for <linux-input@archiver.kernel.org>; Wed, 7 Jun 2023 09:12:59 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S238188AbjFGJM6 (ORCPT <rfc822;linux-input@archiver.kernel.org>); Wed, 7 Jun 2023 05:12:58 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38080 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S238259AbjFGJMb (ORCPT <rfc822;linux-input@vger.kernel.org>); Wed, 7 Jun 2023 05:12:31 -0400 Received: from NAM10-MW2-obe.outbound.protection.outlook.com (mail-mw2nam10olkn2101.outbound.protection.outlook.com [40.92.42.101]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 378962689 for <linux-input@vger.kernel.org>; Wed, 7 Jun 2023 02:11:24 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=ehk8iL4T8SJrWp8OLa2YJVxeY6Uk65DE/777R2rWj0guD4luH9iGmJ0S2sJGJFYOubG93RLInJuM9lc/wpQIoktpOQ5w+NKOdCGHq/luWI3yBvycgTletB4t2GLXXwVB6MAplKFTWihwcqjYunEPqCxxfwCV0A/slHEwhzGfVDOnDVJ/3rU0RXuqRSMhYMO4glDC+yk/oC2t8RGNbl9kBCizxgJJm3f/EJ2/TSYieeBedscvV1DywXxhUDq60WRAB3HcxSaooi7i/ubDcmL4MkA4xgaYUrXiQvuAIVMo7fydqZdrPi2q8KQniV+VGWYfpIOzXUpGOPAG3f6u734i3w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=sq2gIv1pZ8ez6e7MERrPIulwBng+HrvKRQvao9dTiN0=; b=Hpba2lBFOhy6opvEuDn9KbxwcB5SHRObX6ZhXjMxYUZaP+Dx4hIwkiSc6DGOek5jTArUXEvYsnQVGKAaXKw4oQ9PqaSkXv/0xXvw3lozphBqJPWzG2MrRVt6OGTlQrugBKI0iX/NQDODVrNy9Tjmm8Tiipb3wQ8xqq3SvDlxj5Ev9QX2eJW+oftZcA/IPichUnTquFSC/7Jolt7wdFUpgWMoQcX2mfsFFMPnipjZiU+V77QnerBQeKe8RQwhcdAQPx/DNwp3K2JYmtrCVtq8PL3QWKb/ztvi/CkeeYis4gGeh1hy+653KhKiG1IW/K1usCPArs7ARYWL6Jb2fMb8Yw== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=none; dmarc=none; dkim=none; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=outlook.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=sq2gIv1pZ8ez6e7MERrPIulwBng+HrvKRQvao9dTiN0=; b=SGDBNsRXJl27V0gS1F85fPb7LWc4t/ap8KZSZNDCgs3R9aXvkUAHzYunUg+dAD4qOJFwFB0r9wsiqI+H28Tql2zQg5mW7sfF32Q32IaEVG5q+3Vr07goAfZg6uVMiBlLeYTAxAzd3qjPuwdYvz7uXJIei2tMujreXKGm5IilXbumC8eaqaTcggttI5+2NRapnefhROdp2th7O0t+JNOy2M+asfznIgTEAM4KkkPYpr2wI7P5FmaeOvWZ2OYkVc3orPESMkQZ4R8Z+Po6BbGAsux1Fg9pO+g6UMu4tjU5QBnahz7kVy5x+1feXPN6FcxG776gWEpRRrgiRyEJDLz5vA== Received: from PH0P220MB0460.NAMP220.PROD.OUTLOOK.COM (2603:10b6:510:e8::5) by SN4P220MB0791.NAMP220.PROD.OUTLOOK.COM (2603:10b6:806:212::8) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6455.32; Wed, 7 Jun 2023 09:11:21 +0000 Received: from PH0P220MB0460.NAMP220.PROD.OUTLOOK.COM ([fe80::1780:aecc:39ef:3be3]) by PH0P220MB0460.NAMP220.PROD.OUTLOOK.COM ([fe80::1780:aecc:39ef:3be3%3]) with mapi id 15.20.6455.030; Wed, 7 Jun 2023 09:11:21 +0000 From: Roi L <roeilev321_@outlook.com> To: dmitry.torokhov@gmail.com Cc: linux-input@vger.kernel.org, Roi L <roeilev321_@outlook.com> Subject: [PATCH] Input: rotary_encoder - don't double assign input->dev.parent Date: Wed, 7 Jun 2023 12:10:40 +0300 Message-ID: <PH0P220MB0460B69CA018F5515F5FACDDDD53A@PH0P220MB0460.NAMP220.PROD.OUTLOOK.COM> X-Mailer: git-send-email 2.39.2 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-TMN: [tfJfVKz+hESwnJBIWLNj4wz5RRMGNn824nrUCwXkvKk=] X-ClientProxiedBy: VI1P194CA0028.EURP194.PROD.OUTLOOK.COM (2603:10a6:803:3c::17) To PH0P220MB0460.NAMP220.PROD.OUTLOOK.COM (2603:10b6:510:e8::5) X-Microsoft-Original-Message-ID: <20230607091040.20433-1-roeilev321_@outlook.com> MIME-Version: 1.0 X-MS-Exchange-MessageSentRepresentingType: 1 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: PH0P220MB0460:EE_|SN4P220MB0791:EE_ X-MS-Office365-Filtering-Correlation-Id: 2ca76913-0625-4dcb-a08d-08db673728f7 X-MS-Exchange-SLBlob-Mail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kOKCCHxw2dj+UblthsGwDHYkNxrjT6EBs/gP2qq9Egt4X1TlhqATlaYRaarT7shGXGuliQXhve2XTrH9rvIBca1pO6wWpZTND6WeClYBiGHpCubFlr2aghv7eB9g7QK+6JXPPOqIkCc/5GJLkJclOXfWhOM33u7bYe7tCvQ7FGqoP1gxPw07i9OMRbYD+TvtqsBYZWDTsgBhvWD9rFb32asAHoeiqpfp2395dPJeJQ3a21xNJJLYZfkZKuacb/lefxJzG1AwEZkqvy5SMzdoG+rkfUnfHhZS0XT0QzPoXLK4tOaRS1JrQBz0oSkt5KuqYwYcGpTBarcP9dQ6YkFvAybPCbuPRo/2m489D93amqgfOI2bJ9HUDag8weosdgc4pz1XpV+Gio/YL01adfge0nsJ8q269pu+r0NMJ0ozPcruQ3lcUFsNY3X/cKUpnLRtzGEK1gEe0WZ560k7CNHn33YV5pO+IrB8IFC5qwX/nzsDbcmtonJOYVIs78IlOB2z10QPGijCondmWx25/tU07XcC1mVzmAEMJXanc53SsiODw+/7w4L7uoOBkxavIoO13mP0z01EN+6EL1SWjyiBHmYQEBo9MCevOBxokXyMDddh4ZE= X-OriginatorOrg: outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: 2ca76913-0625-4dcb-a08d-08db673728f7 X-MS-Exchange-CrossTenant-AuthSource: PH0P220MB0460.NAMP220.PROD.OUTLOOK.COM X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 07 Jun 2023 09:11:21.8001 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 84df9e7f-e9f6-40af-b435-aaaaaaaaaaaa X-MS-Exchange-CrossTenant-RMS-PersistedConsumerOrg: 00000000-0000-0000-0000-000000000000 X-MS-Exchange-Transport-CrossTenantHeadersStamped: SN4P220MB0791 Precedence: bulk List-ID: <linux-input.vger.kernel.org> X-Mailing-List: linux-input@vger.kernel.org |
Series |
Input: rotary_encoder - don't double assign input->dev.parent
|
expand
|
On Wed, Jun 07, 2023 at 12:10:40PM +0300, Roi L wrote: > 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> Applied, thank you.
diff --git a/drivers/input/misc/rotary_encoder.c b/drivers/input/misc/rotary_encoder.c index 22ec62083065..5c11cbe30167 100644 --- a/drivers/input/misc/rotary_encoder.c +++ b/drivers/input/misc/rotary_encoder.c @@ -255,7 +255,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);
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> --- drivers/input/misc/rotary_encoder.c | 1 - 1 file changed, 1 deletion(-)