From patchwork Wed May 2 01:10:08 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Alex Elder X-Patchwork-Id: 134813 Delivered-To: patch@linaro.org Received: by 10.46.151.6 with SMTP id r6csp125617lji; Tue, 1 May 2018 18:13:13 -0700 (PDT) X-Google-Smtp-Source: AB8JxZr+nJtHAo6izJOOBzRoY+KHMOvbQH4EZlP/5M4Mg+Z2cNcPHYPrfAQRsIVVv8ur5pLYSZqX X-Received: by 2002:a17:902:b483:: with SMTP id y3-v6mr17817981plr.157.1525223593403; Tue, 01 May 2018 18:13:13 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1525223593; cv=none; d=google.com; s=arc-20160816; b=FTChq3mdpyw3DMVRSx71JKdgcrX4mRjfri86WpwRH2PrBqOYyMOKpaijZunV1smVNB KvKfknwyzB2kwKdG2emZcJ+fRo/gNH+TZ5SXTlpzpdhHFaubSj3TWrUszkIxhmZvcgeb bQ32MJeOW9YNzI4TDq6tlO7iSWNtU0fYG4hCJNydDT5WIdB6m1GGXlIIdRgdLORitCRC Q427JZy3ugf14M5fpYT3dAKNE9E85/bFsQBkhCR6CF+Lkxy20O32LCoW0fBXEg2jl3zE VwPfS3tZZZLKZlDDAdS9bvlESZoIhnyRW9anqZuGkjH5Qkl2BvrbAhJqeCESA/Gw4CQx Xm9g== 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=Z9nNmN0dv5c10M+05z0AlN8IcSB+hb1/CDmVP0IqYnQ=; b=00p5TYR3exmRgv6r0Ndt1kavUqz2oTO+f3FJIcFxqG4PhYT4k62uU0eKUROZcWKbgu zfOipXeJtDXBf31LXIWu5yZws2JWC73t5767Yu0I7wXU/wx5cR5LQGJm8kVTFajm9YBI ZYvdPVGhh50HQJj0rXprxNjgpv4x8Ip6EpT1L6m3O0tQMZ9nF03shWR7DTYlP4YvG11P f7P5jjhGwTdxFX873VwaW9lklXxo18hSiQISYBXt7h78+dL4XIab2T5KKl8vmIK3Scau 73mmP+lg0aAcudIrP8LVLzZR6ba5lwgtlzJCBlOk5fTRWvlTTnqxA4g+WABK3OGbQlaq 0blw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=OaDVbyvI; 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 w130si10551532pfd.169.2018.05.01.18.13.13; Tue, 01 May 2018 18:13:13 -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=OaDVbyvI; 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 S1751635AbeEBBNK (ORCPT + 29 others); Tue, 1 May 2018 21:13:10 -0400 Received: from mail-io0-f196.google.com ([209.85.223.196]:37747 "EHLO mail-io0-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750969AbeEBBK3 (ORCPT ); Tue, 1 May 2018 21:10:29 -0400 Received: by mail-io0-f196.google.com with SMTP id e20-v6so15588013iof.4 for ; Tue, 01 May 2018 18:10:28 -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=Z9nNmN0dv5c10M+05z0AlN8IcSB+hb1/CDmVP0IqYnQ=; b=OaDVbyvI14PxwZg/AUwTWuGaHKNFvr7TOD2MWulHKNmusqyTm6HqGG+oMkMDsroxE4 OuA67B05PMTk3mBo5eKpJKV/RC5iQGHTI+bSntj6UqwtcflZK3sxY72ZzMou+Gz4ohEy Ws7jaacyBFeexClq4yYYsayYTDUTprex1XxJw= 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=Z9nNmN0dv5c10M+05z0AlN8IcSB+hb1/CDmVP0IqYnQ=; b=iyg8zHPezuJKLmDrBY6m51m+u+5ffgZnyyRp/XFHkMk2RrvMax/rHTGVB+YeAu5S8Y Py+Op3VzQXXXgXZbsRVSMYfHMKUy35hKBe45TBESVPbeUXCwXU7ixUcHDIxlnVF2V550 3XDUZE9UDJ1kUodmPa0YN5BN7UJGx5jD4hFLcipHVTr+6YK+nZW9JP0f8+Zdisx7g7CF I2AjLPwnjXRAT3DP0mlBpUqoo8s2V6O1IUtANFlxHh7Qj5u5lURu9FQKYWuQXrWi9DMB QfPGscIjxv51itpdjQH3hY+cUuQrw0CK5YgriD+edvGNiyfxBfk1wQO8fkQG9zcOSkFP idYg== X-Gm-Message-State: ALQs6tDuomv8z6alWQY2rC2atm2uLUJiYancURU537JeXSituJAdeFLS eQRYP/fbrDfILpQr8zX6f1wSyQ== X-Received: by 2002:a6b:7c9:: with SMTP id g70-v6mr19330913ioi.82.1525223428349; Tue, 01 May 2018 18:10:28 -0700 (PDT) Received: from presto.localdomain (c-71-195-29-92.hsd1.mn.comcast.net. [71.195.29.92]) by smtp.gmail.com with ESMTPSA id g200-v6sm2082479itb.26.2018.05.01.18.10.26 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 01 May 2018 18:10:27 -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 01/12] soc: qcom: smem: rename variable in qcom_smem_get_global() Date: Tue, 1 May 2018 20:10:08 -0500 Message-Id: <20180502011019.22812-2-elder@linaro.org> X-Mailer: git-send-email 2.14.1 In-Reply-To: <20180502011019.22812-1-elder@linaro.org> References: <20180502011019.22812-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.14.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); } }