Received: by 2002:a5b:505:0:0:0:0:0 with SMTP id o5csp6916162ybp; Wed, 16 Oct 2019 00:35:05 -0700 (PDT) X-Google-Smtp-Source: APXvYqyGWAyxwDT4MwToYAy6BReYpKtLoz/krjiNSaDZrXxZlT+jbQgQdJwcoAX/LQ7ouGnXoXi6 X-Received: by 2002:a50:9a46:: with SMTP id o64mr38431069edb.191.1571211305595; Wed, 16 Oct 2019 00:35:05 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1571211305; cv=none; d=google.com; s=arc-20160816; b=B/iEfLZlpt/n6rqEoVtSdoYH7kiaBbEM62VptdswIEUhjVWHFiCDTw7IMIZUWGQGs3 kCnkbZKgklx06SZxMcTVgjLhlt30aW/LTPF5ILb1XtyO04sROEy8SxdMyxaAE4ERMomH Bmeg1mcOCWmYoDgcBBcvZ/RHDISSYhHwMTatVNip8XGyq7WJ1ZCaoOs0UVIF0Vsa2QeA onrS6kFM5zsLlTiDDOLz9xhokZ9iTyRgYHuMtYisMeF8avCzqRixIVtZGqUu/QLn3HE/ 2ZFcN1+J3TbHp3i1l4C3sUizH0f3lpBLFeaI8AIdKSCSQFBh9k3hSzMU1cR2nD8jZalw neng== 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; bh=NszovcrmeizweFufzZjrkW8f6hhK6QnYuVsht4WHchE=; b=k57ALZY88pQsZmChOVrpRVbV+5E73uA9jSc+8sMDNU8NsZbhqhjnB6k/b+DO/ZU+2D ++trmrwfmy6wJw9mnSwcdG8Rj0wnixLbcIa2zpGdaUuLeySd6jpACTJyi1WVpUxf3d1w Gssf5zHppLF8Z6WbvYA4jM+NmBgqwq/3I3gloCLVq92y38D0kcY7GWtk2+T4osGsUSeD 2eG71+CPZEBjxlL9OlNpkgrCgkpGpFo2YPkkpByDJxuqIqK8klhTt8bzScQHEjU+E0ZC bF9wpF7fLeo8CBdzegqzCaoCKbIdXmss7ekL/a1+xHQGQOq1ccXBQ82D3HgzQFQBR0/n ienQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@broadcom.com header.s=google header.b=MiDaGBSU; 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=QUARANTINE sp=QUARANTINE dis=NONE) header.from=broadcom.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id ck2si14586195ejb.346.2019.10.16.00.34.41; Wed, 16 Oct 2019 00:35:05 -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=@broadcom.com header.s=google header.b=MiDaGBSU; 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=QUARANTINE sp=QUARANTINE dis=NONE) header.from=broadcom.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2390014AbfJOWpz (ORCPT + 99 others); Tue, 15 Oct 2019 18:45:55 -0400 Received: from mail-pl1-f194.google.com ([209.85.214.194]:36868 "EHLO mail-pl1-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1732531AbfJOWpy (ORCPT ); Tue, 15 Oct 2019 18:45:54 -0400 Received: by mail-pl1-f194.google.com with SMTP id u20so10291616plq.4 for ; Tue, 15 Oct 2019 15:45:53 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=broadcom.com; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=NszovcrmeizweFufzZjrkW8f6hhK6QnYuVsht4WHchE=; b=MiDaGBSUt8KaxANsMCLt/lqC4wjaFlMnpMkUl7eV8BUrp00yAkHdwbpj1MErqfLbtd IGrR5a5ucjrZ0ZgOFLgMqVDre1osREK130TeFuIfWhqNhOqezR7cbbCrsvot70LZah4f ekQWx4vDVJkOHSiuYF12fYV/JxInqNfT6FcCU= 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=NszovcrmeizweFufzZjrkW8f6hhK6QnYuVsht4WHchE=; b=K7cnXUXUYfxzmGupoHXfh2EEF7nfYSNHJJ3EflG7/ZV9ncaZthPb4YVZwfk34ssUCi TuOx8F+qkRyiEvdK3GiC/OdSY01fcnrmy8ALbbYKe/oFVLAZCX/SdK3G6McHPfXB61De vH9lQt4pyY0i5eZ9JMiVKzrK/sP8rVPmiaIYYdn85mg2JRcGQnAIwOYqjZdOOn8emFPF FuxwkFcVTT+ScPEWNvz9UetDmF0GzcG3DhyZljk7qK4hjFMzGTCNXh/MGH7F+8jNk45n 2aozwe2CCdE0cdqPMWbm80dvvzLWaYDTM1UN3MeFSunovpIQ55HK+6Embv5o1rviHv6t n3cA== X-Gm-Message-State: APjAAAX/3KKwGdLnsD5izN5SUZNFCPkzwJ/C2/f6LC3Fg3Ae60zv0Qn0 pKsZlGTTEOqFPQjwQi9DdrOcFg== X-Received: by 2002:a17:902:d204:: with SMTP id t4mr35234943ply.253.1571179553270; Tue, 15 Oct 2019 15:45:53 -0700 (PDT) Received: from lbrmn-mmayer.ric.broadcom.com ([192.19.228.250]) by smtp.gmail.com with ESMTPSA id e127sm23019837pfe.37.2019.10.15.15.45.51 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 15 Oct 2019 15:45:52 -0700 (PDT) From: Markus Mayer To: Brian Norris , Florian Fainelli , Gregory Fong Cc: Markus Mayer , Broadcom Kernel List , ARM Kernel List , Linux Kernel Mailing List Subject: [PATCH 1/8] memory: brcmstb: dpfe: rename struct private_data Date: Tue, 15 Oct 2019 15:45:06 -0700 Message-Id: <20191015224513.16969-2-mmayer@broadcom.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20191015224513.16969-1-mmayer@broadcom.com> References: <20191015224513.16969-1-mmayer@broadcom.com> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org To avoid potential (future) conflicts with other data structures we rename "struct private_data" to "struct brcmstb_dpfe_priv". Signed-off-by: Markus Mayer --- drivers/memory/brcmstb_dpfe.c | 28 ++++++++++++++-------------- 1 file changed, 14 insertions(+), 14 deletions(-) diff --git a/drivers/memory/brcmstb_dpfe.c b/drivers/memory/brcmstb_dpfe.c index 6827ed484750..0c4c01d2bf48 100644 --- a/drivers/memory/brcmstb_dpfe.c +++ b/drivers/memory/brcmstb_dpfe.c @@ -180,7 +180,7 @@ struct dpfe_api { }; /* Things we need for as long as we are active. */ -struct private_data { +struct brcmstb_dpfe_priv { void __iomem *regs; void __iomem *dmem; void __iomem *imem; @@ -343,7 +343,7 @@ static unsigned int get_msg_chksum(const u32 msg[], unsigned int max) return sum; } -static void __iomem *get_msg_ptr(struct private_data *priv, u32 response, +static void __iomem *get_msg_ptr(struct brcmstb_dpfe_priv *priv, u32 response, char *buf, ssize_t *size) { unsigned int msg_type; @@ -382,7 +382,7 @@ static void __iomem *get_msg_ptr(struct private_data *priv, u32 response, return ptr; } -static void __finalize_command(struct private_data *priv) +static void __finalize_command(struct brcmstb_dpfe_priv *priv) { unsigned int release_mbox; @@ -395,7 +395,7 @@ static void __finalize_command(struct private_data *priv) writel_relaxed(0, priv->regs + release_mbox); } -static int __send_command(struct private_data *priv, unsigned int cmd, +static int __send_command(struct brcmstb_dpfe_priv *priv, unsigned int cmd, u32 result[]) { const u32 *msg = priv->dpfe_api->command[cmd]; @@ -517,7 +517,7 @@ static int __verify_firmware(struct init_data *init, /* Verify checksum by reading back the firmware from co-processor RAM. */ static int __verify_fw_checksum(struct init_data *init, - struct private_data *priv, + struct brcmstb_dpfe_priv *priv, const struct dpfe_firmware_header *header, u32 checksum) { @@ -578,7 +578,7 @@ static int brcmstb_dpfe_download_firmware(struct platform_device *pdev, unsigned int dmem_size, imem_size; struct device *dev = &pdev->dev; bool is_big_endian = false; - struct private_data *priv; + struct brcmstb_dpfe_priv *priv; const struct firmware *fw; const u32 *dmem, *imem; const void *fw_blob; @@ -647,7 +647,7 @@ static int brcmstb_dpfe_download_firmware(struct platform_device *pdev, } static ssize_t generic_show(unsigned int command, u32 response[], - struct private_data *priv, char *buf) + struct brcmstb_dpfe_priv *priv, char *buf) { int ret; @@ -665,7 +665,7 @@ static ssize_t show_info(struct device *dev, struct device_attribute *devattr, char *buf) { u32 response[MSG_FIELD_MAX]; - struct private_data *priv; + struct brcmstb_dpfe_priv *priv; unsigned int info; ssize_t ret; @@ -688,7 +688,7 @@ static ssize_t show_refresh(struct device *dev, { u32 response[MSG_FIELD_MAX]; void __iomem *info; - struct private_data *priv; + struct brcmstb_dpfe_priv *priv; u8 refresh, sr_abort, ppre, thermal_offs, tuf; u32 mr4; ssize_t ret; @@ -721,7 +721,7 @@ static ssize_t store_refresh(struct device *dev, struct device_attribute *attr, const char *buf, size_t count) { u32 response[MSG_FIELD_MAX]; - struct private_data *priv; + struct brcmstb_dpfe_priv *priv; void __iomem *info; unsigned long val; int ret; @@ -747,7 +747,7 @@ static ssize_t show_vendor(struct device *dev, struct device_attribute *devattr, char *buf) { u32 response[MSG_FIELD_MAX]; - struct private_data *priv; + struct brcmstb_dpfe_priv *priv; void __iomem *info; ssize_t ret; u32 mr5, mr6, mr7, mr8, err; @@ -778,7 +778,7 @@ static ssize_t show_dram(struct device *dev, struct device_attribute *devattr, char *buf) { u32 response[MSG_FIELD_MAX]; - struct private_data *priv; + struct brcmstb_dpfe_priv *priv; ssize_t ret; u32 mr4, mr5, mr6, mr7, mr8, err; @@ -808,7 +808,7 @@ static int brcmstb_dpfe_resume(struct platform_device *pdev) static int brcmstb_dpfe_probe(struct platform_device *pdev) { struct device *dev = &pdev->dev; - struct private_data *priv; + struct brcmstb_dpfe_priv *priv; struct init_data init; struct resource *res; int ret; @@ -867,7 +867,7 @@ static int brcmstb_dpfe_probe(struct platform_device *pdev) static int brcmstb_dpfe_remove(struct platform_device *pdev) { - struct private_data *priv = dev_get_drvdata(&pdev->dev); + struct brcmstb_dpfe_priv *priv = dev_get_drvdata(&pdev->dev); sysfs_remove_groups(&pdev->dev.kobj, priv->dpfe_api->sysfs_attrs); -- 2.17.1