* [PATCH] dt-bindings: hwmon: lm90: Drop Tegra specifics from example
@ 2022-01-19 1:55 Rob Herring
2022-01-21 14:08 ` Guenter Roeck
0 siblings, 1 reply; 2+ messages in thread
From: Rob Herring @ 2022-01-19 1:55 UTC (permalink / raw)
To: Jean Delvare, Guenter Roeck; +Cc: linux-hwmon, devicetree, linux-kernel
There's no need to complicate examples with a platform specific macro.
It also complicates example parsing to figure out the number of
interrupt cells in examples (based on bracketing).
Signed-off-by: Rob Herring <robh@kernel.org>
---
Documentation/devicetree/bindings/hwmon/national,lm90.yaml | 4 +---
1 file changed, 1 insertion(+), 3 deletions(-)
diff --git a/Documentation/devicetree/bindings/hwmon/national,lm90.yaml b/Documentation/devicetree/bindings/hwmon/national,lm90.yaml
index 6e1d54ff5d5b..30db92977937 100644
--- a/Documentation/devicetree/bindings/hwmon/national,lm90.yaml
+++ b/Documentation/devicetree/bindings/hwmon/national,lm90.yaml
@@ -60,7 +60,6 @@ additionalProperties: false
examples:
- |
- #include <dt-bindings/gpio/tegra-gpio.h>
#include <dt-bindings/interrupt-controller/irq.h>
i2c {
@@ -71,8 +70,7 @@ examples:
compatible = "onnn,nct1008";
reg = <0x4c>;
vcc-supply = <&palmas_ldo6_reg>;
- interrupt-parent = <&gpio>;
- interrupts = <TEGRA_GPIO(O, 4) IRQ_TYPE_LEVEL_LOW>;
+ interrupts = <4 IRQ_TYPE_LEVEL_LOW>;
#thermal-sensor-cells = <1>;
};
};
--
2.32.0
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH] dt-bindings: hwmon: lm90: Drop Tegra specifics from example
2022-01-19 1:55 [PATCH] dt-bindings: hwmon: lm90: Drop Tegra specifics from example Rob Herring
@ 2022-01-21 14:08 ` Guenter Roeck
0 siblings, 0 replies; 2+ messages in thread
From: Guenter Roeck @ 2022-01-21 14:08 UTC (permalink / raw)
To: Rob Herring; +Cc: Jean Delvare, linux-hwmon, devicetree, linux-kernel
On Tue, Jan 18, 2022 at 07:55:13PM -0600, Rob Herring wrote:
> There's no need to complicate examples with a platform specific macro.
> It also complicates example parsing to figure out the number of
> interrupt cells in examples (based on bracketing).
>
> Signed-off-by: Rob Herring <robh@kernel.org>
Applied to hwmon-next.
Thanks,
Guenter
> ---
> Documentation/devicetree/bindings/hwmon/national,lm90.yaml | 4 +---
> 1 file changed, 1 insertion(+), 3 deletions(-)
>
> diff --git a/Documentation/devicetree/bindings/hwmon/national,lm90.yaml b/Documentation/devicetree/bindings/hwmon/national,lm90.yaml
> index 6e1d54ff5d5b..30db92977937 100644
> --- a/Documentation/devicetree/bindings/hwmon/national,lm90.yaml
> +++ b/Documentation/devicetree/bindings/hwmon/national,lm90.yaml
> @@ -60,7 +60,6 @@ additionalProperties: false
>
> examples:
> - |
> - #include <dt-bindings/gpio/tegra-gpio.h>
> #include <dt-bindings/interrupt-controller/irq.h>
>
> i2c {
> @@ -71,8 +70,7 @@ examples:
> compatible = "onnn,nct1008";
> reg = <0x4c>;
> vcc-supply = <&palmas_ldo6_reg>;
> - interrupt-parent = <&gpio>;
> - interrupts = <TEGRA_GPIO(O, 4) IRQ_TYPE_LEVEL_LOW>;
> + interrupts = <4 IRQ_TYPE_LEVEL_LOW>;
> #thermal-sensor-cells = <1>;
> };
> };
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2022-01-21 14:08 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-01-19 1:55 [PATCH] dt-bindings: hwmon: lm90: Drop Tegra specifics from example Rob Herring
2022-01-21 14:08 ` Guenter Roeck
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).