Received: by 2002:a05:7412:6592:b0:d7:7d3a:4fe2 with SMTP id m18csp2195187rdg; Sun, 13 Aug 2023 13:45:43 -0700 (PDT) X-Google-Smtp-Source: AGHT+IHufYHxIUbQm5bcMMRjqVFzYmi3g63k+TvcYfQsnWqrYpos8idKfPwp43+UtfJaYyvmj1ND X-Received: by 2002:a17:906:30d7:b0:99c:4ea0:ed18 with SMTP id b23-20020a17090630d700b0099c4ea0ed18mr6385587ejb.8.1691959543030; Sun, 13 Aug 2023 13:45:43 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1691959543; cv=none; d=google.com; s=arc-20160816; b=poJtPiOviFUgoePaafSy+E7Cz5RBnZbfafI+e+TONB/9Po+Eomk0R41AOLZ0bE/qLb s4/1dpk2HPt9NOAZPFHwg1wjGzuBr0D/66YKYiSxMcp6HrkYekNJRGpnd7GmEYphCEpM bFZE/gn3tFY5yuwXHviZtdbfCcifdZbx9oS16Bc5wNN29HtGvFttG9uZezQy7P/TQ/o1 px56sU9SxeXBzfy+KZ2BjFDJTlqGDpFCF001EH00dtvRDWPOTAQAy7xomd5BvZaPXanp lbmTBIkzwvguXRcCrXKjxBy28uDRsvEcNovPVVte7hfjv4r028onAW9AbEhIqlYx0Txc m3Og== 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=O/QpMYkfVylryD6M2iD+mLrIio7qI2AYgvZNai1CJhk=; fh=s5I/+jDMDb2erKWGeHFMgebkClSCX1sztjYXT8tRvBc=; b=HMeLCOxrVT06HFGKPbYsFMG805MRmORcPj3dJvBRWvCZdIjDXP9swt8RZ5be2+w7FA xz6yjj2b3VMxq+K47Hx6ANfOiVuHYl+DVKp0A6eqTng7h2yzundSiPN0lpUekknkAw5+ ggP3LLZcjVkzlQSOdpgMgFXdoUnkCdvtOWQMyEeqyxmEYWxZG1dLQpNU/Es81l7ZbkBQ HSgZ337yxEFxUjwi7wJoAGUeNfQ0YawWs7SUVEtCsPGshaQzDMoehoF3V+7wFNqXkj6i Q0bSkeOy/CawSnV6JmyrVe6+kMbrIgvldtQ1xdwId2iygJmFmJNe3w9O2xRZPIM8XHtG JKBA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@shruggie-ro.20221208.gappssmtp.com header.s=20221208 header.b=soOd+1vS; 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 d26-20020a17090648da00b0099cada7c858si6768729ejt.177.2023.08.13.13.45.18; Sun, 13 Aug 2023 13:45:43 -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=@shruggie-ro.20221208.gappssmtp.com header.s=20221208 header.b=soOd+1vS; 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 S231352AbjHMTJd (ORCPT + 99 others); Sun, 13 Aug 2023 15:09:33 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54034 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229761AbjHMTJc (ORCPT ); Sun, 13 Aug 2023 15:09:32 -0400 Received: from mail-lf1-x12c.google.com (mail-lf1-x12c.google.com [IPv6:2a00:1450:4864:20::12c]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 14D071709 for ; Sun, 13 Aug 2023 12:09:33 -0700 (PDT) Received: by mail-lf1-x12c.google.com with SMTP id 2adb3069b0e04-4fe655796faso5748074e87.2 for ; Sun, 13 Aug 2023 12:09:32 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=shruggie-ro.20221208.gappssmtp.com; s=20221208; t=1691953771; x=1692558571; 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=O/QpMYkfVylryD6M2iD+mLrIio7qI2AYgvZNai1CJhk=; b=soOd+1vSrhK2mf/08qrspicdh90zc4DlbhYi/wPIXH6/6MoCB0kYnhIMcELA64rPSZ iDzaJnKDRzAvJcl2plGatNlfW5j7ecuZuV4ZDc2a8tO8dsxarEZYa/W8Fr4aTwlWnI+F idjkzpdkBYp4cMm1hBSJI8Pwg4GAmZnPLIcN+vVa0v1TwcTVPjXf0koweN72zf7vtrRJ gQjTIQj9CPzFUSXUlMLGlR2LQb9ktm9zgDEhOKQOxIwy6mLR4purJeJYQ8iaLgwSPiSN x8wyRsYOEHUopNOLPablk6b2ncpow9hG7S8OIy+Wrh4zXltRRTiXWxHsiNcdCA/UA99b hIFg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1691953771; x=1692558571; 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=O/QpMYkfVylryD6M2iD+mLrIio7qI2AYgvZNai1CJhk=; b=T3RykMRmta4e6QtfoGecLX0CBn2DcAHvVY9zLEk7v/X8Zv2ICdbPhVvpeHM1+QqQme QphjI854X8Y0yQHI3mO6ap2/Gfj6b4tuxCWcSMadmDo6nxrxZchu9t+avHMZrmqJkczA X8vQRTlYqmIYDYFQcs7fR4pzA8LPlwbEVrqvBR+ye8hjEq0wT+98l+gkCBk5vY050tlc EXqIt0JiJFGIG26DSzg9JUyOWBD3q3OYxVOlzAEkkxZIfOMDk4vJNn4cDPiLTgu3pdcl GbOgx/VjeiJsqdRwSVXzjAgb9GKUw9REsVeJqKjUJIt3kzzKSAht3kGpRW4RS4xyTOPM fh0Q== X-Gm-Message-State: AOJu0YxzdP+7SLnoi8GziSslWMwEKnpAFJT7LuOkBRlLi4t1HTFTDU2n 36RezUgUGzljYQZvNdj67lMpwUJVc1kcdXund92ilQ== X-Received: by 2002:a05:6512:1cf:b0:4fe:5680:db1f with SMTP id f15-20020a05651201cf00b004fe5680db1fmr4523365lfp.53.1691953771228; Sun, 13 Aug 2023 12:09:31 -0700 (PDT) MIME-Version: 1.0 References: <20230811192847.3838-1-aboutphysycs@gmail.com> In-Reply-To: <20230811192847.3838-1-aboutphysycs@gmail.com> From: Alexandru Ardelean Date: Sun, 13 Aug 2023 22:09:20 +0300 Message-ID: Subject: Re: [PATCH] thermal: mediatek: auxadc_thermal: removed call to platform_set_drvdata() To: Andrei Coardos Cc: linux-mediatek@lists.infradead.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, linux-pm@vger.kernel.org, rdunlap@infradead.org, void0red@hust.edu.cn, daniel@makrotopia.org, bchihi@baylibre.com, aouledameur@baylibre.com, angelogioacchino.delregno@collabora.com, matthias.bgg@gmail.com, rui.zhang@intel.com, amitk@kernel.org, daniel.lezcano@linaro.org, rafael@kernel.org 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_BLOCKED,SPF_HELO_NONE,SPF_PASS 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, Aug 11, 2023 at 10:28=E2=80=AFPM 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/thermal/mediatek/auxadc_thermal.c | 2 -- > 1 file changed, 2 deletions(-) > > diff --git a/drivers/thermal/mediatek/auxadc_thermal.c b/drivers/thermal/= mediatek/auxadc_thermal.c > index f59d36de20a0..99a1c35c68e7 100644 > --- a/drivers/thermal/mediatek/auxadc_thermal.c > +++ b/drivers/thermal/mediatek/auxadc_thermal.c > @@ -1283,8 +1283,6 @@ static int mtk_thermal_probe(struct platform_device= *pdev) > mtk_thermal_init_bank(mt, i, apmixed_phys_base, > auxadc_phys_base, ctrl_id); > > - platform_set_drvdata(pdev, mt); > - > tzdev =3D devm_thermal_of_zone_register(&pdev->dev, 0, mt, > &mtk_thermal_ops); > if (IS_ERR(tzdev)) > -- > 2.34.1 >