]> git.baikalelectronics.ru Git - kernel.git/commit
iio: accel: kxsd9: fix the usage of spi_w8r8()
authorLinus Walleij <linus.walleij@linaro.org>
Fri, 17 Jun 2016 13:22:24 +0000 (15:22 +0200)
committerJonathan Cameron <jic23@kernel.org>
Sun, 26 Jun 2016 16:32:19 +0000 (17:32 +0100)
commit0c61f9c4d4fd18ba3d7fcd5f7d6731619df59b1d
tree5151324158524f09fed55cacca982cec037de019
parent54eddf02995483d7af5fa4efd3546ed975d39294
iio: accel: kxsd9: fix the usage of spi_w8r8()

These two spi_w8r8() calls return a value with is used by the code
following the error check. The dubious use was caused by a cleanup
patch.

Fixes: faaaa4574337 ("staging:iio:accel:kxsd9 cleanup and conversion to iio_chan_spec.")
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Cc: <Stable@vger.kernel.org>
Signed-off-by: Jonathan Cameron <jic23@kernel.org>
drivers/iio/accel/kxsd9.c