Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

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.

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/
Signed-off-by: Jiri Kosina <jkosina@suse.com>

authored by

Xinpeng Sun and committed by
Jiri Kosina
6c26c055 54ba6d9b

+1 -1
+1 -1
drivers/hid/intel-thc-hid/intel-quicki2c/pci-quicki2c.c
··· 466 466 dev_warn(qcdev->dev, 467 467 "Max frame size is smaller than hid max input length!"); 468 468 thc_i2c_set_rx_max_size(qcdev->thc_hw, 469 - le16_to_cpu(qcdev->i2c_max_frame_size)); 469 + qcdev->i2c_max_frame_size); 470 470 } 471 471 thc_i2c_rx_max_size_enable(qcdev->thc_hw, true); 472 472 }