Received: by 2002:a05:6358:700f:b0:131:369:b2a3 with SMTP id 15csp2265045rwo; Thu, 3 Aug 2023 07:08:16 -0700 (PDT) X-Google-Smtp-Source: APBJJlGeHim7Q9b7MxmEuvRzteXVmnB2L/mxMnaWIkezxhEI8o8ydacRD24PdK+dUyDUoCf3laiN X-Received: by 2002:a05:6e02:180a:b0:346:6dc2:997b with SMTP id a10-20020a056e02180a00b003466dc2997bmr23954364ilv.23.1691071695743; Thu, 03 Aug 2023 07:08:15 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1691071695; cv=none; d=google.com; s=arc-20160816; b=JkhjzwoSiasPyCCp6mWxsMQgdo/phXANb2CqTIcZNJmYCFTsGZ3yCqJywi+3G7kNmR eJ0uzBQUKzVDfESXOSIr/lg+N0sTcQcCoQgfG3DBFy+11JlCDcR72LmV45a7fbgEnmvZ dE+f31Kz9jCvP/1UxMGXgFIe97eJOGLNn/uLaCGRBoJyP+dlJB90PJFS34swVXuOHDIq u3DAhLThl2uKoILICU+HuWfFOzdrSdM1dhMqoLXStQdvMXv+AFpBrSXtcDpo91EV2fh9 hqP8f1WfaO2M/sQBAbqrwq4pERG7kCMJuIn9M0PUWCW2d30R1YrcBHXY+ZEHV267D80h vD7w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version :dkim-signature; bh=2e3MydJCexgcJS41KDiNes4fzeZo2IkSmPU9z8uWo0U=; fh=3qHKA4BM5zfRngLz0iC2IOIaOgzeriF9aWdEZqM+rw4=; b=uKYDqhttdADuamBh5RJZu5bo7A2ImynsW5lzAtjXWI/cf3HmPACUHulHAEbtMKdE7A Ej+/92wln513aJGMgPsgVvV33H3FhQbielg0Vb8gcIWlOp8Vig+0RyOD5vwlnHStCf3p b0JghY07/UKYf/qYW6B6S7Tscn5RJlflzuOVQflCienau5SPmyPeYINQEdPr/tMTrsqe 3g2Q7nWVCPz5EOsZzwS/Z44Tq1yKTGdg2K/QCoAH+SwizpupWItpeNjPfaFQf4L0ss8g EALLBJKdULS5m/wFctlvpMR8RLSeXNz0S5+lBAIs3IOSmZgNpQT+bCLnph9xcoY1hJm2 Mx5w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@bgdev-pl.20221208.gappssmtp.com header.s=20221208 header.b=wuUmcMKE; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id w12-20020a17090aad4c00b002637aa0a4dbsi3189931pjv.103.2023.08.03.07.08.02; Thu, 03 Aug 2023 07:08:15 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@bgdev-pl.20221208.gappssmtp.com header.s=20221208 header.b=wuUmcMKE; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236282AbjHCNrJ (ORCPT + 99 others); Thu, 3 Aug 2023 09:47:09 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34122 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236301AbjHCNql (ORCPT ); Thu, 3 Aug 2023 09:46:41 -0400 Received: from mail-ua1-x933.google.com (mail-ua1-x933.google.com [IPv6:2607:f8b0:4864:20::933]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7FD261BF for ; Thu, 3 Aug 2023 06:45:21 -0700 (PDT) Received: by mail-ua1-x933.google.com with SMTP id a1e0cc1a2514c-79a2216a22fso337669241.0 for ; Thu, 03 Aug 2023 06:45:21 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bgdev-pl.20221208.gappssmtp.com; s=20221208; t=1691070320; x=1691675120; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=2e3MydJCexgcJS41KDiNes4fzeZo2IkSmPU9z8uWo0U=; b=wuUmcMKELHOCWF5N6YlhO2Bt61u4phS+WJCTBYLA6OGU58s3W2dSnzeLdz9j72P+cG JeCpsln7bOy448ebshmMdeuLl+3ygoLjQ2Te8Jdylwj5yXtGHqUPxMGBe97vSHkvgBWE oMqrqW7vyIITu52tohyg92kzzi290tOQyQdwUv3NH2UAfyPfzsYR1jxFMIo5U1La8RRR D9M58fW3amcWClSqWEkvtzqRZ4tRk7rcahRAdjtBPTdw9RjoDk5miVFN1FMB9BSDtnmo 6n3C74On9jW9M1SgGPqXEsdZ7+2+aPaQcFme1U1hjL8EwZx+3vrs+1roJAxcC0XT8bbu tJ2A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1691070320; x=1691675120; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=2e3MydJCexgcJS41KDiNes4fzeZo2IkSmPU9z8uWo0U=; b=Sb1CbzRLtXv6FQMER1H4mv1XuVIOsMwC2DSvKoudQZdbNWVKfZFjKbbbMU7OzOTEcg 5XSnQ4GgcqASdS/oyY92ZNzSKnI86xWtfU5kh15boKPBPCW1/I0syx94FdRieQy56nEr IRizTrhV+QK1/sl4Wu5h2rYdyNK8cwtYsS3VlS3AeIqT/QOxHsKPcEprMC15sstTXcYU 1I6kxm3sE8eQvZ4zCip27wsTPhU3CLRE+bcJ254K+6XnfjmaHRZxQfOXwVW3IjeznB24 P3k1fX1k3FhDuv5TWSZSFU97DlStdPX9K5y5kxII6lynkkaTwlGZdqvNW/uCSdvIKOha A4gw== X-Gm-Message-State: ABy/qLauAqYv+wjGQgcqAoYq9E5WiCExgGbHi3uM3R074SLsshOM+q6x ymz+ENELk9hPYsuEs9qxGUtL8JgqDTUTwqZVgasv8A== X-Received: by 2002:a67:e249:0:b0:43b:2fa9:eb3a with SMTP id w9-20020a67e249000000b0043b2fa9eb3amr6452901vse.9.1691070320620; Thu, 03 Aug 2023 06:45:20 -0700 (PDT) MIME-Version: 1.0 References: <20230801073044.4249-1-aboutphysycs@gmail.com> In-Reply-To: <20230801073044.4249-1-aboutphysycs@gmail.com> From: Bartosz Golaszewski Date: Thu, 3 Aug 2023 15:45:09 +0200 Message-ID: Subject: Re: [PATCH] gpio: syscon: remove unneeded call to platform_set_drvdata() To: Andrei Coardos Cc: linux-kernel@vger.kernel.org, linux-gpio@vger.kernel.org, andy@kernel.org, linus.walleij@linaro.org, Alexandru Ardelean Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_NONE, T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Aug 1, 2023 at 9:30=E2=80=AFAM Andrei Coardos wrote: > > This function call was found to be unnecessary as there is no equivalent > platform_get_drvdata() call to access the private data of the driver. Als= o, > the private data is defined in this driver, so there is no risk of it bei= ng > accessed outside of this driver file. > > Reviewed-by: Alexandru Ardelean > Signed-off-by: Andrei Coardos > --- > drivers/gpio/gpio-syscon.c | 2 -- > 1 file changed, 2 deletions(-) > > diff --git a/drivers/gpio/gpio-syscon.c b/drivers/gpio/gpio-syscon.c > index 6076937b18e7..afceb7e17ad8 100644 > --- a/drivers/gpio/gpio-syscon.c > +++ b/drivers/gpio/gpio-syscon.c > @@ -249,8 +249,6 @@ static int syscon_gpio_probe(struct platform_device *= pdev) > priv->chip.direction_output =3D syscon_gpio_dir_out; > } > > - platform_set_drvdata(pdev, priv); > - > return devm_gpiochip_add_data(&pdev->dev, &priv->chip, priv); > } > > -- > 2.34.1 > Applied, thanks! Bart