rtc: isl12022: Explicitly use __le16 type for ISL12022_REG_TEMP_L
authorAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Tue, 10 Jan 2023 14:08:03 +0000 (16:08 +0200)
committerAlexandre Belloni <alexandre.belloni@bootlin.com>
Wed, 22 Feb 2023 20:06:30 +0000 (21:06 +0100)
commit93219a4fb8bdf279f749b5eef40bef1bbe805fc3
treebf816f01e5b9f74ea01e6fe18272cc5ad2235286
parentf525b210e9d4dcefb88594d50e426068e62840f4
rtc: isl12022: Explicitly use __le16 type for ISL12022_REG_TEMP_L

We are reading 10-bit value in a 16-bit register in LE format.
Make this explicit by using __le16 type for it and corresponding
conversion function.

Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Acked-by: Rasmus Villemoes <linux@rasmusvillemoes.dk>
Link: https://lore.kernel.org/r/20230110140806.87432-3-andriy.shevchenko@linux.intel.com
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
drivers/rtc/rtc-isl12022.c