From: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
To: Keerthy <j-keerthy@ti.com>,
robh+dt@kernel.org, daniel.lezcano@linaro.org,
rui.zhang@intel.com, amitk@kernel.org, kristo@kernel.org
Cc: linux-pm@vger.kernel.org, vigneshr@ti.com,
devicetree@vger.kernel.org, linux-kernel@vger.kernel.org
Subject: Re: [PATCH v5 4/4] thermal: k3_j72xx_bandgap: Add the bandgap driver support
Date: Wed, 13 Apr 2022 12:17:25 +0200 [thread overview]
Message-ID: <7ac04ea5-a797-de24-7701-76699d73518a@linaro.org> (raw)
In-Reply-To: <20220412101409.7980-5-j-keerthy@ti.com>
On 12/04/2022 12:14, Keerthy wrote:
> Add VTM thermal support. In the Voltage Thermal Management
> Module(VTM), K3 J72XX supplies a voltage reference and a temperature
> sensor feature that are gathered in the band gap voltage and
> temperature sensor (VBGAPTS) module. The band gap provides current and
> voltage reference for its internal circuits and other analog IP
> blocks. The analog-to-digital converter (ADC) produces an output value
> that is proportional to the silicon temperature.
(...)
> +
> +static void print_look_up_table(struct device *dev, int *ref_table)
Here and everywhere else in such cases - you do not modify pointed data,
so pointers to const please.
> +{
> + int i;
> +
> + dev_dbg(dev, "The contents of derived array\n");
> + dev_dbg(dev, "Code Temperaturei\n");
> + for (i = 0; i <= 1023; i++)
> + dev_dbg(dev, "%d %d %d\n", i, derived_table[i], ref_table[i]);
> +}
> +
> +static const struct of_device_id of_k3_j72xx_bandgap_match[];
> +
Why do you need forward declaration?
(....)
> +
> +static const struct of_device_id of_k3_j72xx_bandgap_match[] = {
> + {
> + .compatible = "ti,j721e-vtm",
> + .data = (void *)&k3_j72xx_bandgap_j721e_data,
Why do you need the cast?
Best regards,
Krzysztof
next prev parent reply other threads:[~2022-04-13 10:17 UTC|newest]
Thread overview: 18+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-04-12 10:14 [PATCH v5 0/4] thermal: k3_j72xx_bandgap: Add the bandgap driver support Keerthy
2022-04-12 10:14 ` [PATCH v5 1/4] dt-bindings: thermal: k3-j72xx: Add VTM bindings documentation Keerthy
2022-04-13 8:07 ` Daniel Lezcano
2022-04-13 10:13 ` Krzysztof Kozlowski
2022-04-13 12:04 ` J, KEERTHY
2022-04-13 12:25 ` Krzysztof Kozlowski
2022-04-14 15:57 ` Rob Herring
2022-04-12 10:14 ` [PATCH v5 2/4] arm64: dts: ti: j721e: Add VTM node Keerthy
2022-04-12 17:09 ` Vignesh Raghavendra
2022-04-12 23:43 ` J, KEERTHY
2022-04-13 10:14 ` Krzysztof Kozlowski
2022-04-12 10:14 ` [PATCH v5 3/4] arm64: dts: ti: j7200: " Keerthy
2022-04-13 10:14 ` Krzysztof Kozlowski
2022-04-12 10:14 ` [PATCH v5 4/4] thermal: k3_j72xx_bandgap: Add the bandgap driver support Keerthy
2022-04-12 17:00 ` kernel test robot
2022-04-13 10:17 ` Krzysztof Kozlowski [this message]
2022-04-19 17:23 ` Daniel Lezcano
2022-04-20 7:01 ` Dan Carpenter
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=7ac04ea5-a797-de24-7701-76699d73518a@linaro.org \
--to=krzysztof.kozlowski@linaro.org \
--cc=amitk@kernel.org \
--cc=daniel.lezcano@linaro.org \
--cc=devicetree@vger.kernel.org \
--cc=j-keerthy@ti.com \
--cc=kristo@kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-pm@vger.kernel.org \
--cc=robh+dt@kernel.org \
--cc=rui.zhang@intel.com \
--cc=vigneshr@ti.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