summaryrefslogtreecommitdiff
path: root/include/linux/iio/common
diff options
context:
space:
mode:
authorLinus Walleij <linus.walleij@linaro.org>2016-05-25 10:40:26 +0300
committerJonathan Cameron <jic23@kernel.org>2016-05-29 21:50:56 +0300
commit13c27e946ddc0e19f3d8b307b14cd8053fcb4844 (patch)
treedd35e04a7bcf46282005fb10cc87634974d53e9b /include/linux/iio/common
parent09bc0ddaab6cab0fa95a67d5535ec772e2671193 (diff)
downloadlinux-13c27e946ddc0e19f3d8b307b14cd8053fcb4844.tar.xz
iio: bh1780: dereference the client properly
The code in runtime_[suspend|resume] was assuming that the i2c client data was the bh1780 state container, but it contains the IIO device. So first dereference the IIO device from the i2c client, then get the state container using the iio_priv() call. Fixes: 1f0477f18306 ("iio: light: new driver for the ROHM BH1780") Signed-off-by: Linus Walleij <linus.walleij@linaro.org> Cc: <Stable@vger.kernel.org> Signed-off-by: Jonathan Cameron <jic23@kernel.org>
Diffstat (limited to 'include/linux/iio/common')
0 files changed, 0 insertions, 0 deletions