]> git.karo-electronics.de Git - linux-beck.git/commit
staging: wilc1000: Process WARN, INFO options of debug levels from user
authorChandra S Gorentla <csgorentla@gmail.com>
Sat, 15 Aug 2015 06:53:31 +0000 (12:23 +0530)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 17 Aug 2015 19:46:31 +0000 (12:46 -0700)
commit6e3f05bfc02b61adf50709c4a96f07314addeeb6
tree2ba8def3856faa4bacb38291dea2a99690d639b2
parentc4f83a5571981c92b028c8e9a9da827598905059
staging: wilc1000: Process WARN, INFO options of debug levels from user

This patch enables setting the module's debug options WARN and INFO in the
debugfs file 'wilc_debug_level'.  This functionality allows the user to
enable logging of warnings and other information.  Before this change,
writes to this debugfs file set only one option - DEBUG.  Another option
that is enabled by default is ERR.

As a side effect, this patch removes the 'sparse' warning -
'warning: incorrect type in argument 2 (different address spaces)'.

Signed-off-by: Chandra S Gorentla <csgorentla@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/wilc1000/wilc_debugfs.c