mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-07-23 23:32:14 +00:00
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 <stillcompiling@gmail.com> Signed-off-by: Benjamin Tissoires <benjamin.tissoires@redhat.com>
This commit is contained in:
parent
337c22ab1d
commit
aaeabb121a
1 changed files with 11 additions and 0 deletions
|
@ -1171,4 +1171,15 @@ do { \
|
|||
#define hid_dbg(hid, fmt, ...) \
|
||||
dev_dbg(&(hid)->dev, fmt, ##__VA_ARGS__)
|
||||
|
||||
#define hid_err_once(hid, fmt, ...) \
|
||||
dev_err_once(&(hid)->dev, fmt, ##__VA_ARGS__)
|
||||
#define hid_notice_once(hid, fmt, ...) \
|
||||
dev_notice_once(&(hid)->dev, fmt, ##__VA_ARGS__)
|
||||
#define hid_warn_once(hid, fmt, ...) \
|
||||
dev_warn_once(&(hid)->dev, fmt, ##__VA_ARGS__)
|
||||
#define hid_info_once(hid, fmt, ...) \
|
||||
dev_info_once(&(hid)->dev, fmt, ##__VA_ARGS__)
|
||||
#define hid_dbg_once(hid, fmt, ...) \
|
||||
dev_dbg_once(&(hid)->dev, fmt, ##__VA_ARGS__)
|
||||
|
||||
#endif
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue