diff options
author | Joshua Clayton <stillcompiling@gmail.com> | 2019-08-12 09:20:21 -0600 |
---|---|---|
committer | Benjamin Tissoires <benjamin.tissoires@redhat.com> | 2019-09-18 15:58:13 +0200 |
commit | aaeabb121a6271775cef35ec3197e9ef124fdb2a (patch) | |
tree | 1a69ec96356ec4984bebffde2c67b822626e1037 /include/linux/hid.h | |
parent | 337c22ab1d4f316f37e7a7c78bdea3d768270542 (diff) | |
download | lwn-aaeabb121a6271775cef35ec3197e9ef124fdb2a.tar.gz lwn-aaeabb121a6271775cef35ec3197e9ef124fdb2a.zip |
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>
Diffstat (limited to 'include/linux/hid.h')
-rw-r--r-- | include/linux/hid.h | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/include/linux/hid.h b/include/linux/hid.h index e6c7efdb0458..cd41f209043f 100644 --- a/include/linux/hid.h +++ b/include/linux/hid.h @@ -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 |