iio: adc: adi-axi-adc: only error out in major version mismatch
authorNuno Sa <nuno.sa@analog.com>
Fri, 19 Apr 2024 15:36:45 +0000 (17:36 +0200)
committerJonathan Cameron <Jonathan.Cameron@huawei.com>
Sat, 20 Apr 2024 15:01:04 +0000 (16:01 +0100)
commitcf1c833f89e7c8635a28c3db15c68ead150ea712
tree220db99bbb494d45f07ee9ffc853e4d60e3feb5a
parente77603d5468b9093c111a998a86604e21a9e7f48
iio: adc: adi-axi-adc: only error out in major version mismatch

The IP core only has breaking changes when there major version changes.
Hence, only match the major number. This is also in line with the other
core ADI has upstream. The current check for erroring out
'expected_version > current_version"' is then wrong as we could just
increase the core major with breaking changes and that would go
unnoticed.

Fixes: ef04070692a2 ("iio: adc: adi-axi-adc: add support for AXI ADC IP core")
Signed-off-by: Nuno Sa <nuno.sa@analog.com>
Link: https://lore.kernel.org/r/20240419-ad9467-new-features-v1-2-3e7628ff6d5e@analog.com
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
drivers/iio/adc/adi-axi-adc.c