iio: adc: adi-axi-adc: remove regmap max register
authorNuno Sa <nuno.sa@analog.com>
Fri, 26 Apr 2024 15:42:14 +0000 (17:42 +0200)
committerJonathan Cameron <Jonathan.Cameron@huawei.com>
Mon, 29 Apr 2024 19:53:26 +0000 (20:53 +0100)
In one of the following patches, we'll have some new functionality that
requires reads/writes on registers bigger than 0x8000. Hence, as this is
an highly flexible core, don't bother in setting 'max_register' and
remove it from regmap_config.

Signed-off-by: Nuno Sa <nuno.sa@analog.com>
Link: https://lore.kernel.org/r/20240426-ad9467-new-features-v2-5-6361fc3ba1cc@analog.com
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
drivers/iio/adc/adi-axi-adc.c

index f54830658da89718806efdb8e4eebcbdde2c80c5..316750d92ad153fe4475b759505795db9533c101 100644 (file)
@@ -142,7 +142,6 @@ static const struct regmap_config axi_adc_regmap_config = {
        .val_bits = 32,
        .reg_bits = 32,
        .reg_stride = 4,
-       .max_register = 0x0800,
 };
 
 static const struct iio_backend_ops adi_axi_adc_generic = {