]> git.baikalelectronics.ru Git - kernel.git/commit
iio: st_sensors: Use get_unaligned_be24() and sign_extend32()
authorAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Tue, 21 Apr 2020 00:31:35 +0000 (03:31 +0300)
committerJonathan Cameron <Jonathan.Cameron@huawei.com>
Sun, 3 May 2020 08:47:21 +0000 (09:47 +0100)
commit5b000592178ea825e3094f793b50dd3e3ae659f0
treea3d17e0ee007080bee29c66b813923bf9dd7764d
parent169706e066a0c44397e010af7a8f7c0955575950
iio: st_sensors: Use get_unaligned_be24() and sign_extend32()

Use these functions instead of open-coding them.

Cc: Denis Ciocca <denis.ciocca@st.com>
Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
drivers/iio/common/st_sensors/st_sensors_core.c