All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 0/4] HID: Address Coccinelle warnings
@ 2026-07-28  2:57 Chen Changcheng
  2026-07-28  2:57 ` [PATCH 1/4] HID: intel-quicki2c: Use min() macro to simplify code Chen Changcheng
                   ` (3 more replies)
  0 siblings, 4 replies; 7+ messages in thread
From: Chen Changcheng @ 2026-07-28  2:57 UTC (permalink / raw)
  To: bonbons, jikos, bentiss, srinivas.pandruvada, even.xu,
	xinpeng.sun
  Cc: linux-input, linux-kernel, ccc194101, Chen Changcheng

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@kylinos.cn>
---
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


^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2026-07-28  3:06 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-07-28  2:57 [PATCH 0/4] HID: Address Coccinelle warnings Chen Changcheng
2026-07-28  2:57 ` [PATCH 1/4] HID: intel-quicki2c: Use min() macro to simplify code Chen Changcheng
2026-07-28  3:05   ` sashiko-bot
2026-07-28  2:57 ` [PATCH 2/4] HID: sony: " Chen Changcheng
2026-07-28  2:57 ` [PATCH 3/4] HID: picolcd: " Chen Changcheng
2026-07-28  3:06   ` sashiko-bot
2026-07-28  2:57 ` [PATCH 4/4] HID: intel-ish-hid: Use secs_to_jiffies() instead of msecs_to_jiffies(sec * MSEC_PER_SEC) Chen Changcheng

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.