[2/2] iio/adc: add documentation for adc ad7927

Message ID 20221116104453.3207-2-edmund.berenson@emlix.com
State New
Headers
Series [1/2] iio/adc: add ad7927 compatibility to ad7923 drivers |

Commit Message

Edmund Berenson Nov. 16, 2022, 10:44 a.m. UTC
  Add the ad7927 compatibility string documentation to
ad7923 driver.

Suggested-by: Lukasz Zemla <Lukasz.Zemla@woodward.com>
Signed-off-by: Edmund Berenson <edmund.berenson@emlix.com>
---
 Documentation/devicetree/bindings/iio/adc/adi,ad7923.yaml | 1 +
 1 file changed, 1 insertion(+)
  

Comments

Krzysztof Kozlowski Nov. 16, 2022, 11:13 a.m. UTC | #1
On 16/11/2022 11:44, Edmund Berenson wrote:
> Add the ad7927 compatibility string documentation to
> ad7923 driver.

Use subject prefixes matching the subsystem (git log --oneline -- ...).

> 
> Suggested-by: Lukasz Zemla <Lukasz.Zemla@woodward.com>
> Signed-off-by: Edmund Berenson <edmund.berenson@emlix.com>


Best regards,
Krzysztof
  
Jonathan Cameron Nov. 16, 2022, 7:12 p.m. UTC | #2
On Wed, 16 Nov 2022 11:44:53 +0100
Edmund Berenson <edmund.berenson@emlix.com> wrote:

> Add the ad7927 compatibility string documentation to
> ad7923 driver.
> 
> Suggested-by: Lukasz Zemla <Lukasz.Zemla@woodward.com>
> Signed-off-by: Edmund Berenson <edmund.berenson@emlix.com>

Given you treat it as an ad7928 in the driver, can we have
a fallback compatible for it to that part?  Would allow people
using older kernels (with newer DT) to get support without needing
to patch the driver.

> ---
>  Documentation/devicetree/bindings/iio/adc/adi,ad7923.yaml | 1 +
>  1 file changed, 1 insertion(+)
> 
> diff --git a/Documentation/devicetree/bindings/iio/adc/adi,ad7923.yaml b/Documentation/devicetree/bindings/iio/adc/adi,ad7923.yaml
> index 07f9d1c09c7d..3e9e9a9c18a4 100644
> --- a/Documentation/devicetree/bindings/iio/adc/adi,ad7923.yaml
> +++ b/Documentation/devicetree/bindings/iio/adc/adi,ad7923.yaml
> @@ -27,6 +27,7 @@ properties:
>        - adi,ad7924
>        - adi,ad7908
>        - adi,ad7918
> +      - adi,ad7927
>        - adi,ad7928
>  
>    reg:
  

Patch

diff --git a/Documentation/devicetree/bindings/iio/adc/adi,ad7923.yaml b/Documentation/devicetree/bindings/iio/adc/adi,ad7923.yaml
index 07f9d1c09c7d..3e9e9a9c18a4 100644
--- a/Documentation/devicetree/bindings/iio/adc/adi,ad7923.yaml
+++ b/Documentation/devicetree/bindings/iio/adc/adi,ad7923.yaml
@@ -27,6 +27,7 @@  properties:
       - adi,ad7924
       - adi,ad7908
       - adi,ad7918
+      - adi,ad7927
       - adi,ad7928
 
   reg: