* [PATCH] HID: intel-thc-hid: intel-quicki2c: Fix wrong type casting
@ 2025-10-09 3:31 Xinpeng Sun
2025-10-14 9:27 ` Jiri Kosina
0 siblings, 1 reply; 2+ messages in thread
From: Xinpeng Sun @ 2025-10-09 3:31 UTC (permalink / raw)
To: jikos, bentiss
Cc: srinivas.pandruvada, even.xu, linux-input, linux-kernel,
Xinpeng Sun, kernel test robot
The type definition of qcdev->i2c_max_frame_size is already
u32, so remove the unnecessary type casting le16_to_cpu.
Signed-off-by: Xinpeng Sun <xinpeng.sun@intel.com>
Reported-by: kernel test robot <lkp@intel.com>
Closes: https://lore.kernel.org/oe-kbuild-all/202509280841.pxmgBzKW-lkp@intel.com/
---
drivers/hid/intel-thc-hid/intel-quicki2c/pci-quicki2c.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/hid/intel-thc-hid/intel-quicki2c/pci-quicki2c.c b/drivers/hid/intel-thc-hid/intel-quicki2c/pci-quicki2c.c
index 8433a991e7f4..0156ab391778 100644
--- a/drivers/hid/intel-thc-hid/intel-quicki2c/pci-quicki2c.c
+++ b/drivers/hid/intel-thc-hid/intel-quicki2c/pci-quicki2c.c
@@ -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);
}
--
2.40.1
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [PATCH] HID: intel-thc-hid: intel-quicki2c: Fix wrong type casting
2025-10-09 3:31 [PATCH] HID: intel-thc-hid: intel-quicki2c: Fix wrong type casting Xinpeng Sun
@ 2025-10-14 9:27 ` Jiri Kosina
0 siblings, 0 replies; 2+ messages in thread
From: Jiri Kosina @ 2025-10-14 9:27 UTC (permalink / raw)
To: Xinpeng Sun
Cc: bentiss, srinivas.pandruvada, even.xu, linux-input, linux-kernel,
kernel test robot
On Thu, 9 Oct 2025, Xinpeng Sun wrote:
> The type definition of qcdev->i2c_max_frame_size is already
> u32, so remove the unnecessary type casting le16_to_cpu.
>
> Signed-off-by: Xinpeng Sun <xinpeng.sun@intel.com>
> Reported-by: kernel test robot <lkp@intel.com>
> Closes: https://lore.kernel.org/oe-kbuild-all/202509280841.pxmgBzKW-lkp@intel.com/
Applied to hid.git#for-6.18/upstream-fixes, thanks.
--
Jiri Kosina
SUSE Labs
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2025-10-14 9:27 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2025-10-09 3:31 [PATCH] HID: intel-thc-hid: intel-quicki2c: Fix wrong type casting Xinpeng Sun
2025-10-14 9:27 ` Jiri Kosina
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®