lkml.org 
[lkml]   [2024]   [May]   [12]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH v6 4/9] iio: pressure: bmp280: Use unsigned data types for raw sensor data
On Wed,  8 May 2024 18:52:02 +0200
Vasileios Amoiridis <vassilisamir@gmail.com> wrote:

> The raw sensor data that have not been compensated yet cannot be
> signed values, so use unsigned ones. Also, compensated pressure
> values cannot be negative so use unsigned also there.
>
> Also, drop redundant cast of data->t_fine variable from s32 to s32.
>
> Signed-off-by: Vasileios Amoiridis <vassilisamir@gmail.com>
Looks good to me.

Applied.


\
 
 \ /
  Last update: 2024-05-27 18:25    [W:0.109 / U:0.944 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site