]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
HID: Intel-thc-hid: Intel-quicki2c: Use put_unaligned_le16 for __le16 writes
authorEven Xu <even.xu@intel.com>
Tue, 9 Dec 2025 07:52:13 +0000 (15:52 +0800)
committerJiri Kosina <jkosina@suse.com>
Wed, 7 Jan 2026 21:03:47 +0000 (22:03 +0100)
commit678cbaa24f09115352be669884f7775ccd28f757
tree49f263a7a61cd8618280946f117d10f08a9c247b
parentdabc153c79890911b23c93c1dd65e15b53e87740
HID: Intel-thc-hid: Intel-quicki2c: Use put_unaligned_le16 for __le16 writes

Replace memcpy operations with put_unaligned_le16() when writing 16-bit
little-endian values to the write buffer.

This change improves code clarity and ensures proper handling of unaligned
memory access.

Signed-off-by: Even Xu <even.xu@intel.com>
Signed-off-by: Jiri Kosina <jkosina@suse.com>
drivers/hid/intel-thc-hid/intel-quicki2c/quicki2c-protocol.c