Skip to content

Commit

Permalink
ts27010_mux: made debug level a runtime changeable parameter
Browse files Browse the repository at this point in the history
debug_level is a bit field:

	DBG_DATA	(1<<0)
	DBG_CMD		(1<<1)
	DBG_VERBOSE	(1<<2)

Change-Id: I263ce62091e6f7811a772989d690020db925cde4
Signed-off-by: Erik Gilling <konkers@android.com>
  • Loading branch information
Erik Gilling committed Apr 8, 2010
1 parent c85e3ce commit 6476cbd
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions drivers/misc/ts27010mux/ts27010_mux.c
Expand Up @@ -148,6 +148,8 @@ static struct ts0710_con ts0710_connection;

static int debug = 0;

module_param_named(debug_level, debug, int, S_IRUGO | S_IWUSR);

#define ts_debug(level, format, arg...) do { \
if (debug & level) \
pr_debug(format , ## arg); \
Expand Down

0 comments on commit 6476cbd

Please sign in to comment.