From patchwork Tue Jun 26 00:58:45 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Alex Elder X-Patchwork-Id: 139906 Delivered-To: patch@linaro.org Received: by 2002:a2e:970d:0:0:0:0:0 with SMTP id r13-v6csp4617673lji; Mon, 25 Jun 2018 18:01:46 -0700 (PDT) X-Google-Smtp-Source: ADUXVKIa6mjdmWeEYo4b33Hqbfmezfy3XLhvaOV3laB0nmQg2k0hv2EwYVNv1/LeB1Miksjy84/t X-Received: by 2002:a17:902:b08a:: with SMTP id p10-v6mr14830600plr.0.1529974906393; Mon, 25 Jun 2018 18:01:46 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1529974906; cv=none; d=google.com; s=arc-20160816; b=mVfVpwLbinL9TD68TKrP36ImYoM6kTECTVYYKbVgjvidO2p/M+95Wss95p5Suo9HGA 1bDz3aS/WqUqBie6Dxepi5+P0X/grHAIezCnTvoGwnn5I4DS+nTqhe8nIUqNE3nxv/D1 YdzA+ez+Gx1b/doOthGGTAQEGfxnu53cQz9QKXPvZ8nRHSp+POWbCttsTGuKxO4XDJ4J mY4PfLXID9G/r3juikbM5nrLcMMn/qrmd75QX1VvjEex5VSb28uSbs1gLHGk9CSxxOA/ nj+3V2orJt4Jn87fc6qXosMBWJjMXdTgnF2jbzd4jS2Sy+zZwECbUiS0pHR6qCcVFQ/m aLBA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from:dkim-signature:arc-authentication-results; bh=n+sOnaiAnzk1RDU6WjGHWVb8XkDgEeSKO+QskCnkucM=; b=lpNweBVHr0Rl9L0HhOBXLvzT6VvB3JEXIw85+aGxugmYap64Gjxr/qydxB6pyqv2tP IYaufIe57/i3b3fjhLymifRAh5W6tGbjy4qtCGVmitE8/eSXv+Criz4BJ0qwcMW1QKoz 4baHpTJQlay/4QXy4TBoOR6ItUsyd/ocBhhzrWYLr2oyHZVPwhcjQmKkZ6w9ZqAZ6p2G iX1T/C7HaoLTFJF8bepd/CTIAWgMjfAjvi2meV6RtQPZT1IEqpPnsxdMI92VEG6zhjkn CPg9QDdWYxIMWY0z2hqc1g3LU5oeWtbBJ8QMbZoARg738PL5nkdSkuv4bkPq9XdkSv+m vJTw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=ivy95Yi0; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id y15-v6si358699pff.54.2018.06.25.18.01.46; Mon, 25 Jun 2018 18:01:46 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=ivy95Yi0; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S935289AbeFZBBo (ORCPT + 31 others); Mon, 25 Jun 2018 21:01:44 -0400 Received: from mail-io0-f196.google.com ([209.85.223.196]:47008 "EHLO mail-io0-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S934022AbeFZA7D (ORCPT ); Mon, 25 Jun 2018 20:59:03 -0400 Received: by mail-io0-f196.google.com with SMTP id u23-v6so10609288ioc.13 for ; Mon, 25 Jun 2018 17:59:02 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=n+sOnaiAnzk1RDU6WjGHWVb8XkDgEeSKO+QskCnkucM=; b=ivy95Yi0EqPpQYJ8I/RxN1PSs/JcwqSIDlRr1iMc5fhHPhx2Xeuj74vZqM8SlBI08P NXOQNCq1iezmJvoatgaGSGGWQw6B2Z1Glt0zWmz6jC/XBJDvuTifpbMe4vt0QhzGA5HI LID1/KR3h5uQPfgLV1PYSRw3p+clk8v8d7xKg= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=n+sOnaiAnzk1RDU6WjGHWVb8XkDgEeSKO+QskCnkucM=; b=XXai1jh7F+2Cho9YKbcCX+JFRkUObF56EKBDLUkmSb7Tl9lgPTJA0yYMmNFT25J6AK xotkN53GD2RQrLSY7RDkBjEwSz/2cgPTeMA/tG3y5wctMrmQEuGSDZLS+CEOQOFwbbX5 FwLmIuwYXQXxoBwmv7LaZCwScSo3AUdprEpGLuvUKb8c6DGFxEwI8f+6ni0+hTonSess +Ycy8qMj2oa90yylf3haWepwXO6ai9cnEZnjfezvvlh8Y5kS+7nMXfI7scmcr5bEpvlZ Ah8oVW2tDbkqBvCT4us/TyDFhn4k6hdjqyCUNetrmTYHmnKHMXIydFBCQZaHViQgy62w m5LA== X-Gm-Message-State: APt69E2Ut1qjpQd5ArLlMFhIONuPwH0jehx/6yAMe+mRlkafZGoGGXeL EkpTys3D5LX9qGze6JTTlyc3FQ== X-Received: by 2002:a6b:3942:: with SMTP id g63-v6mr11547178ioa.225.1529974742442; Mon, 25 Jun 2018 17:59:02 -0700 (PDT) Received: from localhost.localdomain (c-71-195-29-92.hsd1.mn.comcast.net. [71.195.29.92]) by smtp.gmail.com with ESMTPSA id f193-v6sm372556itf.9.2018.06.25.17.59.01 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 25 Jun 2018 17:59:02 -0700 (PDT) From: Alex Elder To: andy.gross@linaro.org Cc: clew@codeaurora.org, aneela@codeaurora.org, david.brown@linaro.org, linux-arm-msm@vger.kernel.org, linux-soc@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH resend 01/12] soc: qcom: smem: rename variable in qcom_smem_get_global() Date: Mon, 25 Jun 2018 19:58:45 -0500 Message-Id: <20180626005856.14174-2-elder@linaro.org> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20180626005856.14174-1-elder@linaro.org> References: <20180626005856.14174-1-elder@linaro.org> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Rename the variable "area" to be "region" in qcom_smem_get_global(), so its name better matches its type. Signed-off-by: Alex Elder --- drivers/soc/qcom/smem.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) -- 2.17.1 diff --git a/drivers/soc/qcom/smem.c b/drivers/soc/qcom/smem.c index 70b2ee80d6bd..c46bb43c0f3d 100644 --- a/drivers/soc/qcom/smem.c +++ b/drivers/soc/qcom/smem.c @@ -277,7 +277,7 @@ struct qcom_smem { u32 item_count; unsigned num_regions; - struct smem_region regions[0]; + struct smem_region regions[]; }; static void * @@ -494,7 +494,7 @@ static void *qcom_smem_get_global(struct qcom_smem *smem, size_t *size) { struct smem_header *header; - struct smem_region *area; + struct smem_region *region; struct smem_global_entry *entry; u32 aux_base; unsigned i; @@ -507,12 +507,12 @@ static void *qcom_smem_get_global(struct qcom_smem *smem, aux_base = le32_to_cpu(entry->aux_base) & AUX_BASE_MASK; for (i = 0; i < smem->num_regions; i++) { - area = &smem->regions[i]; + region = &smem->regions[i]; - if (area->aux_base == aux_base || !aux_base) { + if (region->aux_base == aux_base || !aux_base) { if (size != NULL) *size = le32_to_cpu(entry->size); - return area->virt_base + le32_to_cpu(entry->offset); + return region->virt_base + le32_to_cpu(entry->offset); } }