input: misc: aw8697_haptic: Stay quiet when we're not debugging, please
* This driver abuses pr_info() and pr_err() a lot for printing debugging purpose messages, thus making dmesg full of those * It'd be a big task to resolve all of these properly, let's simply just NOP out the print functions Change-Id: Ifa62e99c3fadebd51ad5db0f28cec0dce5da6656
This commit is contained in:
committed by
Sebastiano Barezzi
parent
bff7c24cca
commit
cdf7ef19af
@@ -72,23 +72,28 @@
|
|||||||
/********************************************
|
/********************************************
|
||||||
* print information control
|
* print information control
|
||||||
*******************************************/
|
*******************************************/
|
||||||
|
#if 0
|
||||||
#define aw_pr_err(format, ...) \
|
#define aw_pr_err(format, ...) \
|
||||||
pr_err(format, ##__VA_ARGS__)
|
pr_err(format, ##__VA_ARGS__)
|
||||||
|
|
||||||
#define aw_pr_info(format, ...) \
|
#define aw_pr_info(format, ...) \
|
||||||
pr_info(format, ##__VA_ARGS__)
|
pr_info(format, ##__VA_ARGS__)
|
||||||
|
|
||||||
#define aw_pr_debug(format, ...) \
|
#define aw_pr_debug(format, ...) \
|
||||||
pr_debug(format, ##__VA_ARGS__)
|
pr_debug(format, ##__VA_ARGS__)
|
||||||
|
|
||||||
#define aw_dev_err(dev, format, ...) \
|
#define aw_dev_err(dev, format, ...) \
|
||||||
pr_err("[%s]" format, dev_name(dev), ##__VA_ARGS__)
|
pr_err("[%s]" format, dev_name(dev), ##__VA_ARGS__)
|
||||||
|
|
||||||
#define aw_dev_info(dev, format, ...) \
|
#define aw_dev_info(dev, format, ...) \
|
||||||
pr_info("[%s]" format, dev_name(dev), ##__VA_ARGS__)
|
pr_info("[%s]" format, dev_name(dev), ##__VA_ARGS__)
|
||||||
|
|
||||||
#define aw_dev_dbg(dev, format, ...) \
|
#define aw_dev_dbg(dev, format, ...) \
|
||||||
pr_debug("[%s]" format, dev_name(dev), ##__VA_ARGS__)
|
pr_debug("[%s]" format, dev_name(dev), ##__VA_ARGS__)
|
||||||
|
#else
|
||||||
|
#define aw_pr_err(format, ...)
|
||||||
|
#define aw_pr_info(format, ...)
|
||||||
|
#define aw_pr_debug(format, ...)
|
||||||
|
#define aw_dev_err(dev, format, ...)
|
||||||
|
#define aw_dev_info(dev, format, ...)
|
||||||
|
#define aw_dev_dbg(dev, format, ...)
|
||||||
|
#endif
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* trig default high level
|
* trig default high level
|
||||||
* ___________ _________________
|
* ___________ _________________
|
||||||
|
|||||||
Reference in New Issue
Block a user