Received: by 2002:a05:6358:51dd:b0:131:369:b2a3 with SMTP id 29csp949982rwl; Thu, 10 Aug 2023 04:23:06 -0700 (PDT) X-Google-Smtp-Source: AGHT+IFxK5UiFWcn8LJLqIz4nVKlHTs8v3Trlt1/OeJVsYmQ55fSDu25NjhI96TbVYZWLFtmpyKr X-Received: by 2002:a05:6358:9041:b0:139:d277:354d with SMTP id f1-20020a056358904100b00139d277354dmr2989621rwf.22.1691666585876; Thu, 10 Aug 2023 04:23:05 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1691666585; cv=none; d=google.com; s=arc-20160816; b=Eyc3Uc6OWAuZ2XnAyx7HKHUZugnVHYwguCtmKyAHK2cus5lk7Yih7wHB0Tt8Z3cEgU K6StVVmGB8ROPSdZQlx2Q/z23eJd7iSLvuYLokTDqP5DL6h9CyBCCFNEXXuaKfOBTK49 kwz/hC3N9QMKtSuLR8B9W/N1c+i8KNnrU1TKw59QXjlbyOdPeGvAwk4hpcP1zAzrVJo+ dPsphcELqwq1TNwU3FtKX2YPLB50anNdxD0Zq4vWIt3g5zwZw4isuduG+h79g04VUcIh nrMkPIl4pjfLLp6fT2IkNOmni/WSnUxgT4k3cuwM0kmupeL/fasc48wrhp7TG4dSqmRy KgAQ== 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=HtfGuHBqzKgvRO7nkOwGjCqGwEnROHkA84/MSSd9jWc=; fh=zU6tbXPZHO7qu1pivnSBZZ2RdmERGKFu0t0+o3eTY9M=; b=d95hrtTLf2eqR76sAGZlNz0mxTRr6Q7aHmpjVZgwzZHWDvZDrtTWBWsM1+PLy0sgIC sbbJXrYdvgEWqqlWO71WnGKZRh2zPHNq3r5WR7ejgaPlTiJQhxVvngC3R5qlmZRmV5gw QsscgxID9qUi1ug7vX/RLIcmMsKLUlo/ig+xqp5qCcB7m6vBJJVbXVGqhTdHw0yByDY6 VeK/eKWyaqkL1PDdxGp+Shvz5odo+9oX6h+j0F/F2w0ng+TWvXi7z+fJM+N5IkSpms3N CSACUCBxfaAVgS10T7Zd4NA1a+Sp0HruMF+n+5D0QpICHqv2Z2ghvrrd7OHtHwZifTg0 t/2A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@shruggie-ro.20221208.gappssmtp.com header.s=20221208 header.b=sk2Owjgc; 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 b16-20020a639310000000b0055387ef9633si1332970pge.804.2023.08.10.04.22.53; Thu, 10 Aug 2023 04:23:05 -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=sk2Owjgc; 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 S234551AbjHJK2L (ORCPT + 99 others); Thu, 10 Aug 2023 06:28:11 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39864 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230419AbjHJK2J (ORCPT ); Thu, 10 Aug 2023 06:28:09 -0400 Received: from mail-lf1-x12b.google.com (mail-lf1-x12b.google.com [IPv6:2a00:1450:4864:20::12b]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6A5EC83 for ; Thu, 10 Aug 2023 03:28:07 -0700 (PDT) Received: by mail-lf1-x12b.google.com with SMTP id 2adb3069b0e04-4fe3b86cec1so1046122e87.2 for ; Thu, 10 Aug 2023 03:28:07 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=shruggie-ro.20221208.gappssmtp.com; s=20221208; t=1691663285; x=1692268085; 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=HtfGuHBqzKgvRO7nkOwGjCqGwEnROHkA84/MSSd9jWc=; b=sk2OwjgcUA+4BWuh4y1YrKFPJwAaZozAevMa6GxprwQ4cJnZmGjKDQh3Zoy8HolCo0 3vB4QXTX9aEFrFylOQY9Pwj7s7W/TfLTdlasfb52/mMDPdKIjmunQeEc09xV/7Ky441h Vwg5orOAC3wt7G8PskZvJbHWp1nYBK+4kzXsM+Ay1Yx0GT7y3nK7923aYuYLe+1Z2cXk ly0y9e1Az181TMVBEVNhY1aT6oew+w7v5x9bhlHSmL01ACe59WFwGhwnuHNJ5AQwMps9 /2ez161fooc3OP2lYxrrjYxo8uFJS8SjpgDZuxcMxJ8ZS2gWDB7oHz2LLoLp8ztCP2Ay KyYw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1691663285; x=1692268085; 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=HtfGuHBqzKgvRO7nkOwGjCqGwEnROHkA84/MSSd9jWc=; b=WMDArxRFdka/Qf9zc5DNXn2l8fAGKNV07w5Ursqe9iQOFCkWln3GOqn8xWi+9zjlR5 9g7zVtK/KWladwm01psQ0s0BWRSjoqtx/MLyrGSv77vEWEpzouyQwuIXW9OnmlcsGt9q KFhVw+s7djvetn5lVm6mJswJM+Q6fCN2tRz4i0tjnfJiMrw3XS8jVBOpQ6TCVlzV+gWz BFJ6Hk/oWNu+POkTmhiUNNE4ormaqZ8LH3uWJlUiY7KiZm7fvNKopcljd53GpOtNYBd8 P0BDbGNhl31JGv4lpplHoKDtfDu15ec90DHA3+jhr2GDGWrxhbAP8im+2RE9POB3k7RO sKVg== X-Gm-Message-State: AOJu0Yxq5s9e0OpcjIbRBabNPYF7xjIYZGKY7lJddpEYjaq32nRwG1bv z74q4n7NccWwqPmh5MSbZP9fWJmvUsEi6r8o35ba9A== X-Received: by 2002:ac2:57c7:0:b0:4fb:7559:aea3 with SMTP id k7-20020ac257c7000000b004fb7559aea3mr1320229lfo.39.1691663285426; Thu, 10 Aug 2023 03:28:05 -0700 (PDT) MIME-Version: 1.0 References: <20230809154813.16033-1-aboutphysycs@gmail.com> In-Reply-To: <20230809154813.16033-1-aboutphysycs@gmail.com> From: Alexandru Ardelean Date: Thu, 10 Aug 2023 13:27:54 +0300 Message-ID: Subject: Re: [PATCH] thermal: broadcom: brcstb_thermal: removed unneeded platform_set_drvdata() To: Andrei Coardos Cc: linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-pm@vger.kernel.org, florian.fainelli@broadcom.com, rui.zhang@intel.com, amitk@kernel.org, daniel.lezcano@linaro.org, rafael@kernel.org, bcm-kernel-feedback-list@broadcom.com, mmayer@broadcom.com 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_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 Wed, Aug 9, 2023 at 6:48=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/broadcom/brcmstb_thermal.c | 1 - > 1 file changed, 1 deletion(-) > > diff --git a/drivers/thermal/broadcom/brcmstb_thermal.c b/drivers/thermal= /broadcom/brcmstb_thermal.c > index 72d1dbe60b8f..2997c589ac7d 100644 > --- a/drivers/thermal/broadcom/brcmstb_thermal.c > +++ b/drivers/thermal/broadcom/brcmstb_thermal.c > @@ -334,7 +334,6 @@ static int brcmstb_thermal_probe(struct platform_devi= ce *pdev) > return PTR_ERR(priv->tmon_base); > > priv->dev =3D &pdev->dev; > - platform_set_drvdata(pdev, priv); > of_ops =3D priv->temp_params->of_ops; > > thermal =3D devm_thermal_of_zone_register(&pdev->dev, 0, priv, > -- > 2.34.1 >