Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

mtd: phram: Module parameters add writable permissions

The phram code implements managing multiple devices through a linked
list.
However, due to the module parameter permission of 0, the
/sys/module/phram/parameters/phram interface is missing.
The command line arguments in insmod can only create one device.

Therefore, add writable permissions to the module parameters, create
/sys/module/phram/parameters/phram interface, and create multi-device
support.

Signed-off-by: Xiaoming Ni <nixiaoming@huawei.com>
Signed-off-by: Richard Weinberger <richard@nod.at>

authored by

Xiaoming Ni and committed by
Richard Weinberger
f3d45ac2 97ef08ae

+1 -1
+1 -1
drivers/mtd/devices/phram.c
··· 294 294 #endif 295 295 } 296 296 297 - module_param_call(phram, phram_param_call, NULL, NULL, 000); 297 + module_param_call(phram, phram_param_call, NULL, NULL, 0200); 298 298 MODULE_PARM_DESC(phram, "Memory region to map. \"phram=<name>,<start>,<length>\""); 299 299 300 300