Home
last modified time | relevance | path

Searched hist:aae6f016a7928edc79dff78d1235103fff282a34 (Results 1 – 1 of 1) sorted by relevance

/rk3399_rockchip-uboot/drivers/mmc/
H A Dsdhci-cadence.caae6f016a7928edc79dff78d1235103fff282a34 Thu Jun 22 08:58:09 UTC 2017 Masahiro Yamada <yamada.masahiro@socionext.com> mmc: cadence: use fdt32_t for DT property value to fix sparse warning

DTB is encoded in big endian. When we retrieve property values,
we need to use fdt32_to_cpu (aka be32_to_cpu) for endian conversion.
This is a bit error-prone, but sparse is useful to detect endian
mismatch.

We need to use (fdt32_t *) instead of (u32 *) for a pointer of a
property value. Otherwise sparse warns "cast to restricted __be32".

Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com>
Signed-off-by: Jaehoon Chung <jh80.chung@samsung.com>