]> www.infradead.org Git - users/jedix/linux-maple.git/commit
dt-bindings: iio: dac: fix ad3552r gain parameter names
authorAngelo Dureghello <adureghello@baylibre.com>
Wed, 22 May 2024 15:01:36 +0000 (17:01 +0200)
committerJonathan Cameron <Jonathan.Cameron@huawei.com>
Tue, 4 Jun 2024 18:53:06 +0000 (19:53 +0100)
commit0fbce5d171e489cd21a67773331716c9cc752890
treef6858fb3d8812f0379c3cdba8cd443e89816a965
parentfefbc4a5d60da4b5367313d5d8ac1f777f2fb2a8
dt-bindings: iio: dac: fix ad3552r gain parameter names

The adi,gain-scaling-p/n values are an inverted log2,
so initial naming was set correctly, but the driver uses just
adi,gain-scaling-p/n, and if fdt is created accordingly with
the fdt bindings documentation, driver fails the probe.

Observing that:
- the Linux driver is the only consumer,
- there are no upstreamed dts nodes related to ad3552r,

the fix to the documentation side is preferred and less-risk.

Fixes: b0a96c5f599e ("dt-bindings: iio: dac: Add adi,ad3552r.yaml")
Signed-off-by: Angelo Dureghello <adureghello@baylibre.com>
Reviewed-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Reviewed-by: Nuno Sa <nuno.sa@analog.com>
Link: https://lore.kernel.org/r/20240522150141.1776196-2-adureghello@baylibre.org
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
Documentation/devicetree/bindings/iio/dac/adi,ad3552r.yaml