All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] mmc: core: make SPI CRC flag readable from /sys/module
@ 2013-09-10 16:41 Ben Gardiner
  0 siblings, 0 replies; only message in thread
From: Ben Gardiner @ 2013-09-10 16:41 UTC (permalink / raw)
  To: Chris Ball, Ulf Hansson, linux-mmc
  Cc: Johan Rudholm, Konstantin Dorfman, Seungwon Jeon, linux-kernel

Make the use_spi_crc module parameter read only in sysfs.

Signed-off-by: Ben Gardiner <ben.l.gardiner@gmail.com>
---
 drivers/mmc/core/core.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/mmc/core/core.c b/drivers/mmc/core/core.c
index 49a5bca..93f64b3 100644
--- a/drivers/mmc/core/core.c
+++ b/drivers/mmc/core/core.c
@@ -60,7 +60,7 @@ static const unsigned freqs[] = { 400000, 300000, 200000, 100000 };
  * So we allow it it to be disabled.
  */
 bool use_spi_crc = 1;
-module_param(use_spi_crc, bool, 0);
+module_param(use_spi_crc, bool, 0444);
 
 /*
  * We normally treat cards as removed during suspend if they are not
-- 
1.8.1.2


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

only message in thread, other threads:[~2013-09-10 16:42 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-09-10 16:41 [PATCH] mmc: core: make SPI CRC flag readable from /sys/module Ben Gardiner

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.