diff options
author | Atharva Tiwari <evepolonium@gmail.com> | 2025-01-01 16:04:22 +0530 |
---|---|---|
committer | Andi Shyti <andi.shyti@kernel.org> | 2025-01-07 23:46:11 +0100 |
commit | 70f3d3669c074efbcee32867a1ab71f5f7ead385 (patch) | |
tree | aaf81c59c928d048ed5a829a3396e0e9e62689d7 /tools/perf/scripts/python/export-to-postgresql.py | |
parent | 1ee867e465c1b0216ec02d4c0d334c4e89919cec (diff) |
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: Atharva Tiwari <evepolonium@gmail.com>
Link: https://lore.kernel.org/r/20250101103422.30523-1-evepolonium@gmail.com
Signed-off-by: Andi Shyti <andi.shyti@kernel.org>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions