Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Skip to content
Commit 8743a139 authored by Cristina Ciocan's avatar Cristina Ciocan Committed by Greg Kroah-Hartman
Browse files

iio: Fix IIO_EVENT_CODE_EXTRACT_DIR bit mask



commit ccf54555da9a5e91e454b909ca6a5303c7d6b910 upstream.

The direction field is set on 7 bits, thus we need to AND it with 0111 111 mask
in order to retrieve it, that is 0x7F, not 0xCF as it is now.

Fixes: ade7ef7b (staging:iio: Differential channel handling)
Signed-off-by: default avatarCristina Ciocan <cristina.ciocan@intel.com>
Signed-off-by: default avatarJonathan Cameron <jic23@kernel.org>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 1e7500e0
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