From: Aurelio <sk...@us...> - 2007-08-22 17:10:30
|
Update of /cvsroot/zyxel630-11/amedyn2/module In directory sc8-pr-cvs10.sourceforge.net:/tmp/cvs-serv26071 Modified Files: amedyn2.c Log Message: Allow write linetype param on sysfs. Why? Duncan Sands say: it's not very useful, but it does allow you to experiment with different altsettings without unloading the module: write the new altsetting then replug the modem. It might also be useful if you want to plug in a second modem and use a different altsetting for that. Index: amedyn2.c =================================================================== RCS file: /cvsroot/zyxel630-11/amedyn2/module/amedyn2.c,v retrieving revision 1.19 retrieving revision 1.20 diff -C2 -d -r1.19 -r1.20 *** amedyn2.c 19 Aug 2007 23:41:19 -0000 1.19 --- amedyn2.c 22 Aug 2007 17:10:29 -0000 1.20 *************** *** 77,81 **** static int linetype = 0; ! module_param(linetype, uint, 0444); MODULE_PARM_DESC(linetype, "Set phone line type code"); --- 77,81 ---- static int linetype = 0; ! module_param(linetype, uint, S_IRUGO | S_IWUSR); MODULE_PARM_DESC(linetype, "Set phone line type code"); |