From patchwork Mon Aug 19 04:57:59 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Dmitry Torokhov X-Patchwork-Id: 13767883 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 818C1C3DA4A for ; Mon, 19 Aug 2024 05:00:43 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:List-Subscribe:List-Help :List-Post:List-Archive:List-Unsubscribe:List-Id:Content-Transfer-Encoding: MIME-Version:References:In-Reply-To:Message-ID:Date:Subject:Cc:To:From: Reply-To:Content-Type:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=2/Y0JUcD5C4Iagug6Oy1owYtKAXHbmgAHcwaCUa/T4M=; b=cByvJ3Abtbwtqtd2dz4AGCiYh5 4VQ7yQ3a65pizVfOEG9TF3gbBPD37HKMealRidikcrju2EG0grJF4VBkMiKCbaVhl2d2q/Ytgjl+x IBpcM+9jH0KKZcYvbbxdyKf0QY13gvmkMLEIGFVH91RwQ6AOcrboo3jDNyQf9BR6h/1UmS7i8gSEX k5vYPJdrlnMFZpkLq1V1cFnQFm1P0hC/pstj/HQCwHNxMuPzuFAoAVZhyXbLPPsGK1Ty+AUthTa2I dJGTz21D6RGXX7EDFUBe9Rkq/0QWp125XJIW5Sp9/ViuQd7pLV+BcATU+zP7ID4uRN8XKVR+tgkJ6 BZY0/Beg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1sfuVI-00000000M5Q-1Lcf; Mon, 19 Aug 2024 05:00:28 +0000 Received: from mail-pl1-x62f.google.com ([2607:f8b0:4864:20::62f]) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1sfuTN-00000000LWC-10X1 for linux-arm-kernel@lists.infradead.org; Mon, 19 Aug 2024 04:58:30 +0000 Received: by mail-pl1-x62f.google.com with SMTP id d9443c01a7336-2020b730049so16806215ad.3 for ; Sun, 18 Aug 2024 21:58:28 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1724043508; x=1724648308; darn=lists.infradead.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=2/Y0JUcD5C4Iagug6Oy1owYtKAXHbmgAHcwaCUa/T4M=; b=QquKi3Uvb/E03UdDT0DbCwe9QLInNWueIGYARmmg3BMnElrzIouJYYFb9tCkAUsnpg Dkcg3rywpTOeWRgMO9pQZwiNacridhUQj6JYnX3bb4awaWIzxd02YU3eRlXptB2PcePK KyuOZQIDiU1U73t3XuCnUutMQeUcIoffJAsFCMolxYK/ENshaDqKrZq12lb5mlTXwwpk Nd6d4/rS1gDyVBJiITnFT24wTHyahnCPQGu2ap2VyQY3GxJalUxy7GW8fWBX5/BfTyEw thDdKUdLPn8VecJAHTmEaFI22CfO7f0F5Q5Iv6FyGrXpvGO5zO/NA7cLfm98d2cW2l1/ woxw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1724043508; x=1724648308; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=2/Y0JUcD5C4Iagug6Oy1owYtKAXHbmgAHcwaCUa/T4M=; b=V5YO5r9+KmzdBRBkfKuhApxeS8DmzNuENfriOben3TsOr4I+eM5dcamOUXIStiUPdf 9Q78Q/ppWnkQIpGbyUSyPBd0smUvUFvKFlW2GyaKt3WieEXl4D5n7uuAdjZI6k6Xqgzm uOmDX3355FVKVEioEjRNT9bpW8j68WBvmSdIhFQ+Kg22NbSCcb/mXM8zokHd+/7pTksQ 0F846KLbhMel9ktA3Ka24pio01ivwGzuveKTi6K1lf6NhngGuxpP1WOI1ZCnnxVNhgqV UIFMFP8wHY7aW86joxcuN3rN5jVB72BTWxhigqJdd+RNTXUdbinb7aMTNu5KOoBw/djx sM2w== X-Forwarded-Encrypted: i=1; AJvYcCWa9XUWkxBRWJWytoktUR55eKE89h4IIPQ0m/+/zdCPCXrhfjyf/5jWhhP/W9q2l8Poln0aJ/hZrFgrHR179RLspPi3qg7WccYvstJKQuKYbz0wspk= X-Gm-Message-State: AOJu0YzV0qCg9nWMz6Pv3BPQCsD5Y4lL++Up4xWILj0B6CxJ/hltzzFy xXVLjpClmFZvzpsg4T/zE2CQN+KzgFd3mxacB8GV32Ejq5qdlHxD X-Google-Smtp-Source: AGHT+IF1FebuvREI1PKd696ezenX7q5OEaQirUD2qmXuoFQq8cvKEdSNbcfFQPZuyxucVQtm6Vli6w== X-Received: by 2002:a17:902:d2c3:b0:202:1984:d507 with SMTP id d9443c01a7336-2021984d79emr48288425ad.30.1724043507950; Sun, 18 Aug 2024 21:58:27 -0700 (PDT) Received: from dtor-ws.sjc.corp.google.com ([2620:15c:9d:2:4eb5:4500:6efc:6c24]) by smtp.gmail.com with ESMTPSA id d9443c01a7336-202068497b4sm43483445ad.269.2024.08.18.21.58.26 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 18 Aug 2024 21:58:27 -0700 (PDT) From: Dmitry Torokhov To: Arnd Bergmann , Mark Brown , Krzysztof Kozlowski Cc: linux-input@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-samsung-soc@vger.kernel.org, patches@opensource.cirrus.com Subject: [PATCH 02/14] Input: samsung-keypad - do not set input device's parent explicitly Date: Sun, 18 Aug 2024 21:57:59 -0700 Message-ID: <20240819045813.2154642-3-dmitry.torokhov@gmail.com> X-Mailer: git-send-email 2.46.0.184.g6999bdac58-goog In-Reply-To: <20240819045813.2154642-1-dmitry.torokhov@gmail.com> References: <20240819045813.2154642-1-dmitry.torokhov@gmail.com> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240818_215829_303392_993B9EE6 X-CRM114-Status: GOOD ( 12.48 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org The driver uses devm_input_allocate_device() to allocate instances of input device, which sets the parent appropriately. Remove extraneous assignment. Signed-off-by: Dmitry Torokhov Reviewed-by: Krzysztof Kozlowski --- drivers/input/keyboard/samsung-keypad.c | 1 - 1 file changed, 1 deletion(-) diff --git a/drivers/input/keyboard/samsung-keypad.c b/drivers/input/keyboard/samsung-keypad.c index a5fac7de8b5d..46c0d0c900f6 100644 --- a/drivers/input/keyboard/samsung-keypad.c +++ b/drivers/input/keyboard/samsung-keypad.c @@ -383,7 +383,6 @@ static int samsung_keypad_probe(struct platform_device *pdev) input_dev->name = pdev->name; input_dev->id.bustype = BUS_HOST; - input_dev->dev.parent = &pdev->dev; input_dev->open = samsung_keypad_open; input_dev->close = samsung_keypad_close;