commit | 1ebb7089104156c63603797f05f3ae194e0307a2 | [log] [tgz] |
---|---|---|
author | Armando Visconti <armando.visconti@st.com> | Thu Feb 20 09:31:53 2020 +0100 |
committer | Johan Hedberg <johan.hedberg@gmail.com> | Tue Mar 10 14:52:59 2020 +0200 |
tree | e0ce9d92eb3e073b614f0fd2c601ae29eaf238d0 | |
parent | 86087f202a3de84c22c21f3536c8a25f8c76b30d [diff] |
driver/sensors: lis2dh: Fix I2C and SPI bus communication Add I2C and SPI bus communication routines in separate files, and register one or the other as read/write callbacks based on bus selection in DTS. This commit is fixing issue #22348 as well, as the SPI part is handling in the proper way the CS GPIO part. Signed-off-by: Armando Visconti <armando.visconti@st.com>