projects
/
GitHub
/
MotorolaMobilityLLC
/
kernel-slsi.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
206c5f6
)
mmc: block: add newline to sysfs display of force_ro
author
Baruch Siach
<baruch@tkos.co.il>
Mon, 22 Sep 2014 07:12:51 +0000
(10:12 +0300)
committer
Ulf Hansson
<ulf.hansson@linaro.org>
Mon, 10 Nov 2014 11:40:24 +0000
(12:40 +0100)
Make force_ro consistent with other sysfs entries.
Fixes:
371a689f64b0d
('mmc: MMC boot partitions support')
Cc: Andrei Warkentin <andrey.warkentin@gmail.com>
Signed-off-by: Baruch Siach <baruch@tkos.co.il>
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
drivers/mmc/card/block.c
patch
|
blob
|
blame
|
history
diff --git
a/drivers/mmc/card/block.c
b/drivers/mmc/card/block.c
index 1fa4c80ff88639e894ba8276387cb73cfbd3b93b..a11451f4f408da8a226494e97adf2439a0986b2c 100644
(file)
--- a/
drivers/mmc/card/block.c
+++ b/
drivers/mmc/card/block.c
@@
-260,7
+260,7
@@
static ssize_t force_ro_show(struct device *dev, struct device_attribute *attr,
int ret;
struct mmc_blk_data *md = mmc_blk_get(dev_to_disk(dev));
- ret = snprintf(buf, PAGE_SIZE, "%d",
+ ret = snprintf(buf, PAGE_SIZE, "%d
\n
",
get_disk_ro(dev_to_disk(dev)) ^
md->read_only);
mmc_blk_put(md);