Commit 70f3d366 authored by Atharva Tiwari's avatar Atharva Tiwari Committed by Andi Shyti
Browse files

i2c: amd756: Fix endianness handling for word data



Ensure correct handling of "endianness"
for word-sized data in amd756_access

 - Convert word data into little-endian using cpu_to_le16
 - Convert word data from little-endian
   to cpu native format using le16_to_cpu

This fixes poteential issues on big-endian systems and
ensure proper byte ordering for SMBus word transacitions

Signed-off-by: default avatarAtharva Tiwari <evepolonium@gmail.com>
Link: https://lore.kernel.org/r/20250101103422.30523-1-evepolonium@gmail.com


Signed-off-by: default avatarAndi Shyti <andi.shyti@kernel.org>
parent 1ee867e4
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment