From: Ben Gardiner <ben.l.gardiner@gmail.com>
To: Chris Ball <cjb@laptop.org>, Ulf Hansson <ulf.hansson@linaro.org>,
linux-mmc@vger.kernel.org
Cc: Johan Rudholm <johan.rudholm@stericsson.com>,
Konstantin Dorfman <kdorfman@codeaurora.org>,
Seungwon Jeon <tgih.jun@samsung.com>,
linux-kernel@vger.kernel.org
Subject: [PATCH] mmc: core: make SPI CRC flag readable from /sys/module
Date: Tue, 10 Sep 2013 12:41:53 -0400 [thread overview]
Message-ID: <1378831313-28089-1-git-send-email-ben.l.gardiner@gmail.com> (raw)
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
reply other threads:[~2013-09-10 16:42 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1378831313-28089-1-git-send-email-ben.l.gardiner@gmail.com \
--to=ben.l.gardiner@gmail.com \
--cc=cjb@laptop.org \
--cc=johan.rudholm@stericsson.com \
--cc=kdorfman@codeaurora.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-mmc@vger.kernel.org \
--cc=tgih.jun@samsung.com \
--cc=ulf.hansson@linaro.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).