HID: use standard debug APIs
authorThomas Weißschuh <linux@weissschuh.net>
Fri, 23 Dec 2022 21:30:19 +0000 (21:30 +0000)
committerBenjamin Tissoires <benjamin.tissoires@redhat.com>
Mon, 6 Feb 2023 14:11:45 +0000 (15:11 +0100)
commit3f16ba1c0768de6cdc6f65105757ef04dbfd8e5c
tree0816140d6da532e552305796d5dac94c547da7c9
parentff17bb87601453bb9d50e625d45356f07bcb101c
HID: use standard debug APIs

The custom "debug" module parameter is fairly inflexible.
It can only manage debugging for all calls dbg_hid() at the same time.

Furthermore it creates a mismatch between calls to hid_dbg() which can
be managed by CONFIG_DYNAMIC_DEBUG and dbg_hid() which is managed by the
module parameter.

Furthermore the change to pr_debug() allows the debugging statements to
be completely compiled-out if desired.

Signed-off-by: Thomas Weißschuh <linux@weissschuh.net>
Tested-by: Bastien Nocera <hadess@hadess.net>
Link: https://lore.kernel.org/r/20221223-hid-dbg-v1-1-5dcf8794f7f9@weissschuh.net
Signed-off-by: Benjamin Tissoires <benjamin.tissoires@redhat.com>
drivers/hid/hid-core.c
include/linux/hid.h