summaryrefslogtreecommitdiff
path: root/scripts/lib/kdoc/kdoc_parser.py
diff options
context:
space:
mode:
authorDavid Lechner <dlechner@baylibre.com>2025-05-05 13:28:40 -0500
committerJonathan Cameron <Jonathan.Cameron@huawei.com>2025-05-15 17:14:11 +0100
commit7cdfbc0113d087348b8e65dd79276d0f57b89a10 (patch)
treec3a55a215eae841fe0cb795f50a2c2d9e323d30f /scripts/lib/kdoc/kdoc_parser.py
parent499a8cee812588905cc940837e69918c1649a19e (diff)
iio: adc: ad7944: mask high bits on direct read
Apply a mask to the raw value received over the SPI bus for unsigned direct reads. As we found recently, SPI controllers may not set unused bits to 0 when reading with bits_per_word != {8,16,32}. The ad7944 uses bits_per_word of 14 and 18, so we need to mask the value to be sure we returning the correct value to userspace during a direct read. Fixes: d1efcf8871db ("iio: adc: ad7944: add driver for AD7944/AD7985/AD7986") Signed-off-by: David Lechner <dlechner@baylibre.com> Reviewed-by: Nuno Sá <nuno.sa@analog.com> Link: https://patch.msgid.link/20250505-iio-adc-ad7944-max-high-bits-on-direct-read-v1-1-b173facceefe@baylibre.com Cc: <Stable@vger.kernel.org> Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
Diffstat (limited to 'scripts/lib/kdoc/kdoc_parser.py')
0 files changed, 0 insertions, 0 deletions