projects
/
GitHub
/
mt8127
/
android_kernel_alcatel_ttab.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
78e4807
)
mmc: use common byte swap macros
author
Pierre Ossman
<drzeus@drzeus.cx>
Sat, 27 Oct 2007 12:41:04 +0000
(14:41 +0200)
committer
Pierre Ossman
<drzeus@drzeus.cx>
Sat, 27 Oct 2007 12:41:04 +0000
(14:41 +0200)
Use the more generic byte swapping macros instead of the socket variants.
Signed-off-by: Pierre Ossman <drzeus@drzeus.cx>
drivers/mmc/core/sd_ops.c
patch
|
blob
|
blame
|
history
diff --git
a/drivers/mmc/core/sd_ops.c
b/drivers/mmc/core/sd_ops.c
index ee4029a24efdb59b87e213e0c431c58f6afdd46b..a6dafe62b992416f00c776f61312c1c9a00b61df 100644
(file)
--- a/
drivers/mmc/core/sd_ops.c
+++ b/
drivers/mmc/core/sd_ops.c
@@
-294,8
+294,8
@@
int mmc_app_send_scr(struct mmc_card *card, u32 *scr)
if (data.error)
return data.error;
- scr[0] =
ntohl
(scr[0]);
- scr[1] =
ntohl
(scr[1]);
+ scr[0] =
be32_to_cpu
(scr[0]);
+ scr[1] =
be32_to_cpu
(scr[1]);
return 0;
}