* [PATCH 0/2] iio: adc: ad4695: move dt-bindings header
@ 2024-11-13 16:55 David Lechner
2024-11-13 16:55 ` [PATCH 1/2] " David Lechner
` (2 more replies)
0 siblings, 3 replies; 7+ messages in thread
From: David Lechner @ 2024-11-13 16:55 UTC (permalink / raw)
To: Jonathan Cameron, Rob Herring, Krzysztof Kozlowski, Conor Dooley
Cc: Michael Hennerich, Nuno Sá, Jonathan Corbet, linux-iio,
linux-doc, linux-kernel, devicetree, David Lechner
During review, no one caught that the dt-bindings header was not in the
preferred location when the bindings were created. Move the header to
the correct location.
---
David Lechner (2):
iio: adc: ad4695: move dt-bindings header
dt-bindings: iio: adc: adi,ad4695: change include path
Documentation/devicetree/bindings/iio/adc/adi,ad4695.yaml | 7 ++++---
Documentation/iio/ad4695.rst | 2 +-
MAINTAINERS | 2 +-
drivers/iio/adc/ad4695.c | 2 +-
include/dt-bindings/iio/{ => adc}/adi,ad4695.h | 0
5 files changed, 7 insertions(+), 6 deletions(-)
---
base-commit: 9dd2270ca0b38ee16094817f4a53e7ba78e31567
change-id: 20241113-iio-adc-ad4695-move-dt-bindings-header-d6922ef7d134
Best regards,
--
David Lechner <dlechner@baylibre.com>
^ permalink raw reply [flat|nested] 7+ messages in thread
* [PATCH 1/2] iio: adc: ad4695: move dt-bindings header
2024-11-13 16:55 [PATCH 0/2] iio: adc: ad4695: move dt-bindings header David Lechner
@ 2024-11-13 16:55 ` David Lechner
2024-11-13 16:55 ` [PATCH 2/2] dt-bindings: iio: adc: adi,ad4695: change include path David Lechner
2024-11-24 12:45 ` [PATCH 0/2] iio: adc: ad4695: move dt-bindings header Jonathan Cameron
2 siblings, 0 replies; 7+ messages in thread
From: David Lechner @ 2024-11-13 16:55 UTC (permalink / raw)
To: Jonathan Cameron, Rob Herring, Krzysztof Kozlowski, Conor Dooley
Cc: Michael Hennerich, Nuno Sá, Jonathan Corbet, linux-iio,
linux-doc, linux-kernel, devicetree, David Lechner
Move the dt-bindings header file to the include/dt-bindings/iio/adc/
directory. ad4695 is an ADC driver, so it should be in the adc/
subdirectory for better organization. Previously, it was in the iio/
subdirectory.
Signed-off-by: David Lechner <dlechner@baylibre.com>
---
| 2 +-
MAINTAINERS | 2 +-
| 2 +-
| 0
4 files changed, 3 insertions(+), 3 deletions(-)
--git a/Documentation/iio/ad4695.rst b/Documentation/iio/ad4695.rst
index 33ed29b7c98a..9ec8bf466c15 100644
--- a/Documentation/iio/ad4695.rst
+++ b/Documentation/iio/ad4695.rst
@@ -101,7 +101,7 @@ The macro comes from:
.. code-block::
- #include <dt-bindings/iio/adi,ad4695.h>
+ #include <dt-bindings/iio/adc/adi,ad4695.h>
Pairing two INx pins
^^^^^^^^^^^^^^^^^^^^
diff --git a/MAINTAINERS b/MAINTAINERS
index e69d1632c382..3fd398d6e64f 100644
--- a/MAINTAINERS
+++ b/MAINTAINERS
@@ -1268,7 +1268,7 @@ W: https://ez.analog.com/linux-software-drivers
F: Documentation/devicetree/bindings/iio/adc/adi,ad4695.yaml
F: Documentation/iio/ad4695.rst
F: drivers/iio/adc/ad4695.c
-F: include/dt-bindings/iio/adi,ad4695.h
+F: include/dt-bindings/iio/adc/adi,ad4695.h
ANALOG DEVICES INC AD7091R DRIVER
M: Marcelo Schmitt <marcelo.schmitt@analog.com>
--git a/drivers/iio/adc/ad4695.c b/drivers/iio/adc/ad4695.c
index 595ec4158e73..3c2c01289fda 100644
--- a/drivers/iio/adc/ad4695.c
+++ b/drivers/iio/adc/ad4695.c
@@ -30,7 +30,7 @@
#include <linux/spi/spi.h>
#include <linux/units.h>
-#include <dt-bindings/iio/adi,ad4695.h>
+#include <dt-bindings/iio/adc/adi,ad4695.h>
/* AD4695 registers */
#define AD4695_REG_SPI_CONFIG_A 0x0000
diff --git a/include/dt-bindings/iio/adi,ad4695.h b/include/dt-bindings/iio/adc/adi,ad4695.h
similarity index 100%
rename from include/dt-bindings/iio/adi,ad4695.h
rename to include/dt-bindings/iio/adc/adi,ad4695.h
--
2.43.0
^ permalink raw reply related [flat|nested] 7+ messages in thread
* [PATCH 2/2] dt-bindings: iio: adc: adi,ad4695: change include path
2024-11-13 16:55 [PATCH 0/2] iio: adc: ad4695: move dt-bindings header David Lechner
2024-11-13 16:55 ` [PATCH 1/2] " David Lechner
@ 2024-11-13 16:55 ` David Lechner
2024-11-13 18:18 ` Rob Herring (Arm)
2024-11-15 15:30 ` Rob Herring (Arm)
2024-11-24 12:45 ` [PATCH 0/2] iio: adc: ad4695: move dt-bindings header Jonathan Cameron
2 siblings, 2 replies; 7+ messages in thread
From: David Lechner @ 2024-11-13 16:55 UTC (permalink / raw)
To: Jonathan Cameron, Rob Herring, Krzysztof Kozlowski, Conor Dooley
Cc: Michael Hennerich, Nuno Sá, Jonathan Corbet, linux-iio,
linux-doc, linux-kernel, devicetree, David Lechner
Change the include path for the adi,ad4695.h header since it has been
moved to the include/dt-bindings/iio/adc/ directory.
Signed-off-by: David Lechner <dlechner@baylibre.com>
---
| 7 ++++---
1 file changed, 4 insertions(+), 3 deletions(-)
--git a/Documentation/devicetree/bindings/iio/adc/adi,ad4695.yaml b/Documentation/devicetree/bindings/iio/adc/adi,ad4695.yaml
index 310f046e139f..7d2229dee444 100644
--- a/Documentation/devicetree/bindings/iio/adc/adi,ad4695.yaml
+++ b/Documentation/devicetree/bindings/iio/adc/adi,ad4695.yaml
@@ -134,8 +134,9 @@ patternProperties:
description:
Describes the common mode channel for single channels. 0xFF is REFGND
and OxFE is COM. Macros are available for these values in
- dt-bindings/iio/adi,ad4695.h. Values 1 to 15 correspond to INx inputs.
- Only odd numbered INx inputs can be used as common mode channels.
+ dt-bindings/iio/adc/adi,ad4695.h. Values 1 to 15 correspond to INx
+ inputs. Only odd numbered INx inputs can be used as common mode
+ channels.
enum: [1, 3, 5, 7, 9, 11, 13, 15, 0xFE, 0xFF]
default: 0xFF
@@ -209,7 +210,7 @@ unevaluatedProperties: false
examples:
- |
#include <dt-bindings/gpio/gpio.h>
- #include <dt-bindings/iio/adi,ad4695.h>
+ #include <dt-bindings/iio/adc/adi,ad4695.h>
spi {
#address-cells = <1>;
--
2.43.0
^ permalink raw reply related [flat|nested] 7+ messages in thread
* Re: [PATCH 2/2] dt-bindings: iio: adc: adi,ad4695: change include path
2024-11-13 16:55 ` [PATCH 2/2] dt-bindings: iio: adc: adi,ad4695: change include path David Lechner
@ 2024-11-13 18:18 ` Rob Herring (Arm)
2024-11-13 18:45 ` David Lechner
2024-11-15 15:30 ` Rob Herring (Arm)
1 sibling, 1 reply; 7+ messages in thread
From: Rob Herring (Arm) @ 2024-11-13 18:18 UTC (permalink / raw)
To: David Lechner
Cc: linux-iio, linux-doc, Nuno Sá, linux-kernel,
Krzysztof Kozlowski, Jonathan Cameron, devicetree, Conor Dooley,
Jonathan Corbet, Michael Hennerich
On Wed, 13 Nov 2024 10:55:20 -0600, David Lechner wrote:
> Change the include path for the adi,ad4695.h header since it has been
> moved to the include/dt-bindings/iio/adc/ directory.
>
> Signed-off-by: David Lechner <dlechner@baylibre.com>
> ---
> Documentation/devicetree/bindings/iio/adc/adi,ad4695.yaml | 7 ++++---
> 1 file changed, 4 insertions(+), 3 deletions(-)
>
My bot found errors running 'make dt_binding_check' on your patch:
yamllint warnings/errors:
dtschema/dtc warnings/errors:
Documentation/devicetree/bindings/iio/adc/adi,ad4695.example.dts:19:18: fatal error: dt-bindings/iio/adc/adi,ad4695.h: No such file or directory
19 | #include <dt-bindings/iio/adc/adi,ad4695.h>
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
compilation terminated.
make[2]: *** [scripts/Makefile.dtbs:129: Documentation/devicetree/bindings/iio/adc/adi,ad4695.example.dtb] Error 1
make[2]: *** Waiting for unfinished jobs....
make[1]: *** [/builds/robherring/dt-review-ci/linux/Makefile:1442: dt_binding_check] Error 2
make: *** [Makefile:224: __sub-make] Error 2
doc reference errors (make refcheckdocs):
See https://patchwork.ozlabs.org/project/devicetree-bindings/patch/20241113-iio-adc-ad4695-move-dt-bindings-header-v1-2-aba1f0f9b628@baylibre.com
The base for the series is generally the latest rc1. A different dependency
should be noted in *this* patch.
If you already ran 'make dt_binding_check' and didn't see the above
error(s), then make sure 'yamllint' is installed and dt-schema is up to
date:
pip3 install dtschema --upgrade
Please check and re-submit after running the above command yourself. Note
that DT_SCHEMA_FILES can be set to your schema file to speed up checking
your schema. However, it must be unset to test all examples with your schema.
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [PATCH 2/2] dt-bindings: iio: adc: adi,ad4695: change include path
2024-11-13 18:18 ` Rob Herring (Arm)
@ 2024-11-13 18:45 ` David Lechner
0 siblings, 0 replies; 7+ messages in thread
From: David Lechner @ 2024-11-13 18:45 UTC (permalink / raw)
To: Rob Herring (Arm)
Cc: linux-iio, linux-doc, Nuno Sá, linux-kernel,
Krzysztof Kozlowski, Jonathan Cameron, devicetree, Conor Dooley,
Jonathan Corbet, Michael Hennerich
On 11/13/24 12:18 PM, Rob Herring (Arm) wrote:
>
> On Wed, 13 Nov 2024 10:55:20 -0600, David Lechner wrote:
>> Change the include path for the adi,ad4695.h header since it has been
>> moved to the include/dt-bindings/iio/adc/ directory.
>>
>> Signed-off-by: David Lechner <dlechner@baylibre.com>
>> ---
>> Documentation/devicetree/bindings/iio/adc/adi,ad4695.yaml | 7 ++++---
>> 1 file changed, 4 insertions(+), 3 deletions(-)
>>
>
> My bot found errors running 'make dt_binding_check' on your patch:
>
> yamllint warnings/errors:
>
> dtschema/dtc warnings/errors:
> Documentation/devicetree/bindings/iio/adc/adi,ad4695.example.dts:19:18: fatal error: dt-bindings/iio/adc/adi,ad4695.h: No such file or directory
> 19 | #include <dt-bindings/iio/adc/adi,ad4695.h>
> | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Is this testing this patch without the other patch from this series?
I did run make `dt_binding_check DT_SCHEMA_FILES=adi,ad4695.yaml ...`
locally before sending the patch, so wasn't expecting an error here.
I know that normally we should be including the header change in the same
patch as the .yaml file, but in this case, I had to make an exception
because the same header is also included in a .c file. It seemed better
to not break compiling .c files rather than follow the rule strictly.
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [PATCH 2/2] dt-bindings: iio: adc: adi,ad4695: change include path
2024-11-13 16:55 ` [PATCH 2/2] dt-bindings: iio: adc: adi,ad4695: change include path David Lechner
2024-11-13 18:18 ` Rob Herring (Arm)
@ 2024-11-15 15:30 ` Rob Herring (Arm)
1 sibling, 0 replies; 7+ messages in thread
From: Rob Herring (Arm) @ 2024-11-15 15:30 UTC (permalink / raw)
To: David Lechner
Cc: linux-iio, Michael Hennerich, linux-doc, Jonathan Cameron,
linux-kernel, Krzysztof Kozlowski, Conor Dooley, Jonathan Corbet,
Nuno Sá, devicetree
On Wed, 13 Nov 2024 10:55:20 -0600, David Lechner wrote:
> Change the include path for the adi,ad4695.h header since it has been
> moved to the include/dt-bindings/iio/adc/ directory.
>
> Signed-off-by: David Lechner <dlechner@baylibre.com>
> ---
> Documentation/devicetree/bindings/iio/adc/adi,ad4695.yaml | 7 ++++---
> 1 file changed, 4 insertions(+), 3 deletions(-)
>
Reviewed-by: Rob Herring (Arm) <robh@kernel.org>
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [PATCH 0/2] iio: adc: ad4695: move dt-bindings header
2024-11-13 16:55 [PATCH 0/2] iio: adc: ad4695: move dt-bindings header David Lechner
2024-11-13 16:55 ` [PATCH 1/2] " David Lechner
2024-11-13 16:55 ` [PATCH 2/2] dt-bindings: iio: adc: adi,ad4695: change include path David Lechner
@ 2024-11-24 12:45 ` Jonathan Cameron
2 siblings, 0 replies; 7+ messages in thread
From: Jonathan Cameron @ 2024-11-24 12:45 UTC (permalink / raw)
To: David Lechner
Cc: Rob Herring, Krzysztof Kozlowski, Conor Dooley, Michael Hennerich,
Nuno Sá, Jonathan Corbet, linux-iio, linux-doc, linux-kernel,
devicetree
On Wed, 13 Nov 2024 10:55:18 -0600
David Lechner <dlechner@baylibre.com> wrote:
> During review, no one caught that the dt-bindings header was not in the
> preferred location when the bindings were created. Move the header to
> the correct location.
>
Applied to the togreg branch of iio.git which will get rebased on rc1
when available .
Thanks,
Jonathan
> ---
> David Lechner (2):
> iio: adc: ad4695: move dt-bindings header
> dt-bindings: iio: adc: adi,ad4695: change include path
>
> Documentation/devicetree/bindings/iio/adc/adi,ad4695.yaml | 7 ++++---
> Documentation/iio/ad4695.rst | 2 +-
> MAINTAINERS | 2 +-
> drivers/iio/adc/ad4695.c | 2 +-
> include/dt-bindings/iio/{ => adc}/adi,ad4695.h | 0
> 5 files changed, 7 insertions(+), 6 deletions(-)
> ---
> base-commit: 9dd2270ca0b38ee16094817f4a53e7ba78e31567
> change-id: 20241113-iio-adc-ad4695-move-dt-bindings-header-d6922ef7d134
>
> Best regards,
^ permalink raw reply [flat|nested] 7+ messages in thread
end of thread, other threads:[~2024-11-24 12:45 UTC | newest]
Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-11-13 16:55 [PATCH 0/2] iio: adc: ad4695: move dt-bindings header David Lechner
2024-11-13 16:55 ` [PATCH 1/2] " David Lechner
2024-11-13 16:55 ` [PATCH 2/2] dt-bindings: iio: adc: adi,ad4695: change include path David Lechner
2024-11-13 18:18 ` Rob Herring (Arm)
2024-11-13 18:45 ` David Lechner
2024-11-15 15:30 ` Rob Herring (Arm)
2024-11-24 12:45 ` [PATCH 0/2] iio: adc: ad4695: move dt-bindings header Jonathan Cameron
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox