]> www.infradead.org Git - users/jedix/linux-maple.git/commit
HID: appletb-kbd: Use secs_to_jiffies() instead of msecs_to_jiffies()
authorThorsten Blum <thorsten.blum@linux.dev>
Mon, 7 Apr 2025 08:29:30 +0000 (10:29 +0200)
committerJiri Kosina <jkosina@suse.com>
Thu, 24 Apr 2025 10:20:10 +0000 (12:20 +0200)
commit663704db954796c6905c5c34321eb6dba1559404
tree932de764b5c9f130ae5957a7655090cbf9dbce9a
parent5e06802b426baa2d3c2a5d7784a6d4c2a9338c3e
HID: appletb-kbd: Use secs_to_jiffies() instead of msecs_to_jiffies()

Use secs_to_jiffies() instead of msecs_to_jiffies() and avoid scaling
the module params 'appletb_tb_idle_timeout' and 'appletb_tb_dim_timeout'
to milliseconds. secs_to_jiffies() expands to simpler code and reduces
the size of 'hid-appletb-kbd.ko'.

Reformat the code to silence multiple checkpatch warnings.

No functional changes intended.

Signed-off-by: Thorsten Blum <thorsten.blum@linux.dev>
Reviewed-by: Aditya Garg <gargaditya08@live.com>
Tested-by: Aditya Garg <gargaditya08@live.com>
Signed-off-by: Jiri Kosina <jkosina@suse.com>
drivers/hid/hid-appletb-kbd.c