diff options
author | Jonathan Cameron <[email protected]> | 2013-12-11 18:45:00 +0000 |
---|---|---|
committer | Jonathan Cameron <[email protected]> | 2013-12-17 20:32:52 +0000 |
commit | c5fe7a41ad51e0c2df8381e9c85d7343b36b2c1e (patch) | |
tree | 5e56a97d67f9bdf2a7884d5c369504914c8f7bbe /tools/perf/util/scripting-engines/trace-event-python.c | |
parent | 128d6637cce0747e21b8936e449b1c78a497b189 (diff) |
staging:iio:mag:hmc5843 fix incorrect endianness of channel as a result of missuse of the IIO_ST macro.
This driver sets the shift value equal to IIO_BE (or 1) rather than setting
that to 0 and specificying the endianness. This means the channel type is
missreported as
[be|le]:u16/16>>1 where the be|le is dependent on the cpu native endianness,
rather than
be:u16/16>>0 resulting in any userspace code using this information, miss
converting the channel and generating thoroughly trashed data.
Signed-off-by: Jonathan Cameron <[email protected]>
Acked-by: Lars-Peter Clausen <[email protected]>
Cc: [email protected]
Diffstat (limited to 'tools/perf/util/scripting-engines/trace-event-python.c')
0 files changed, 0 insertions, 0 deletions