Received: by 2002:a05:7412:6592:b0:d7:7d3a:4fe2 with SMTP id m18csp809189rdg; Thu, 10 Aug 2023 23:33:40 -0700 (PDT) X-Google-Smtp-Source: AGHT+IEG9MbLlBQw1Qfs/sHEG9KPwNQwd1PEl0DRX9yX4rioPj4vbO2sx9q5cMyd4fUAlK0Q8G8Q X-Received: by 2002:a17:902:c950:b0:1b8:8682:62fb with SMTP id i16-20020a170902c95000b001b8868262fbmr6205885pla.4.1691735619644; Thu, 10 Aug 2023 23:33:39 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1691735619; cv=none; d=google.com; s=arc-20160816; b=xj2QycITwBafrHHWLehyw0STQdJQi/P3Lf8P2JFnu1BuJNCmeFhVJpc8hTfT5sCk2z UkkY76vZKQhstzHZVx0Vyb2pQQm+YgZKaaJ/n8bauPGvV+8DairuOLunlP+oW0S/SToi bB1pFZ/9KMpq5jLZhRnaVxbMacIV/xkyDlB5lmgHO7iRZforZNgVkYAy0gXFaQ9tqEIu smqirGPJSyNUW8A96Vs2gXGvp/MGyot11Ihi8Hl4TxcHmKDDmFWbBwxwM+mfPfKSUz+s tlZ/vlcgCn1Lts6AVASmronQdzSIzuLG+El3e/B64loUiiBF4OenAfTgxyTt4ljOJfLK md2A== 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=7ZtbOQJNFRCditQfcWrZUf7jKmGEPwgw/zJuB3OdcCc=; fh=YQdz5nP2ORkSFdwYZxXzb4+eZNRHSnpdJHhnLIcMrQQ=; b=NZ+JbQw8QatzV27XVcfqbvW1kFN4hP68vG8Z7XdEbB7IWgJV/zTS8VpIpwYcAzJsRC eoDyOVbUdyhKF8dlCWrbMOUeJvWOEDMb9mBl8al2udcl39MlsbcpbsctcP5+uzaFRC05 Jh/K94qDcNpWnAIID4W9yB/3Cmr7GeMYuULa8OGsm/DW4S5WI4Aa+VDK3B2oF17ZOim3 ESLMjG5NKVVV351WhYYs/zyXEhZl/U7agdXjQQaT6BKsur9H46GskaOq+DXw9wRO+W2C eSatajuJoxs7jSy5Tc3rkRy0yympNp9HnFYLTpdlfsYRHuki+fsLogag2Khk0hkPyuiw hsKg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@shruggie-ro.20221208.gappssmtp.com header.s=20221208 header.b=yWnINyuT; 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 l17-20020a170903245100b001b53dfb85c4si2986571pls.606.2023.08.10.23.33.26; Thu, 10 Aug 2023 23:33:39 -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=yWnINyuT; 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 S233293AbjHKF5n (ORCPT + 99 others); Fri, 11 Aug 2023 01:57:43 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59900 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233241AbjHKF5i (ORCPT ); Fri, 11 Aug 2023 01:57:38 -0400 Received: from mail-lf1-x12f.google.com (mail-lf1-x12f.google.com [IPv6:2a00:1450:4864:20::12f]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E156C2706 for ; Thu, 10 Aug 2023 22:57:36 -0700 (PDT) Received: by mail-lf1-x12f.google.com with SMTP id 2adb3069b0e04-4fe426521adso2477550e87.0 for ; Thu, 10 Aug 2023 22:57:36 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=shruggie-ro.20221208.gappssmtp.com; s=20221208; t=1691733455; x=1692338255; 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=7ZtbOQJNFRCditQfcWrZUf7jKmGEPwgw/zJuB3OdcCc=; b=yWnINyuTz2hXpLYg5kqupnOmbuzhoS8HHM+6QaK+90gjkQUv2lednFgmgb62Z8kNCd B0ksMfdsPF51vMmaqdybn1MPMmn2l7Ypahar1WKIZ+VKFrOOuz1VvcWgyHYZHZCpMSvV Q2vVEZG8wTKY1btG7hS8zWnWVCr/kor+jwkQf9L9w2ijMxqeq50XxNqG0rZwbeyyD9/1 zO8EjjKYIFQPmJsBZMQw9d0xo6vt5D6+GEsHolCLo4iiO+nFvrbi6WQVRsNAJl5Ks3oc 3pggMFcj06uwEI4pUAWr4zF+kCeDyF66ELOIsrVin6eAXlnfVsuZtgS3IvdHkQ+XW+aS HsRg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1691733455; x=1692338255; 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=7ZtbOQJNFRCditQfcWrZUf7jKmGEPwgw/zJuB3OdcCc=; b=Eiui6ClbqkOONzSMtfhEYQUgq/iUcqwiW3GRrKw69f3kXfc/0QwK1PqH3E+geu7ZeJ AvAQdEcrjl5M8GYUzHDi1a1whGr85f+wfu1Z7Si9dC79jtHq2T/FzNeawvL4XGyjxnkI G9qmU1u878ZFoaCj1D7fIz2lHUjYy9rUXvjr8dgcHCKnIOHihUoV1QbiY1YuyxmC+fTD oPU7tGJu9DhjM40jRkdBlOii3zULR4MJXw6QzLAYWYMqySlxYtj5xf+1w5FLx+HfU29p 8zdBZRBiZnd30q67oJ58EmdQgeIFfsRM2HhhrNYC06OKBCeGCGXNMgQp1gYAS7RrtEbI VLXQ== X-Gm-Message-State: AOJu0YxQAnLGB32X8hYjKhu9M5lrig1kK7WkkfThFhIhgz3PZ0/2Bu/m 6EVcYo+UfOESSwwBGNWfijYac4rw7dr7syuaUzTByw== X-Received: by 2002:a05:6512:33ca:b0:4fe:8e0:87f3 with SMTP id d10-20020a05651233ca00b004fe08e087f3mr546740lfg.41.1691733454961; Thu, 10 Aug 2023 22:57:34 -0700 (PDT) MIME-Version: 1.0 References: <20230810112015.3578-1-aboutphysycs@gmail.com> In-Reply-To: <20230810112015.3578-1-aboutphysycs@gmail.com> From: Alexandru Ardelean Date: Fri, 11 Aug 2023 08:57:24 +0300 Message-ID: Subject: Re: [PATCH] thermal: k3_j72xx_bandgap: removed unneeded call to platform_set_drvdata() To: Andrei Coardos Cc: linux-kernel@vger.kernel.org, linux-pm@vger.kernel.org, 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_NONE,SPF_HELO_NONE,SPF_PASS autolearn=unavailable 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 Thu, Aug 10, 2023 at 2:20=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/k3_j72xx_bandgap.c | 2 -- > 1 file changed, 2 deletions(-) > > diff --git a/drivers/thermal/k3_j72xx_bandgap.c b/drivers/thermal/k3_j72x= x_bandgap.c > index 5be1f09eeb2c..b91743dbd95a 100644 > --- a/drivers/thermal/k3_j72xx_bandgap.c > +++ b/drivers/thermal/k3_j72xx_bandgap.c > @@ -502,8 +502,6 @@ static int k3_j72xx_bandgap_probe(struct platform_dev= ice *pdev) > writel(K3_VTM_ANYMAXT_OUTRG_ALERT_EN, data[0].bgp->cfg2_base + > K3_VTM_MISC_CTRL_OFFSET); > > - platform_set_drvdata(pdev, bgp); > - > print_look_up_table(dev, ref_table); > /* > * Now that the derived_table has the appropriate look up values > -- > 2.34.1 >