[PATCH V2] pcmcia/yenta: add module parameter for O2 speedups

Wolfram Sang w.sang at pengutronix.de
Mon Jan 11 11:38:37 EST 2010


> > +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/  |
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 197 bytes
Desc: Digital signature
URL: <http://lists.infradead.org/pipermail/linux-pcmcia/attachments/20100111/25da2a8d/attachment.sig>


More information about the linux-pcmcia mailing list