All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] mtd: change perm of module param phram to writable
@ 2019-09-24  8:03 Huaijie Yi
  0 siblings, 0 replies; only message in thread
From: Huaijie Yi @ 2019-09-24  8:03 UTC (permalink / raw)
  To: joern, dwmw2, computersforpeace, marek.vasut, richard.weinberger,
	vigneshr, richard
  Cc: nixiaoming, linux-mtd

we need param phram to be writable to create
multiple device under built-in case. As cmdline
could only set one device, and more devices must
be created by writing "<name>,<start>,<length>"
to /sys/module/phram/parameters/phram

Signed-off-by: Xiaoming Ni <nixiaoming@huawei.com>
Signed-off-by: Huaijie Yi <yihuaijie@huawei.com>
---
 drivers/mtd/devices/phram.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/mtd/devices/phram.c b/drivers/mtd/devices/phram.c
index a5833dd..e3469ec 100644
--- a/drivers/mtd/devices/phram.c
+++ b/drivers/mtd/devices/phram.c
@@ -312,7 +312,7 @@ static int phram_param_call(const char *val, const struct kernel_param *kp)
 #endif
 }
 
-module_param_call(phram, phram_param_call, NULL, NULL, 000);
+module_param_call(phram, phram_param_call, NULL, NULL, 0200);
 MODULE_PARM_DESC(phram, "Memory region to map. \"phram=<name>,<start>,<length>\"");
 
 
-- 
1.8.5.6



______________________________________________________
Linux MTD discussion mailing list
http://lists.infradead.org/mailman/listinfo/linux-mtd/

^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2019-09-24  8:05 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-09-24  8:03 [PATCH] mtd: change perm of module param phram to writable Huaijie Yi

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.