]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
HID: Intel-thc-hid: Intel-quicki2c: Use size_t for all length variables
authorEven Xu <even.xu@intel.com>
Tue, 9 Dec 2025 07:52:12 +0000 (15:52 +0800)
committerJiri Kosina <jkosina@suse.com>
Wed, 7 Jan 2026 21:03:47 +0000 (22:03 +0100)
commitdabc153c79890911b23c93c1dd65e15b53e87740
tree904d953ca794e824ecafb99e4e34a2fe96fe4066
parentfde4ce068d1bccacf1e2d6a28697a3847f28e0a6
HID: Intel-thc-hid: Intel-quicki2c: Use size_t for all length variables

Convert all length-related variables in the QuickI2C protocol layer to use
size_t type to follow kernel coding conventions.

This includes:
- All buffer length parameters and variables
- Return values of quicki2c_encode_cmd() function which represents
  encoded command buffer size.
- Return values of quicki2c_init_write_buf() function which represents
  process result: either prepared output buffer size or error code.

This change improves type consistency and aligns with standard kernel
practices for memory size representation, reducing potential issues
with size calculations and comparisons.

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-dev.h
drivers/hid/intel-thc-hid/intel-quicki2c/quicki2c-protocol.c
drivers/hid/intel-thc-hid/intel-quicki2c/quicki2c-protocol.h