]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
iio: accel: adxl372: factor out buffer and trigger setup
authorAntoniu Miclaus <antoniu.miclaus@analog.com>
Sat, 21 Mar 2026 10:04:58 +0000 (12:04 +0200)
committerJonathan Cameron <Jonathan.Cameron@huawei.com>
Sat, 21 Mar 2026 11:22:34 +0000 (11:22 +0000)
commit39df6dbfad4ecc7ad667995e738fbe9b3b76f850
tree3fb9d370b336c4b2a832deb1b445374dceb69358
parent2643500bd2145a1c430d60273f3a6e9d28821834
iio: accel: adxl372: factor out buffer and trigger setup

Extract the triggered buffer, trigger allocation, and IRQ request
logic from adxl372_probe() into a dedicated adxl372_buffer_setup()
helper. This reduces the probe function complexity and prepares for
conditionally disabling buffer support on device variants with
known FIFO issues.

No functional change intended.

Signed-off-by: Antoniu Miclaus <antoniu.miclaus@analog.com>
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
drivers/iio/accel/adxl372.c