usb: musb: get rid of MUSB_LOGLEVEL and use parameter
We can change debugging level on the fly via /sys/module/musb_hdrc/parameters/debug. We can also get rid of the LOGLEVEL facility in Kconfig and rely only in module parameter. Cc: Anand Gadiyar <gadiyar@ti.com> Cc: Bryan Wu <bryan.wu@analog.com> Cc: David Brownell <david-b@pacbell.net> Signed-off-by: Felipe Balbi <felipe.balbi@nokia.com> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
This commit is contained in:
committed by
Greg Kroah-Hartman
parent
746cdd0b2d
commit
e8164f64ca
@@ -114,23 +114,14 @@
|
||||
|
||||
|
||||
|
||||
#if MUSB_DEBUG > 0
|
||||
unsigned debug = MUSB_DEBUG;
|
||||
module_param(debug, uint, 0);
|
||||
MODULE_PARM_DESC(debug, "initial debug message level");
|
||||
|
||||
#define MUSB_VERSION_SUFFIX "/dbg"
|
||||
#endif
|
||||
unsigned debug;
|
||||
module_param(debug, uint, S_IRUGO | S_IWUSR);
|
||||
MODULE_PARM_DESC(debug, "Debug message level. Default = 0");
|
||||
|
||||
#define DRIVER_AUTHOR "Mentor Graphics, Texas Instruments, Nokia"
|
||||
#define DRIVER_DESC "Inventra Dual-Role USB Controller Driver"
|
||||
|
||||
#define MUSB_VERSION_BASE "6.0"
|
||||
|
||||
#ifndef MUSB_VERSION_SUFFIX
|
||||
#define MUSB_VERSION_SUFFIX ""
|
||||
#endif
|
||||
#define MUSB_VERSION MUSB_VERSION_BASE MUSB_VERSION_SUFFIX
|
||||
#define MUSB_VERSION "6.0"
|
||||
|
||||
#define DRIVER_INFO DRIVER_DESC ", v" MUSB_VERSION
|
||||
|
||||
|
Reference in New Issue
Block a user