[PATCH 0/4] HID: Address Coccinelle warnings
From: Chen Changcheng
Date: Mon Jul 27 2026 - 23:01:58 EST
This series addresses four Coccinelle-detected code style issues in
the HID subsystem:
- Replace open-coded min() logic with the standard min() macro (3 files)
- Use secs_to_jiffies() instead of msecs_to_jiffies(sec * MSEC_PER_SEC)
All changes are straightforward, no functional changes intended.
./hid-sony.c:970:21-23: WARNING opportunity for min()
./hid-picolcd_debugfs.c:89:17-18: WARNING opportunity for min()
./intel-thc-hid/intel-quicki2c/pci-quicki2c.c:213:22-24: WARNING opportunity for min()
./intel-thc-hid/intel-quicki2c/pci-quicki2c.c:218:22-24: WARNING opportunity for min()
./intel-ish-hid/ishtp/ishtp-dev.h:272:25-28: WARNING opportunity for secs_to_jiffies()
Signed-off-by: Chen Changcheng <chenchangcheng@xxxxxxxxxx>
---
Chen Changcheng (4):
HID: intel-quicki2c: Use min() macro to simplify code
HID: sony: Use min() macro to simplify code
HID: picolcd: Use min() macro to simplify code
HID: intel-ish-hid: Use secs_to_jiffies() instead of
msecs_to_jiffies(sec * MSEC_PER_SEC)
drivers/hid/hid-picolcd_debugfs.c | 2 +-
drivers/hid/hid-sony.c | 2 +-
drivers/hid/intel-ish-hid/ishtp/ishtp-dev.h | 2 +-
.../hid/intel-thc-hid/intel-quicki2c/pci-quicki2c.c | 11 ++---------
4 files changed, 5 insertions(+), 12 deletions(-)
base-commit: f5098b6bae761e346ebcd9da7f95622c04733cff
--
2.25.1