]> git.ipfire.org Git - thirdparty/linux.git/commit
iio: adc: ad_sigma_delta: Handle CS assertion as intended in ad_sd_read_reg_raw()
authorUwe Kleine-König <u.kleine-koenig@baylibre.com>
Fri, 6 Dec 2024 17:28:37 +0000 (18:28 +0100)
committerJonathan Cameron <Jonathan.Cameron@huawei.com>
Wed, 11 Dec 2024 19:20:48 +0000 (19:20 +0000)
commit90b8b2fe60eb673d917b3c11abfc0a8ee144145e
tree7c059fbc10adf6f4ef03f4baf48530feb962f5e4
parenta87ef09b1fdf75fdc2d6b386ff23a35589173055
iio: adc: ad_sigma_delta: Handle CS assertion as intended in ad_sd_read_reg_raw()

When struct ad_sigma_delta::keep_cs_asserted was introduced only
register writing was adapted to honor this new flag. Also respect it
when reading a register.

Fixes: df1d80aee963 ("iio: ad_sigma_delta: Properly handle SPI bus locking vs CS assertion")
Reviewed-by: Trevor Gamblin <tgamblin@baylibre.com>
Signed-off-by: Uwe Kleine-König <u.kleine-koenig@baylibre.com>
Link: https://patch.msgid.link/8d76b4ea4a4363b269886c71193b840821c724ea.1733504533.git.u.kleine-koenig@baylibre.com
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
drivers/iio/adc/ad_sigma_delta.c