[PATCH v6 1/3] MTD : add the common code for GPMI controller driver
Lothar Waßmann
LW at KARO-electronics.de
Tue Apr 26 06:09:21 EDT 2011
Hi,
Huang Shijie writes:
> Hi:
> > Huang Shijie writes:
> >> +/* debug control */
> >> +int gpmi_debug;
> >> +
> > This could be a module_param.
> >
> I think the module_param is not easy to use.
> I want to know the log when the gpmi driver is running, and change the
> log level as soon
> as my need changs.
>
> So I prefer to use the origin method.
>
>
|static int debug;
|module_param(debug, int, S_IRUGO | S_IWUSR);
is all you need to do exactly what you want.
You can write to /sys/module/imx28-gpmi-nfc/parameters/debug at any
time to change the debug level.
Lothar Waßmann
--
___________________________________________________________
Ka-Ro electronics GmbH | Pascalstraße 22 | D - 52076 Aachen
Phone: +49 2408 1402-0 | Fax: +49 2408 1402-10
Geschäftsführer: Matthias Kaussen
Handelsregistereintrag: Amtsgericht Aachen, HRB 4996
www.karo-electronics.de | info at karo-electronics.de
___________________________________________________________
More information about the linux-arm-kernel
mailing list