History

HID: core: Add printk_once variants to hid_warn() etc

hid_warn_once() is needed. Add the others as part of the block.

Joshua Clayton committed 7 years ago

Commit aaeabb11 parent 337c22a1 file · +11 −0Browse files

Unified · Split

include/linux/hid.h+11−0
@@ -1171,4 +1171,15 @@ do { \ · 1170 unmodified lines
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

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t