aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/mmc/core/mmc_ops.c
diff options
context:
space:
mode:
authorWinkler, Tomas <tomas.winkler@intel.com>2017-04-02 16:56:03 -0400
committerUlf Hansson <ulf.hansson@linaro.org>2017-04-24 15:42:19 -0400
commit06c9ccb78e68e2e9b69e736fc0a39fb13be49b74 (patch)
tree11c6f82e92001c969de874e0259085b8add92160 /drivers/mmc/core/mmc_ops.c
parent861183f115cd80db7efebf5516f4e7a424c13abd (diff)
mmc: core: add proper be32 annotation
Annotate big endian values correctly and make sparse happy. In mmc_app_send_scr remove scr function parameter as it was updating card->raw_scr anyway. Signed-off-by: Tomas Winkler <tomas.winkler@intel.com> Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
Diffstat (limited to 'drivers/mmc/core/mmc_ops.c')
-rw-r--r--drivers/mmc/core/mmc_ops.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/drivers/mmc/core/mmc_ops.c b/drivers/mmc/core/mmc_ops.c
index 24c58d24c19a..78f75f00efc5 100644
--- a/drivers/mmc/core/mmc_ops.c
+++ b/drivers/mmc/core/mmc_ops.c
@@ -305,7 +305,7 @@ mmc_send_cxd_data(struct mmc_card *card, struct mmc_host *host,
305int mmc_send_csd(struct mmc_card *card, u32 *csd) 305int mmc_send_csd(struct mmc_card *card, u32 *csd)
306{ 306{
307 int ret, i; 307 int ret, i;
308 u32 *csd_tmp; 308 __be32 *csd_tmp;
309 309
310 if (!mmc_host_is_spi(card->host)) 310 if (!mmc_host_is_spi(card->host))
311 return mmc_send_cxd_native(card->host, card->rca << 16, 311 return mmc_send_cxd_native(card->host, card->rca << 16,
@@ -319,7 +319,7 @@ int mmc_send_csd(struct mmc_card *card, u32 *csd)
319 if (ret) 319 if (ret)
320 goto err; 320 goto err;
321 321
322 for (i = 0;i < 4;i++) 322 for (i = 0; i < 4; i++)
323 csd[i] = be32_to_cpu(csd_tmp[i]); 323 csd[i] = be32_to_cpu(csd_tmp[i]);
324 324
325err: 325err:
@@ -330,7 +330,7 @@ err:
330int mmc_send_cid(struct mmc_host *host, u32 *cid) 330int mmc_send_cid(struct mmc_host *host, u32 *cid)
331{ 331{
332 int ret, i; 332 int ret, i;
333 u32 *cid_tmp; 333 __be32 *cid_tmp;
334 334
335 if (!mmc_host_is_spi(host)) { 335 if (!mmc_host_is_spi(host)) {
336 if (!host->card) 336 if (!host->card)
@@ -347,7 +347,7 @@ int mmc_send_cid(struct mmc_host *host, u32 *cid)
347 if (ret) 347 if (ret)
348 goto err; 348 goto err;
349 349
350 for (i = 0;i < 4;i++) 350 for (i = 0; i < 4; i++)
351 cid[i] = be32_to_cpu(cid_tmp[i]); 351 cid[i] = be32_to_cpu(cid_tmp[i]);
352 352
353err: 353err: