提交 cb80a7e9 编写于 作者: J Jeremy Linton 提交者: Ulf Hansson

mmc: sdhci: Use more concise device_property_read_u64

Since we only need a single u64 the _array form is
unnecessarily. Use device_property_read_u64 instead.
Signed-off-by: NJeremy Linton <jeremy.linton@arm.com>
Acked-by: NAdrian Hunter <adrian.hunter@intel.com>
Link: https://lore.kernel.org/r/20201125033630.603863-1-jeremy.linton@arm.comSigned-off-by: NUlf Hansson <ulf.hansson@linaro.org>
上级 db29d3d1
......@@ -3994,10 +3994,10 @@ void __sdhci_read_caps(struct sdhci_host *host, const u16 *ver,
if (host->v4_mode)
sdhci_do_enable_v4_mode(host);
device_property_read_u64_array(mmc_dev(host->mmc),
"sdhci-caps-mask", &dt_caps_mask, 1);
device_property_read_u64_array(mmc_dev(host->mmc),
"sdhci-caps", &dt_caps, 1);
device_property_read_u64(mmc_dev(host->mmc),
"sdhci-caps-mask", &dt_caps_mask);
device_property_read_u64(mmc_dev(host->mmc),
"sdhci-caps", &dt_caps);
v = ver ? *ver : sdhci_readw(host, SDHCI_HOST_VERSION);
host->version = (v & SDHCI_SPEC_VER_MASK) >> SDHCI_SPEC_VER_SHIFT;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册