Commit f242967f authored by Dumitru Ceclan's avatar Dumitru Ceclan Committed by Jonathan Cameron

iio: adc: ad7173: fix GPIO device info

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: 13d12e3a ("iio: adc: ad7173: Add support for AD411x devices")
Signed-off-by: default avatarDumitru 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: default avatarJonathan Cameron <Jonathan.Cameron@huawei.com>
parent 61cbfb53
...@@ -302,7 +302,6 @@ static const struct ad7173_device_info ad4114_device_info = { ...@@ -302,7 +302,6 @@ static const struct ad7173_device_info ad4114_device_info = {
.num_configs = 8, .num_configs = 8,
.num_voltage_in = 16, .num_voltage_in = 16,
.num_gpios = 4, .num_gpios = 4,
.higher_gpio_bits = true,
.has_vincom_input = true, .has_vincom_input = true,
.has_temp = true, .has_temp = true,
.has_input_buf = true, .has_input_buf = true,
...@@ -320,7 +319,6 @@ static const struct ad7173_device_info ad4115_device_info = { ...@@ -320,7 +319,6 @@ static const struct ad7173_device_info ad4115_device_info = {
.num_configs = 8, .num_configs = 8,
.num_voltage_in = 16, .num_voltage_in = 16,
.num_gpios = 4, .num_gpios = 4,
.higher_gpio_bits = true,
.has_vincom_input = true, .has_vincom_input = true,
.has_temp = true, .has_temp = true,
.has_input_buf = true, .has_input_buf = true,
...@@ -338,7 +336,6 @@ static const struct ad7173_device_info ad4116_device_info = { ...@@ -338,7 +336,6 @@ static const struct ad7173_device_info ad4116_device_info = {
.num_configs = 8, .num_configs = 8,
.num_voltage_in = 16, .num_voltage_in = 16,
.num_gpios = 4, .num_gpios = 4,
.higher_gpio_bits = true,
.has_vincom_input = true, .has_vincom_input = true,
.has_temp = true, .has_temp = true,
.has_input_buf = true, .has_input_buf = true,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment