Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
iio: adc: cf_axi_adc_core: relax check in register access
With commit c5a5970 ("iio: adc: cf_axi_adc_core: use devm_jesd204_fsm_start()"), we started to use devm_platform_ioremap_resource() which means 'regs_size' will stay unchanged during probe and will be 0. Thus, checking the register to fit the mapped area will fail in the debugfs interface. Hence, relax that check and only check for proper alignment. While checking if the register fits the mapped area would be a nice thing, this is a debug interface and users are expected to know what they are doing. Hence I prefer to have simplicity during probe and not to keep 'regs_size' only to be used in the debugfs interface. Fixes: c5a5970 ("iio: adc: cf_axi_adc_core: use devm_jesd204_fsm_start()") Signed-off-by: Nuno Sa <[email protected]>
- Loading branch information