projects
/
platform
/
kernel
/
linux-rpi3.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a05c846
)
mmc: tmio: make a cast explicit
author
Wolfram Sang
<wsa+renesas@sang-engineering.com>
Fri, 27 May 2016 12:10:29 +0000
(14:10 +0200)
committer
Ulf Hansson
<ulf.hansson@linaro.org>
Mon, 25 Jul 2016 08:34:07 +0000
(10:34 +0200)
Sparse complains about the implicit cast. Making it explicit is indeed
better coding style.
Signed-off-by: Wolfram Sang <wsa+renesas@sang-engineering.com>
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
drivers/mmc/host/tmio_mmc.h
patch
|
blob
|
history
diff --git
a/drivers/mmc/host/tmio_mmc.h
b/drivers/mmc/host/tmio_mmc.h
index
1aac2ad
..
7f63ec0
100644
(file)
--- a/
drivers/mmc/host/tmio_mmc.h
+++ b/
drivers/mmc/host/tmio_mmc.h
@@
-259,7
+259,7
@@
static inline void sd_ctrl_write16_rep(struct tmio_mmc_host *host, int addr,
static inline void sd_ctrl_write32_as_16_and_16(struct tmio_mmc_host *host, int addr, u32 val)
{
- writew(val, host->ctl + (addr << host->bus_shift));
+ writew(val
& 0xffff
, host->ctl + (addr << host->bus_shift));
writew(val >> 16, host->ctl + ((addr + 2) << host->bus_shift));
}