Received: by 2002:a17:90a:8582:0:0:0:0 with SMTP id m2csp2419179pjn; Tue, 2 Apr 2019 16:11:17 -0700 (PDT) X-Google-Smtp-Source: APXvYqx0pMqQzcMZFL+WNFvH2VacuMW5hm6LLFgTQga/0QsPdJt07aVFx6eiG7VBkQh7xtVdEmZY X-Received: by 2002:aa7:9389:: with SMTP id t9mr8383961pfe.60.1554246676968; Tue, 02 Apr 2019 16:11:16 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1554246676; cv=none; d=google.com; s=arc-20160816; b=pRtSuNag5EdVlcy1NiuCqcbUWEBORzrMAU2qvQTbyzdncybchtmzikWVJbdlmen7Zu YzIzxAo8JSOVudpeT9L5EKUdm+SBLX9NMnMUAwLNMyrva2YWgkCnvH5jOHHGVe1O5kIp ej3Nhr6VlobsQ98zuQCR/a4y9RbbFB2LfLjcsOZ2IUx3WYZSY+4vdllefca/Y76Yp3Me cXqTztz5Ov7jsvF8z5reWtmVscsw8nZtvam2nAlN/Lt8t+/YPdLE7UTq53yr1pENbOjl 5O082aGFhW+3XSkntcNk1fHNi24P9q4T9UHoAQBpoSH8Gvf/PGgIzaGJ42F8AZcmVOpS MPig== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from; bh=KJQRcUQt5/1iJXYxs97uM4DphZDo4hX0dn/eL9E8BJ0=; b=VU63c2YG5cR6q8jTDxKO7l/fMX2tmGW81yx6AqRKTozbCyZv8SQZFScvGr4bpXCx7I ll61Ol61bhcDAe9vVolkcUofPz3FultMgkGQMplKm5gTN8qtY7yoeU0Pg9CIJ6XBNeDh 8wRPdLe3bGleLVptpjQzTomJTyizHNigRlNpZD896CuZTUnsFzOYvOCWW5OwRR6HnGx4 QAMFW3HIKKD30dhSpmrubtHxLvUZ4qCx+nL+xAm43IZaCAouUTjYmobH0zHGYnl/lwVt kxFVwmzBxJ3nDTJkhsdyBttONMGuBjllsrndbzPxvWlxfIvseuKuI4KPn3z3wYA0CJ24 oFeg== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id r5si11905407pgp.29.2019.04.02.16.11.01; Tue, 02 Apr 2019 16:11:16 -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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726510AbfDBXKT (ORCPT + 99 others); Tue, 2 Apr 2019 19:10:19 -0400 Received: from smtp-out-no.shaw.ca ([64.59.134.9]:35922 "EHLO smtp-out-no.shaw.ca" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725842AbfDBXKS (ORCPT ); Tue, 2 Apr 2019 19:10:18 -0400 Received: from tethys.mmayer.net ([70.68.144.247]) by shaw.ca with ESMTP id BSPyhVn8kldkPBSPzhKte9; Tue, 02 Apr 2019 17:02:11 -0600 X-Authority-Analysis: v=2.3 cv=Ko4zJleN c=1 sm=1 tr=0 a=5Vvn7CJLxh9yo+qVPaC6cg==:117 a=5Vvn7CJLxh9yo+qVPaC6cg==:17 a=jpOVt7BSZ2e4Z31A5e1TngXxSK0=:19 a=oexKYjalfGEA:10 a=Q-fNiiVtAAAA:8 a=Y8eT2_GWdJ9rPwgqqmoA:9 a=Fp8MccfUoT0GBdDC_Lng:22 Received: by tethys.mmayer.net (Postfix, from userid 501) id 3E64E3010142F1; Tue, 2 Apr 2019 16:02:10 -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/6] memory: brcmstb: dpfe: remove unused code and fix formatting Date: Tue, 2 Apr 2019 16:00:58 -0700 Message-Id: <20190402230103.25491-2-code@mmayer.net> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20190402230103.25491-1-code@mmayer.net> References: <20190402230103.25491-1-code@mmayer.net> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-CMAE-Envelope: MS4wfBrLP7lsMVhbA5+f36tGdq25LQV8b6zVoAxfkg4q9+s3Cz5l+6RLYhu3aAjNolr6Cerk1c9ah2O8zECYYuSt3/rAsNgxUsFNOY8O1jG3BFe1z8vugHHF CxpCnjFJtp2K5IUUZVNY55lgQ2NxOrcNFM90yRMZ6WLc5DM/sSFWy3P7l4Ud+sqOKIZE4C0FjN0WgkCzitoUF77cKrx1hb4TMMhocCK1L4HpF4nX/6Io4Vk7 YhSBMfaTrI9hHW/TAcPbo7gsFfuug18HBDC6P5QbCkF5KIF0x4KKZFfxFvxUrJnmHyNllNylW3if5sBpuw+Z8JDKfFYrvQEg6RJzYqfGPKh6eJWY9k04e3mk bxtG2+bgd9p7/AB4gqCaq7gwcFXk71u3LiQbK6/+4bnKa/awCvPBBhfC7WomdAm2DnSjTx9HToMqJnDMln0fkZUfQ0xK8Q== Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Markus Mayer Remove an unused struct and fix source code formatting in a few areas. Signed-off-by: Markus Mayer --- drivers/memory/brcmstb_dpfe.c | 13 ++----------- 1 file changed, 2 insertions(+), 11 deletions(-) diff --git a/drivers/memory/brcmstb_dpfe.c b/drivers/memory/brcmstb_dpfe.c index fae3ac3d65c6..f143e40e528b 100644 --- a/drivers/memory/brcmstb_dpfe.c +++ b/drivers/memory/brcmstb_dpfe.c @@ -131,14 +131,6 @@ enum dpfe_commands { DPFE_CMD_MAX /* Last entry */ }; -struct dpfe_msg { - u32 header; - u32 command; - u32 arg_count; - u32 arg0; - u32 chksum; /* This is the sum of all other entries. */ -}; - /* * Format of the binary firmware file: * @@ -585,7 +577,7 @@ static ssize_t show_refresh(struct device *dev, return ret; mr4 = (readl_relaxed(info + DRAM_INFO_MR4) >> DRAM_INFO_MR4_SHIFT) & - DRAM_INFO_MR4_MASK; + DRAM_INFO_MR4_MASK; refresh = (mr4 >> DRAM_MR4_REFRESH) & DRAM_MR4_REFRESH_MASK; sr_abort = (mr4 >> DRAM_MR4_SR_ABORT) & DRAM_MR4_SR_ABORT_MASK; @@ -612,7 +604,6 @@ static ssize_t store_refresh(struct device *dev, struct device_attribute *attr, return -EINVAL; priv = dev_get_drvdata(dev); - ret = __send_command(priv, DPFE_CMD_GET_REFRESH, response); if (ret) return ret; @@ -627,7 +618,7 @@ static ssize_t store_refresh(struct device *dev, struct device_attribute *attr, } static ssize_t show_vendor(struct device *dev, struct device_attribute *devattr, - char *buf) + char *buf) { u32 response[MSG_FIELD_MAX]; struct private_data *priv; -- 2.17.1