iio: accel: adxl345: Add spi-3wire option
authorLothar Rubusch <l.rubusch@gmail.com>
Mon, 1 Apr 2024 19:49:06 +0000 (19:49 +0000)
committerJonathan Cameron <Jonathan.Cameron@huawei.com>
Sat, 6 Apr 2024 15:18:39 +0000 (16:18 +0100)
commit2f896dd97cedbf6a8a7a14f4c6090d2b088cb694
tree5c21814109eafeba3a05042b08748f1a6b18e7f6
parent34ca62caa0dd7c62b57e5b48a69af677c7a63824
iio: accel: adxl345: Add spi-3wire option

Add a setup function implementation to the spi module to enable spi-3wire
when specified in the device-tree. If spi-3wire is not specified in the
device-tree, NULL is returned as bus pre-initialization. This behavior
is identical to the i2c initialization, hence the default initialization.

Signed-off-by: Lothar Rubusch <l.rubusch@gmail.com>
Link: https://lore.kernel.org/r/20240401194906.56810-9-l.rubusch@gmail.com
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
drivers/iio/accel/adxl345.h
drivers/iio/accel/adxl345_spi.c