Skip to content

Commit aaeabb1

Browse files
d4ddi0bentiss
authored andcommitted
HID: core: Add printk_once variants to hid_warn() etc
hid_warn_once() is needed. Add the others as part of the block. Signed-off-by: Joshua Clayton <[email protected]> Signed-off-by: Benjamin Tissoires <[email protected]>
1 parent 337c22a commit aaeabb1

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

include/linux/hid.h

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1171,4 +1171,15 @@ do { \
11711171
#define hid_dbg(hid, fmt, ...) \
11721172
dev_dbg(&(hid)->dev, fmt, ##__VA_ARGS__)
11731173

1174+
#define hid_err_once(hid, fmt, ...) \
1175+
dev_err_once(&(hid)->dev, fmt, ##__VA_ARGS__)
1176+
#define hid_notice_once(hid, fmt, ...) \
1177+
dev_notice_once(&(hid)->dev, fmt, ##__VA_ARGS__)
1178+
#define hid_warn_once(hid, fmt, ...) \
1179+
dev_warn_once(&(hid)->dev, fmt, ##__VA_ARGS__)
1180+
#define hid_info_once(hid, fmt, ...) \
1181+
dev_info_once(&(hid)->dev, fmt, ##__VA_ARGS__)
1182+
#define hid_dbg_once(hid, fmt, ...) \
1183+
dev_dbg_once(&(hid)->dev, fmt, ##__VA_ARGS__)
1184+
11741185
#endif

0 commit comments

Comments
 (0)