From patchwork Wed Nov 25 03:36:30 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jeremy Linton X-Patchwork-Id: 332351 Delivered-To: patch@linaro.org Received: by 2002:a92:5e16:0:0:0:0:0 with SMTP id s22csp107614ilb; Tue, 24 Nov 2020 19:36:32 -0800 (PST) X-Google-Smtp-Source: ABdhPJz2mcZ8kC0QDXAtJ6s2CSoCa4soCXohbeVzCaijoCBGED0lH63yFqYiwnbI7GcGtjihkYet X-Received: by 2002:a50:8e0e:: with SMTP id 14mr1504708edw.171.1606275392686; Tue, 24 Nov 2020 19:36:32 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1606275392; cv=none; d=google.com; s=arc-20160816; b=JK+tekZNYLKkmPQfMNPa9PpJUuynMEoRhk0ro0wX23RxlmxxK9dJ/851rIQ6E2dzxL C9JJJ5l5yAcoePEQ0e0Esr9805f7XDo6enJnMPEB6p50Vx20YWM+PDt4IBbZJYgj4kWD FUAEmqSkatFdYv5o63kRjNtXtG/nUoTXti9e2KpVy6CT7yDwsHOCluEqH8aItMHhZdTH LC+hUvVp9R01OefhNNp+G2lNuM/0dSV+ovPzpP1bfiDIghdMMlzNqsyXXB3+KFBzhGNA BYzbsDcU22o9G0HAUpusroApvwQnxGm0fHiLlCoy53j23AaSA6X/nwjErUsphG94Mxbe Gt3w== 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=vl5jIrWk3RIr1XBuTxZ1alr0R3SOq27Ta2f25lNh++MF8w/U39uEM3df41bX0fqx56 8OG9QV3tzdlUId3H+wQ1vznDU4ZzQ7GmndmL0/xDz5+1mNg87GdnQ99F4VE1pYSHrv6t J/NikB0CHMo3ZGi4tSh46h1CU+ghVMaVq6XPma5H8ztjDcEKLeawz+8A9jbFv8MJuslW ioqm2utEmP2E3Pkw5y4odA03YnRLtK2a1fxRFmRSp1sUn1NzyMyHKUFK8ft1vhLuY9WB de1Te2XUzyhSmOf7JY/Y8voX/YjeDVXhNY5Igikx488/VC9yc6A0BjzPGjUKaidKF2o/ YAew== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-mmc-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-mmc-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 y2si466864edu.46.2020.11.24.19.36.32; Tue, 24 Nov 2020 19:36:32 -0800 (PST) Received-SPF: pass (google.com: domain of linux-mmc-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-mmc-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-mmc-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 S1727368AbgKYDgc (ORCPT + 4 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 Precedence: bulk List-ID: X-Mailing-List: linux-mmc@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(-) -- 2.26.2 Acked-by: Adrian Hunter 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;