Skip to content

Commit 1d64624

Browse files
endriftJiri Kosina
authored andcommitted
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>
1 parent 1141ed5 commit 1d64624

1 file changed

Lines changed: 11 additions & 0 deletions

File tree

include/linux/hid.h

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1292,4 +1292,15 @@ void hid_quirks_exit(__u16 bus);
12921292
#define hid_dbg_once(hid, fmt, ...) \
12931293
dev_dbg_once(&(hid)->dev, fmt, ##__VA_ARGS__)
12941294

1295+
#define hid_err_ratelimited(hid, fmt, ...) \
1296+
dev_err_ratelimited(&(hid)->dev, fmt, ##__VA_ARGS__)
1297+
#define hid_notice_ratelimited(hid, fmt, ...) \
1298+
dev_notice_ratelimited(&(hid)->dev, fmt, ##__VA_ARGS__)
1299+
#define hid_warn_ratelimited(hid, fmt, ...) \
1300+
dev_warn_ratelimited(&(hid)->dev, fmt, ##__VA_ARGS__)
1301+
#define hid_info_ratelimited(hid, fmt, ...) \
1302+
dev_info_ratelimited(&(hid)->dev, fmt, ##__VA_ARGS__)
1303+
#define hid_dbg_ratelimited(hid, fmt, ...) \
1304+
dev_dbg_ratelimited(&(hid)->dev, fmt, ##__VA_ARGS__)
1305+
12951306
#endif

0 commit comments

Comments
 (0)