public inbox for linux-pm@vger.kernel.org
 help / color / mirror / Atom feed
From: Lukasz Luba <lukasz.luba@arm.com>
To: Michael Walle <mwalle@kernel.org>
Cc: linux-pm@vger.kernel.org, linux-kernel@vger.kernel.org,
	"Rafael J . Wysocki" <rafael@kernel.org>,
	Zhang Rui <rui.zhang@intel.com>,
	Daniel Lezcano <daniel.lezcano@linaro.org>
Subject: Re: [PATCH] thermal: k3_j72xx_bandgap: register sensors with hwmon
Date: Thu, 4 Sep 2025 08:59:50 +0100	[thread overview]
Message-ID: <3069755e-770b-4fb7-806e-7a55cc84e26c@arm.com> (raw)
In-Reply-To: <20250828124042.1680853-1-mwalle@kernel.org>



On 8/28/25 13:40, Michael Walle wrote:
> Make the sensors available in the hwmon subsystem (if
> CONFIG_THERMAL_HWMON is enabled).
> 
> Signed-off-by: Michael Walle <mwalle@kernel.org>
> ---
>   drivers/thermal/k3_j72xx_bandgap.c | 4 ++++
>   1 file changed, 4 insertions(+)
> 
> diff --git a/drivers/thermal/k3_j72xx_bandgap.c b/drivers/thermal/k3_j72xx_bandgap.c
> index a36289e61315..d9ec3bf19496 100644
> --- a/drivers/thermal/k3_j72xx_bandgap.c
> +++ b/drivers/thermal/k3_j72xx_bandgap.c
> @@ -20,6 +20,8 @@
>   #include <linux/delay.h>
>   #include <linux/slab.h>
>   
> +#include "thermal_hwmon.h"
> +
>   #define K3_VTM_DEVINFO_PWR0_OFFSET		0x4
>   #define K3_VTM_DEVINFO_PWR0_TEMPSENS_CT_MASK	0xf0
>   #define K3_VTM_TMPSENS0_CTRL_OFFSET		0x300
> @@ -513,6 +515,8 @@ static int k3_j72xx_bandgap_probe(struct platform_device *pdev)
>   			ret = PTR_ERR(ti_thermal);
>   			goto err_free_ref_table;
>   		}
> +
> +		devm_thermal_add_hwmon_sysfs(bgp->dev, ti_thermal);
>   	}
>   
>   	platform_set_drvdata(pdev, bgp);


LGTM,

Reviewed-by: Lukasz Luba <lukasz.luba@arm.com>

  reply	other threads:[~2025-09-04  7:59 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2025-08-28 12:40 [PATCH] thermal: k3_j72xx_bandgap: register sensors with hwmon Michael Walle
2025-09-04  7:59 ` Lukasz Luba [this message]
2025-09-19 15:40 ` Daniel Lezcano

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=3069755e-770b-4fb7-806e-7a55cc84e26c@arm.com \
    --to=lukasz.luba@arm.com \
    --cc=daniel.lezcano@linaro.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-pm@vger.kernel.org \
    --cc=mwalle@kernel.org \
    --cc=rafael@kernel.org \
    --cc=rui.zhang@intel.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox