[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <20241030235424.214935-1-vassilisamir@gmail.com>
Date: Thu, 31 Oct 2024 00:54:23 +0100
From: Vasileios Amoiridis <vassilisamir@...il.com>
To: dan.carpenter@...aro.org,
jic23@...nel.org
Cc: linux-iio@...r.kernel.org,
linux-kernel@...r.kernel.org,
Vasileios Amoiridis <vassilisamir@...il.com>
Subject: [PATCH v1 0/1] iio: chemical: bme680: resolve issue reported by
According to Dan [1], the previous approach was prone to endianness and
variable initialization issues because of the typecasting of a s32 to
s16 variable. Fix this, by using a local variable and not reusing the
local ones.
[1]: https://lore.kernel.org/linux-iio/13f764f7-4cc4-4563-81f6-0393732729a6@stanley.mountain/
Vasileios Amoiridis (1):
iio: chemical: bme680: use s16 variable for temp value to avoid
casting
drivers/iio/chemical/bme680_core.c | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
--
2.43.0
Powered by blists - more mailing lists