Files
linux/drivers/input
Dmitry Torokhov 72fe16c61b Input: mms114 - fix endianness portability in I2C packet layout
The driver defines the I2C packet layout using C bitfields in struct
mms114_touch. This is not portable as the layout of bitfields within a
byte is compiler-dependent and varies with endianness. On Big Endian
systems, the fields will be parsed incorrectly.

Fix this by redefining struct mms114_touch with plain u8 fields and
introducing bitwise macros to extract the values portably.

Reported-by: sashiko-bot@kernel.org
Assisted-by: Antigravity:gemini-3.5-flash
Link: https://patch.msgid.link/20260704060115.353049-2-dmitry.torokhov@gmail.com
Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
2026-07-13 19:30:02 -07:00
..
2026-07-13 19:06:00 -07:00
2026-07-13 19:06:00 -07:00
2026-07-13 19:06:00 -07:00
2026-07-13 19:06:00 -07:00
2026-06-10 11:04:17 -07:00
2024-12-17 13:53:52 -08:00