AD4170 has a 3-byte size register for ADC data and ad4170 driver internals use a bit pre-pended to the register address to determine how many bytes to read. Fix AD4170 DATA_PER_CHANNEL register read by pre-pending the correct byte size bit to the channel data register address.
Fixes: 3c02acbb0c38 ("add ad4170 device driver")
Pull Request Description
Fixes AD4170 DATA_PER_CHANNEL register read. Bug reported by ADI application engineer.
PR Type
[x] Bug fix (change that fixes an issue)
[ ] New feature (change that adds new functionality)
[ ] Breaking change (has dependencies in other repos or will cause CI to fail)
AD4170 has a 3-byte size register for ADC data and ad4170 driver internals use a bit pre-pended to the register address to determine how many bytes to read. Fix AD4170 DATA_PER_CHANNEL register read by pre-pending the correct byte size bit to the channel data register address.
Fixes: 3c02acbb0c38 ("add ad4170 device driver")
Pull Request Description
Fixes AD4170 DATA_PER_CHANNEL register read. Bug reported by ADI application engineer.
PR Type
PR Checklist