> > +static char o2_speedup[] = "default"; > > +module_param_string(o2_speedup, o2_speedup, sizeof(o2_speedup), 0444); > > +MODULE_PARM_DESC(o2_speedup, "Use prefetch/burst for O2-bridges: 'on', > > 'off' " > > + "or 'default' (uses recommended behaviour for the detected bridge)"); > > Is using a string module_param the preferred case for such tristates now?
Dunno. What would you suggest? This was the most userfriendly way I came up with, but I am not tied to it. I mainly wanted to avoid stuff like "o2_speedup=2" which a) doesn't tell anything and b) is hard to remember ("Was 0 default or 2?") Regards, Wolfram -- Pengutronix e.K. | Wolfram Sang | Industrial Linux Solutions | http://www.pengutronix.de/ |
signature.asc
Description: Digital signature
_______________________________________________ Linux PCMCIA reimplementation list http://lists.infradead.org/mailman/listinfo/linux-pcmcia