Skip to contentSkip to conversation

HID: intel-thc-hid: intel-quicki2c: Fix wrong type casting

PATCH Applied Xinpeng Sun 2 participants 2 messages Oct 9, 2025 – Oct 14, 2025

Subsystems (2)
lore
Share & tools
lore

Xinpeng Sun

author maintainer
#0 lore raw

PATCH 1/1 HID: intel-thc-hid: intel-quicki2c: Fix wrong type casting

The type definition of qcdev->i2c_max_frame_size is already u32, so remove the unnecessary type casting le16_to_cpu.

---
 drivers/hid/intel-thc-hid/intel-quicki2c/pci-quicki2c.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/hid/intel-thc-hid/intel-quicki2c/pci-quicki2c.c +1 -1
index 8433a991e7f4..0156ab391778 100644
@@ -466,7 +466,7 @@ static void quicki2c_dma_adv_enable(struct quicki2c_device *qcdev)
 			dev_warn(qcdev->dev,
 				 "Max frame size is smaller than hid max input length!");
 			thc_i2c_set_rx_max_size(qcdev->thc_hw,
-						le16_to_cpu(qcdev->i2c_max_frame_size));
+						qcdev->i2c_max_frame_size);
 		}
 		thc_i2c_rx_max_size_enable(qcdev->thc_hw, true);
 	}
Signature · 1 line
2.40.1