diff options
author | Linus Walleij <linus.walleij@linaro.org> | 2016-06-17 15:22:24 +0200 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2016-07-27 09:47:37 -0700 |
commit | ebd052e9a258109df95e2222aedf10ead98f02df (patch) | |
tree | dbb31d1c2c4f4ec86b38a683d54ca287009835c9 /drivers/powercap | |
parent | 601818bdd4b0cef2e578030b09fb9ad632a4c7b6 (diff) | |
download | linux-stable-ebd052e9a258109df95e2222aedf10ead98f02df.tar.gz linux-stable-ebd052e9a258109df95e2222aedf10ead98f02df.tar.bz2 linux-stable-ebd052e9a258109df95e2222aedf10ead98f02df.zip |
iio: accel: kxsd9: fix the usage of spi_w8r8()
commit 0c1f91b98552da49d9d8eed32b3132a58d2f4598 upstream.
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: d34dbee8ac8e ("staging:iio:accel:kxsd9 cleanup and conversion to iio_chan_spec.")
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Signed-off-by: Jonathan Cameron <jic23@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/powercap')
0 files changed, 0 insertions, 0 deletions