zephyr/drivers
Marcin Niestroj 74fc8fe071 sensor: lis2dh: fix SPI burst transfers
After switching to new SPI API there is no need to reserve first dummy
byte in buffer and ignore that in application later on. Instead two
buffers can be specified, which is how it is done already in lis2dh
driver. The problem is that dummy byte is still part of the buffer, but
it clearly should no longer be. As an example we write 0x7 (bits to
enable XYZ axes) into CTRL2 instead of CTRL1 register. When reading
measurements on the other hand we have filled buffer starting from 0,
instead of 1 as the driver code has expected.

Fix driver in all places that use burst transfers by removing first
dummy byte from input/output buffer.

Fixes: 2f7e6b6d42 ("drivers/sensors: Switch lis2dh driver to new SPI
  API")
Signed-off-by: Marcin Niestroj <m.niestroj@grinn-global.com>
2019-10-14 17:16:03 -05:00
..
adc boards: arm: stm32: fix out of bounds access 2019-10-08 15:51:14 -05:00
audio
bluetooth coccinelle: standardize k_sleep calls with integer timeouts 2019-10-09 08:38:10 -04:00
can drivers: CAN: MCP2515: Move OSC frequency definition to device-tree 2019-10-09 06:27:53 -05:00
clock_control drivers: clock_control: nrf_power_clock: Make isr function global 2019-10-08 16:23:14 +02:00
console drivers: fix k_thread_create timeout argument 2019-09-19 17:35:53 +02:00
counter drivers: counter: nrf_rtc: Fix wrapping with PPI 2019-10-09 13:25:36 +02:00
crypto
display coccinelle: standardize k_sleep calls with integer timeouts 2019-10-09 08:38:10 -04:00
dma
entropy drivers: entropy: Add STM32G4X RNG support 2019-10-04 18:44:24 -07:00
espi drivers: espi: xec: Report espi reset correctly to app 2019-10-14 14:15:26 -07:00
ethernet coccinelle: standardize k_sleep calls with integer timeouts 2019-10-09 08:38:10 -04:00
flash drivers: flash: nrfx: Modify flash address validation 2019-10-14 21:05:23 +02:00
gpio drivers: gpio: Add STM32G4X gpio support 2019-10-04 18:44:24 -07:00
hwinfo drivers: hwinfo: Add LiteX DNA driver 2019-09-21 21:36:00 +02:00
i2c drivers: i2c: xec: Handle additional I2C flags for read 2019-10-11 14:44:03 -07:00
i2s coccinelle: standardize k_sleep calls with integer timeouts 2019-10-09 08:38:10 -04:00
ieee802154 coccinelle: standardize kernel API timeout arguments 2019-10-03 11:55:44 -07:00
interrupt_controller drivers/interrupt_controller/ioapic_intr.c: broadcast interrupts 2019-10-07 19:46:55 -04:00
ipm
led coccinelle: standardize k_sleep calls with integer timeouts 2019-10-09 08:38:10 -04:00
led_strip
modem
net
neural_net
pcie
pinmux drivers: pinmux: Add STM32G4X pinmux support 2019-10-04 18:44:24 -07:00
ps2
ptp_clock
pwm coccinelle: standardize k_sleep calls with integer timeouts 2019-10-09 08:38:10 -04:00
sensor sensor: lis2dh: fix SPI burst transfers 2019-10-14 17:16:03 -05:00
serial stm32: Fix uart_irq_tx_complete() to output correct status 2019-10-09 06:30:14 -05:00
spi drivers: spi: Add STM32G4X SPI support 2019-10-04 18:44:24 -07:00
timer drivers: hpet: fix includes 2019-10-09 09:14:18 -04:00
usb coccinelle: standardize k_sleep calls with integer timeouts 2019-10-09 08:38:10 -04:00
watchdog
wifi coccinelle: standardize k_sleep calls with integer timeouts 2019-10-09 08:38:10 -04:00
CMakeLists.txt
Kconfig