]> asedeno.scripts.mit.edu Git - linux.git/commit
mtd: phram: Module parameters add writable permissions
authorXiaoming Ni <nixiaoming@huawei.com>
Sun, 14 Jul 2019 03:57:18 +0000 (11:57 +0800)
committerRichard Weinberger <richard@nod.at>
Sun, 15 Sep 2019 21:50:38 +0000 (23:50 +0200)
commitf3d45ac21e464f24cb97b3f6cc68be8eef7f7b56
tree9d458789ab3536bbf6f3e7194a35f752ec785c19
parent97ef08ae275e388321dcde9190adbaa0c67b93fe
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>
drivers/mtd/devices/phram.c