iio: adis: add burst_max_speed_hz variable
authorNuno Sa <nuno.sa@analog.com>
Tue, 27 Apr 2021 08:54:52 +0000 (10:54 +0200)
committerJonathan Cameron <Jonathan.Cameron@huawei.com>
Mon, 17 May 2021 12:49:09 +0000 (13:49 +0100)
commitdbf20809d6e0072ad189c937761d58bf98a47b43
tree77cdd9cb412f0e087398c5fe247d5559d7ea52ff
parent669da56a7eafb9b4025261a07f1d27364159cac9
iio: adis: add burst_max_speed_hz variable

Typically, in burst mode, the device cannot operate at it's full spi
speed. Hence, the spi transfers for burst mode have to take this into
account. With this change we avoid a potential race with the spi core as
drivers were 'hacking' the device 'max_speed_hz' directly in the
trigger handler.

Reviewed-by: Alexandru Ardelean <ardeleanalex@gmail.com>
Signed-off-by: Nuno Sa <nuno.sa@analog.com>
Link: https://lore.kernel.org/r/20210427085454.30616-5-nuno.sa@analog.com
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
drivers/iio/imu/adis_buffer.c
include/linux/iio/imu/adis.h