Skip to contentSkip to conversation

mmc: core: make SPI CRC flag readable from /sys/module

PATCH New Ben Gardiner 1 participant 1 message Sep 10, 2013 MMC, SD and SDIO

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 mmc: core: make SPI CRC flag readable from /sys/module

Make the use_spi_crc module parameter read only in sysfs.

---
 drivers/mmc/core/core.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/mmc/core/core.c +1 -1
index 49a5bca..93f64b3 100644
@@ -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
Signature · 1 line
1.8.1.2