summaryrefslogtreecommitdiffstats
path: root/firmware/qlogic
diff options
context:
space:
mode:
authorLukas Wunner <lukas@wunner.de>2017-09-09 20:32:41 +0200
committerJonathan Cameron <Jonathan.Cameron@huawei.com>2017-09-24 13:34:54 +0200
commitea9103186d0508cfbd665a04d2773514e336fa72 (patch)
tree4615f9d200ed5426c65cb4cc64a8801ecdda5306 /firmware/qlogic
parentiio: chemical: ccs811: Add support for data ready trigger (diff)
downloadlinux-ea9103186d0508cfbd665a04d2773514e336fa72.tar.xz
linux-ea9103186d0508cfbd665a04d2773514e336fa72.zip
iio: adc: mcp320x: Speed up readout of single-channel ADCs
Single-channel converters such as mcp3001, mcp3201, mcp3301 and the upcoming mcp3550/1/3 lack a MOSI pin, so there's no need to call mcp320x_channel_to_tx_data() for them. Moreover, instead of calling spi_read() for these converters, which generates an spi_message and spi_transfer on the stack on every readout, it's more efficient to use the spi_message and spi_transfer[] included in struct mcp320x (as we do for multi-channel ADCs), but initialize the spi_message only with the receive transfer. Signed-off-by: Lukas Wunner <lukas@wunner.de> Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
Diffstat (limited to '')
0 files changed, 0 insertions, 0 deletions