Received: by 2002:a05:6358:701b:b0:131:369:b2a3 with SMTP id 27csp4478705rwo; Tue, 25 Jul 2023 06:46:45 -0700 (PDT) X-Google-Smtp-Source: APBJJlFF6HjyUjb23qdYvZrsuTHbsXQh5qhB7vc1K0WnFApYDv/vuHyLwh91NmqgbRT46RWyh53Z X-Received: by 2002:aa7:c145:0:b0:522:57f3:fb40 with SMTP id r5-20020aa7c145000000b0052257f3fb40mr339608edp.18.1690292805426; Tue, 25 Jul 2023 06:46:45 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1690292805; cv=none; d=google.com; s=arc-20160816; b=eo1Z5oPSG4xFMvhECh76Zpw2yUkdv+NZdkLfTGQV6kWarDDLxuAKB6dpj464GIpSGa RUO3yMNq3AiUISHJi6J/FMaBG2XvE7vW+JwYKpl63LWD/fIrfDdK5wKGEt0Ykk/IHke+ qU4QdnRDDgfPeU4jJARrDX7guH9vEo7pR1WMS1mdTpUjej5tAubv5nCJ6jpG/TdhlDT9 INVe/GqZElYAYd+jm6R2bWUEuuzduUYeUCDX/wY1SOPwEhnZ/yYhrUUxUwLCg2nbebv2 vea7UrW78XULb/CAK1vLacLZVZPpiGQSgKmf5FTUjiSvNV67/ziZerlfWLNUs8NWP3P2 tQTg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:organization:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date; bh=763j7V/00Nxjo+RTtI4xDX/AjPQ4mlcsjWOYTOBfaN8=; fh=/JbGmtg652fn1gR/kQF8WF2ust+cIk6v9zMc62pNeII=; b=T1YZ+nVZYdiNWIfYQ6pzBkP/w3K9oT0ASUbsB/5QVAW4F4RjkbsghqvCZh0tQzCVIG Doo9WW/zw0aShLGtEngWYej7NGoYYvHWV+Pq34m6vVO4ZLqsdJ8MThWTQNn7zVspTPPS eLPWxdQumGXpG187PkWVEKtFIvpLogiuczBQYqli14IUOrdoQa1WQ5EzVHeFZdWM1Zpv 1A4QxG45PSyPMCimYaD10f0RXKcqcxZinYqufyada+K8R8Wmin5ZUhe0V2984hTnIkLp JdsDZDHLrGJ8161B8GiKZsuGojeGcFEoyD0d3ed8SuQEGxMm80P0BYxxe9ZW2mx++TxI zUMw== ARC-Authentication-Results: i=1; mx.google.com; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id h5-20020aa7de05000000b005221e49d550si4628502edv.679.2023.07.25.06.46.19; Tue, 25 Jul 2023 06:46:45 -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; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230253AbjGYNZ4 (ORCPT + 99 others); Tue, 25 Jul 2023 09:25:56 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55728 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229788AbjGYNZy (ORCPT ); Tue, 25 Jul 2023 09:25:54 -0400 Received: from mga01.intel.com (mga01.intel.com [192.55.52.88]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1559419AF; Tue, 25 Jul 2023 06:25:44 -0700 (PDT) X-IronPort-AV: E=McAfee;i="6600,9927,10782"; a="398633744" X-IronPort-AV: E=Sophos;i="6.01,230,1684825200"; d="scan'208";a="398633744" Received: from fmsmga002.fm.intel.com ([10.253.24.26]) by fmsmga101.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 25 Jul 2023 06:25:43 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10782"; a="839864648" X-IronPort-AV: E=Sophos;i="6.01,230,1684825200"; d="scan'208";a="839864648" Received: from smile.fi.intel.com ([10.237.72.54]) by fmsmga002.fm.intel.com with ESMTP; 25 Jul 2023 06:25:41 -0700 Received: from andy by smile.fi.intel.com with local (Exim 4.96) (envelope-from ) id 1qOI2l-00BM3E-1h; Tue, 25 Jul 2023 16:25:39 +0300 Date: Tue, 25 Jul 2023 16:25:39 +0300 From: Andy Shevchenko To: Andrei Coardos Cc: linux-mediatek@lists.infradead.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, linux-gpio@vger.kernel.org, angelogioacchino.delregno@collabora.com, matthias.bgg@gmail.com, brgl@bgdev.pl, linus.walleij@linaro.org, Alexandru Ardelean Subject: Re: [PATCH] gpio: mt7621: remove unnecessary call to platfrom_set_drvdata() Message-ID: References: <20230721130838.26616-1-aboutphysycs@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Organization: Intel Finland Oy - BIC 0357606-4 - Westendinkatu 7, 02160 Espoo X-Spam-Status: No, score=-3.5 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_MED, RCVD_IN_MSPIKE_H3,RCVD_IN_MSPIKE_WL,SPF_HELO_NONE,SPF_SOFTFAIL, 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 Fri, Jul 21, 2023 at 06:10:32PM +0300, Andy Shevchenko wrote: > On Fri, Jul 21, 2023 at 04:08:38PM +0300, 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. Not true. > > Also, the private data is defined in this driver, so there is no risk of > > it being accessed outside of this driver file. > > Reviewed-by: Andy Shevchenko I have to withdraw this, the patch is wrong. NAK. Sorry for the confusion (I have looked for the wrong pattern). -- With Best Regards, Andy Shevchenko