]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
iio: accel: adxl345: initialize FIFO delay value for SPI
authorLothar Rubusch <l.rubusch@gmail.com>
Sat, 28 Dec 2024 23:29:47 +0000 (23:29 +0000)
committerJonathan Cameron <Jonathan.Cameron@huawei.com>
Sat, 4 Jan 2025 12:54:21 +0000 (12:54 +0000)
commitaf38b0f6912846611170a262def745cfcc644eee
tree836f1248bc121abc3e5edc52a048632f33755538
parente2e6d241486eec2688c9224c583570d5c746ad15
iio: accel: adxl345: initialize FIFO delay value for SPI

Add the possibility to delay FIFO access when SPI is used. According to
the datasheet this is needed for the adxl345. When initialization
happens over SPI the need for delay is to be signalized, and the delay
will be used.

Signed-off-by: Lothar Rubusch <l.rubusch@gmail.com>
Link: https://patch.msgid.link/20241228232949.72487-3-l.rubusch@gmail.com
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
drivers/iio/accel/adxl345.h
drivers/iio/accel/adxl345_core.c
drivers/iio/accel/adxl345_i2c.c
drivers/iio/accel/adxl345_spi.c