summaryrefslogtreecommitdiff
path: root/tools/lib/python
diff options
context:
space:
mode:
authorAntoni Pokusinski <apokusinski01@gmail.com>2025-11-13 01:56:59 +0300
committerJonathan Cameron <Jonathan.Cameron@huawei.com>2025-11-15 21:06:47 +0300
commit47e4b1ca441cc4f1d9db13ff5e9b89e53aae0198 (patch)
tree20b755d6fbcda615dd800fbb9ada84625e45a8c7 /tools/lib/python
parent0de73abe5f5c2b58d66d6dcb7d44df05b0f73684 (diff)
downloadlinux-47e4b1ca441cc4f1d9db13ff5e9b89e53aae0198.tar.xz
iio: mpl3115: use get_unaligned_be24() to retrieve pressure data
The pressure measurement result is arranged as 20-bit unsigned value residing in three 8-bit registers. Hence, it can be retrieved using get_unaligned_be24() and by applying 4-bit shift. Reviewed-by: Marcelo Schmitt <marcelo.schmitt1@gmail.com> Signed-off-by: Antoni Pokusinski <apokusinski01@gmail.com> Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
Diffstat (limited to 'tools/lib/python')
0 files changed, 0 insertions, 0 deletions