summaryrefslogtreecommitdiff
path: root/scripts/gdb/linux/interrupts.py
diff options
context:
space:
mode:
authorDavid Lechner <dlechner@baylibre.com>2025-06-11 18:04:58 +0300
committerJonathan Cameron <Jonathan.Cameron@huawei.com>2025-06-29 19:15:39 +0300
commit7b86482632788acd48d7b9ee1867f5ad3a32ccbb (patch)
tree62ef24f2dcf7b88b39b9625e50f34247648fbe27 /scripts/gdb/linux/interrupts.py
parent1fe16dc1a2f5057772e5391ec042ed7442966c9a (diff)
downloadlinux-7b86482632788acd48d7b9ee1867f5ad3a32ccbb.tar.xz
iio: adc: ad7949: use spi_is_bpw_supported()
Use spi_is_bpw_supported() instead of directly accessing spi->controller ->bits_per_word_mask. bits_per_word_mask may be 0, which implies that 8-bits-per-word is supported. spi_is_bpw_supported() takes this into account while spi_ctrl_mask == SPI_BPW_MASK(8) does not. Fixes: 0b2a740b424e ("iio: adc: ad7949: enable use with non 14/16-bit controllers") Closes: https://lore.kernel.org/linux-spi/c8b8a963-6cef-4c9b-bfef-dab2b7bd0b0f@sirena.org.uk/ Signed-off-by: David Lechner <dlechner@baylibre.com> Reviewed-by: Andy Shevchenko <andy@kernel.org> Link: https://patch.msgid.link/20250611-iio-adc-ad7949-use-spi_is_bpw_supported-v1-1-c4e15bfd326e@baylibre.com Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
Diffstat (limited to 'scripts/gdb/linux/interrupts.py')
0 files changed, 0 insertions, 0 deletions