mirror of
https://github.com/raspberrypi/linux.git
synced 2025-12-06 01:49:46 +00:00
HID: core: Add printk_ratelimited variants to hid_warn() etc
hid_warn_ratelimited() is needed. Add the others as part of the block. Signed-off-by: Vicki Pfau <vi@endrift.com> Signed-off-by: Jiri Kosina <jkosina@suse.com>
This commit is contained in:
@@ -1292,4 +1292,15 @@ void hid_quirks_exit(__u16 bus);
|
||||
#define hid_dbg_once(hid, fmt, ...) \
|
||||
dev_dbg_once(&(hid)->dev, fmt, ##__VA_ARGS__)
|
||||
|
||||
#define hid_err_ratelimited(hid, fmt, ...) \
|
||||
dev_err_ratelimited(&(hid)->dev, fmt, ##__VA_ARGS__)
|
||||
#define hid_notice_ratelimited(hid, fmt, ...) \
|
||||
dev_notice_ratelimited(&(hid)->dev, fmt, ##__VA_ARGS__)
|
||||
#define hid_warn_ratelimited(hid, fmt, ...) \
|
||||
dev_warn_ratelimited(&(hid)->dev, fmt, ##__VA_ARGS__)
|
||||
#define hid_info_ratelimited(hid, fmt, ...) \
|
||||
dev_info_ratelimited(&(hid)->dev, fmt, ##__VA_ARGS__)
|
||||
#define hid_dbg_ratelimited(hid, fmt, ...) \
|
||||
dev_dbg_ratelimited(&(hid)->dev, fmt, ##__VA_ARGS__)
|
||||
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user