Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp83318pxu; Tue, 24 Nov 2020 19:40:46 -0800 (PST) X-Google-Smtp-Source: ABdhPJx4JU2CxsMOYcmBTjTh5pivfj4mlRgqE0O209222bUdA+89QJ/yorPy8ogfeSWata56rLmU X-Received: by 2002:a05:6402:c05:: with SMTP id co5mr1607901edb.247.1606275646159; Tue, 24 Nov 2020 19:40:46 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1606275646; cv=none; d=google.com; s=arc-20160816; b=t1vYAevZbFZTmVpBzoAjnuN5+Oh1w0bPNJBUUZIp15zRqf3uMi6OpOL42jz8MCL+Q1 SsLOGVpW+crk25ZU50nPKuIq3pwhaRq5wd923SzE/HELUdtom/VU4G0ENinknMc+qLAu qTAzIMouSm4JHxviSUiW3MvEzOBndHyOpy3jeqGGwT1qMDa5LXWwGllyuAn+BKogN7Bm 3bCeGBDtI2WiTv/VFAocARw/fcD3TXtIWE4HivZdoZe3SUotmHp+KxTBuawhFdhu2/rD DbL8cj/uSFyKADJa/MtpBnwI0uV0/TJJfwPNCn8nLEU0i5HB+Dwkxpu74XCezoXCjh6J s/5w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from; bh=WFYEvpUHeiVLRCuJqiOm2d2XS5f0MpvwhfwFJ8y2amE=; b=RHAhmqnRAHjXopPgZGDxGDme3Fdw6uyhWOvsFgUgLA/Babuh+BSUs/5RxVsRnMN1gO 2ixmiaIpU6f4O14zZEXMMWzzt5rTCPvcmt5jxQSmq2nI6WzM1zjSdsZJkg+pgzqier1c tF2KTHrAywAMUcy7SSNnB9wRwHGhop9VfGtfnHD36jHYf/37cBtN7VY/EToKhMa8JODB SmQ5ZWWZysTQbfmvUuaSftZPE8jcKyOPFcLo1VpeQvqqfVkEK2ut1C58Hx/e0eYfoD6x EeuE/vG+iqCPDYaIe6Fgk1+1hhQtL2jVcthWT+nQvYIiNFhjp/ZdKDsAA7TBNci30PtG RDGA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=arm.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id r2si500739ejb.548.2020.11.24.19.40.23; Tue, 24 Nov 2020 19:40:46 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=arm.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727397AbgKYDgc (ORCPT + 99 others); Tue, 24 Nov 2020 22:36:32 -0500 Received: from foss.arm.com ([217.140.110.172]:45998 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725776AbgKYDgb (ORCPT ); Tue, 24 Nov 2020 22:36:31 -0500 Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id 38C1F106F; Tue, 24 Nov 2020 19:36:31 -0800 (PST) Received: from mammon-tx2.austin.arm.com (mammon-tx2.austin.arm.com [10.118.28.62]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPA id 293723F718; Tue, 24 Nov 2020 19:36:31 -0800 (PST) From: Jeremy Linton To: linux-mmc@vger.kernel.org Cc: linux-kernel@vger.kernel.org, adrian.hunter@intel.com, ulf.hansson@linaro.org, Jeremy Linton Subject: [PATCH] mmc: sdhci: Use more concise device_property_read_u64 Date: Tue, 24 Nov 2020 21:36:30 -0600 Message-Id: <20201125033630.603863-1-jeremy.linton@arm.com> X-Mailer: git-send-email 2.26.2 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Since we only need a single u64 the _array form is unnecessarily. Use device_property_read_u64 instead. Signed-off-by: Jeremy Linton --- drivers/mmc/host/sdhci.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/drivers/mmc/host/sdhci.c b/drivers/mmc/host/sdhci.c index feba64fbde16..ad4ae88a7f74 100644 --- a/drivers/mmc/host/sdhci.c +++ b/drivers/mmc/host/sdhci.c @@ -3992,10 +3992,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; -- 2.26.2