Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/hid/hid
Pull HID updates from Jiri Kosina: - syzbot memory corruption fixes for hidraw, Prodikeys, Logitech and Sony drivers from Alan Stern and Roderick Colenbrander - stuck 'fn' key fix for hid-apple from Joao Moreno - proper propagation of EPOLLOUT from hiddev and hidraw, from Fabian Henneke - fixes for handling power management for intel-ish devices with NO_D3 flag set, from Zhang Lixu - extension of supported usage range for customer page, as some Logitech devices are actually making use of it. From Olivier Gay. - hid-multitouch is no longer filtering mice node creation, from Benjamin Tissoires - MobileStudio Pro 13 support, from Ping Cheng - a few other device ID additions and assorted smaller fixes * 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/hid/hid: (27 commits) HID: core: fix dmesg flooding if report field larger than 32bit HID: core: Add printk_once variants to hid_warn() etc HID: core: reformat and reduce hid_printk macros HID: prodikeys: Fix general protection fault during probe HID: wacom: add new MobileStudio Pro 13 support HID: sony: Fix memory corruption issue on cleanup. HID: i2c-hid: modify quirks for weida's devices HID: apple: Fix stuck function keys when using FN HID: sb0540: add support for Creative SB0540 IR receivers HID: Add quirk for HP X500 PIXART OEM mouse HID: logitech-dj: Fix crash when initial logi_dj_recv_query_paired_devices fails hid-logitech-dj: add the new Lightspeed receiver HID: logitech-dj: add support of the G700(s) receiver HID: multitouch: add support for the Smart Tech panel HID: multitouch: do not filter mice nodes HID: do not call hid_set_drvdata(hdev, NULL) in drivers HID: wacom: do not call hid_set_drvdata(hdev, NULL) HID: logitech: Fix general protection fault caused by Logitech driver HID: hidraw: Fix invalid read in hidraw_ioctl HID: wacom: support named keys on older devices ...
This commit is contained in:
@@ -1154,29 +1154,32 @@ int hid_pidff_init(struct hid_device *hid);
|
||||
#define hid_pidff_init NULL
|
||||
#endif
|
||||
|
||||
#define dbg_hid(format, arg...) \
|
||||
#define dbg_hid(fmt, ...) \
|
||||
do { \
|
||||
if (hid_debug) \
|
||||
printk(KERN_DEBUG "%s: " format, __FILE__, ##arg); \
|
||||
printk(KERN_DEBUG "%s: " fmt, __FILE__, ##__VA_ARGS__); \
|
||||
} while (0)
|
||||
|
||||
#define hid_printk(level, hid, fmt, arg...) \
|
||||
dev_printk(level, &(hid)->dev, fmt, ##arg)
|
||||
#define hid_emerg(hid, fmt, arg...) \
|
||||
dev_emerg(&(hid)->dev, fmt, ##arg)
|
||||
#define hid_crit(hid, fmt, arg...) \
|
||||
dev_crit(&(hid)->dev, fmt, ##arg)
|
||||
#define hid_alert(hid, fmt, arg...) \
|
||||
dev_alert(&(hid)->dev, fmt, ##arg)
|
||||
#define hid_err(hid, fmt, arg...) \
|
||||
dev_err(&(hid)->dev, fmt, ##arg)
|
||||
#define hid_notice(hid, fmt, arg...) \
|
||||
dev_notice(&(hid)->dev, fmt, ##arg)
|
||||
#define hid_warn(hid, fmt, arg...) \
|
||||
dev_warn(&(hid)->dev, fmt, ##arg)
|
||||
#define hid_info(hid, fmt, arg...) \
|
||||
dev_info(&(hid)->dev, fmt, ##arg)
|
||||
#define hid_dbg(hid, fmt, arg...) \
|
||||
dev_dbg(&(hid)->dev, fmt, ##arg)
|
||||
#define hid_err(hid, fmt, ...) \
|
||||
dev_err(&(hid)->dev, fmt, ##__VA_ARGS__)
|
||||
#define hid_notice(hid, fmt, ...) \
|
||||
dev_notice(&(hid)->dev, fmt, ##__VA_ARGS__)
|
||||
#define hid_warn(hid, fmt, ...) \
|
||||
dev_warn(&(hid)->dev, fmt, ##__VA_ARGS__)
|
||||
#define hid_info(hid, fmt, ...) \
|
||||
dev_info(&(hid)->dev, fmt, ##__VA_ARGS__)
|
||||
#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
|
||||
|
Reference in New Issue
Block a user