commit | 6cefe06135162b133201c6e882a6843d19e28fe2 | [log] [tgz] |
---|---|---|
author | Cristina Ciocan <cristina.ciocan@intel.com> | Tue Nov 11 16:07:42 2014 +0200 |
committer | chrmhoffmann <chrmhoffmann@gmail.com> | Sun Apr 05 10:21:00 2020 +0200 |
tree | 67bcf9642f7922da41ddf46a9db3da343bdde0cc | |
parent | b32d3f03be5f5dbee8cd2701c1d41d26fa0ae52f [diff] |
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: ade7ef7ba (staging:iio: Differential channel handling) Signed-off-by: Cristina Ciocan <cristina.ciocan@intel.com> Signed-off-by: Jonathan Cameron <jic23@kernel.org> Signed-off-by: Zefan Li <lizefan@huawei.com>