Skip to content
Commit 3fd6c6a9 authored by Mathieu Othacehe's avatar Mathieu Othacehe Committed by Greg Kroah-Hartman
Browse files

iio: vcnl4000: Fix i2c swapped word reading.



commit 18dfb532 upstream.

The bytes returned by the i2c reading need to be swapped
unconditionally. Otherwise, on be16 platforms, an incorrect value will be
returned.

Taking the slow path via next merge window as its been around a while
and we have a patch set dependent on this which would be held up.

Fixes: 62a1efb9 ("iio: add vcnl4000 combined ALS and proximity sensor")
Signed-off-by: default avatarMathieu Othacehe <m.othacehe@gmail.com>
Cc: <Stable@vger.kernel.org>
Signed-off-by: default avatarJonathan Cameron <Jonathan.Cameron@huawei.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 7a2ad9f3
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment