]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
iio: adc: ad7173: fix GPIO device info
authorDumitru Ceclan <mitrutzceclan@gmail.com>
Fri, 9 Aug 2024 13:49:08 +0000 (16:49 +0300)
committerJonathan Cameron <Jonathan.Cameron@huawei.com>
Sat, 17 Aug 2024 10:20:02 +0000 (11:20 +0100)
Models AD4114/5/6 have .higher_gpio_bits = true. This is not correct as
the only models that have the GPIO bits to a higher position are AD4111/2.

Fix by removing the higher_gpio_bits = true from the AD4114/5/6 models.

Fixes: 13d12e3ad12d ("iio: adc: ad7173: Add support for AD411x devices")
Signed-off-by: Dumitru Ceclan <dumitru.ceclan@analog.com>
Link: https://patch.msgid.link/20240809134909.26829-1-dumitru.ceclan@analog.com
Cc: <Stable@vger.kernel.org>
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
drivers/iio/adc/ad7173.c

index a854f2d30174ccddad0850ea3266e403057b2b6b..0702ec71aa29332036b30e5afd1996fc914baf92 100644 (file)
@@ -302,7 +302,6 @@ static const struct ad7173_device_info ad4114_device_info = {
        .num_configs = 8,
        .num_voltage_in = 16,
        .num_gpios = 4,
-       .higher_gpio_bits = true,
        .has_vincom_input = true,
        .has_temp = true,
        .has_input_buf = true,
@@ -320,7 +319,6 @@ static const struct ad7173_device_info ad4115_device_info = {
        .num_configs = 8,
        .num_voltage_in = 16,
        .num_gpios = 4,
-       .higher_gpio_bits = true,
        .has_vincom_input = true,
        .has_temp = true,
        .has_input_buf = true,
@@ -338,7 +336,6 @@ static const struct ad7173_device_info ad4116_device_info = {
        .num_configs = 8,
        .num_voltage_in = 16,
        .num_gpios = 4,
-       .higher_gpio_bits = true,
        .has_vincom_input = true,
        .has_temp = true,
        .has_input_buf = true,