From b967c4b9a103f80608fffb8d3145bb3fb4a3ea63 Mon Sep 17 00:00:00 2001 From: Wolfram Sang Date: Tue, 14 Jan 2025 11:07:03 +0100 Subject: [PATCH] Revert "i2c: amd756: Fix endianness handling for word data" This reverts commit 70f3d3669c074efbcee32867a1ab71f5f7ead385. We concluded that removing the comments is the right thing to do. This will be done by an incremental patch. Signed-off-by: Wolfram Sang --- drivers/i2c/busses/i2c-amd756.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/drivers/i2c/busses/i2c-amd756.c b/drivers/i2c/busses/i2c-amd756.c index e551d63e96b1..fa0d5a2c3732 100644 --- a/drivers/i2c/busses/i2c-amd756.c +++ b/drivers/i2c/busses/i2c-amd756.c @@ -31,7 +31,6 @@ #include #include #include -#include /* AMD756 SMBus address offsets */ #define SMB_ADDR_OFFSET 0xE0 @@ -212,7 +211,7 @@ static s32 amd756_access(struct i2c_adapter * adap, u16 addr, SMB_HOST_ADDRESS); outb_p(command, SMB_HOST_COMMAND); if (read_write == I2C_SMBUS_WRITE) - outw_p(cpu_to_le16((u16)data->word), SMB_HOST_DATA); + outw_p(data->word, SMB_HOST_DATA); /* TODO: endian???? */ size = AMD756_WORD_DATA; break; case I2C_SMBUS_BLOCK_DATA: @@ -257,7 +256,7 @@ static s32 amd756_access(struct i2c_adapter * adap, u16 addr, data->byte = inw_p(SMB_HOST_DATA); break; case AMD756_WORD_DATA: - data->word = (u16)le16_to_cpu(inw_p(SMB_HOST_DATA)); + data->word = inw_p(SMB_HOST_DATA); /* TODO: endian???? */ break; case AMD756_BLOCK_DATA: data->block[0] = inw_p(SMB_HOST_DATA) & 0x3f; -- 2.25.1