From patchwork Thu Sep 15 10:45:18 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Lee Jones X-Patchwork-Id: 76269 Delivered-To: patch@linaro.org Received: by 10.140.106.72 with SMTP id d66csp2367782qgf; Thu, 15 Sep 2016 03:46:13 -0700 (PDT) X-Received: by 10.66.144.200 with SMTP id so8mr13292953pab.94.1473936372964; Thu, 15 Sep 2016 03:46:12 -0700 (PDT) Return-Path: Received: from bombadil.infradead.org (bombadil.infradead.org. [2001:1868:205::9]) by mx.google.com with ESMTPS id ew11si3736121pac.103.2016.09.15.03.46.12 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 15 Sep 2016 03:46:12 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-arm-kernel-bounces+patch=linaro.org@lists.infradead.org designates 2001:1868:205::9 as permitted sender) client-ip=2001:1868:205::9; Authentication-Results: mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org; spf=pass (google.com: best guess record for domain of linux-arm-kernel-bounces+patch=linaro.org@lists.infradead.org designates 2001:1868:205::9 as permitted sender) smtp.mailfrom=linux-arm-kernel-bounces+patch=linaro.org@lists.infradead.org; dmarc=fail (p=NONE dis=NONE) header.from=linaro.org Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.85_2 #1 (Red Hat Linux)) id 1bkUAL-0004wg-Hn; Thu, 15 Sep 2016 10:45:13 +0000 Received: from mail-qk0-x236.google.com ([2607:f8b0:400d:c09::236]) by bombadil.infradead.org with esmtps (Exim 4.85_2 #1 (Red Hat Linux)) id 1bkU8z-0003VM-EX for linux-arm-kernel@lists.infradead.org; Thu, 15 Sep 2016 10:43:51 +0000 Received: by mail-qk0-x236.google.com with SMTP id z190so42765713qkc.3 for ; Thu, 15 Sep 2016 03:43: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=gQKF2jfrGcVIfTCVeecY8dfrzOoKCulE4gCHc3ZtCWo=; b=M0XzB2A0OLwWeMF5+PmmUSSWNgDru8ditL0QPDU6rxCyEd8P65ZAyuSXcIOBaWv8qp cqkGLxbhvPZ3UM/PyRN3EDnoa3HDOTGexY4p1Qh15D6rJQlANorGGfsTlivvNGLjDnq5 SYpCuwe1RH0ak/tg0wq2cf61uRwJCMAymOePU= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=gQKF2jfrGcVIfTCVeecY8dfrzOoKCulE4gCHc3ZtCWo=; b=LG1klIbOfLCj0ngK5JD2XQta9StTj+R80JJcY6Zv7YmrXX81TlRmbHFrfiAHZGRTcB 6FlINkYyc5bBlXO+4yQM2O082r4oAqg/AZFk3RlwZb5FwR8624dPftz681MQ1ZWN3nOK moJR5t5Mzr+93NLBPGBJ59DfRLSBOGx84SyMxPJiZDnkXUphsP0b7U1U4oNC614KvhJP fgdjS3gFVjdu62Tm+Zh5r2WbAjQRsFO/IpVMIwaKZGpiUgXBmxh/lh8unV6tdGs2JZNc Aqdtqbk2Y5mw0SccmrP5EIKjhsB8Ss4XNQk43yCXblrOmSFnkBqdbF1mUDP+MBdLxjB+ M6KA== X-Gm-Message-State: AE9vXwO67re69o8ZwmDEoXPKJqjaCrf9Khw10l6i/oScRu3LMYG2zYT97sEOzVeshm4vkXwJ X-Received: by 10.194.141.163 with SMTP id rp3mr8328417wjb.124.1473936208129; Thu, 15 Sep 2016 03:43:28 -0700 (PDT) Received: from dell.home (host31-51-85-248.range31-51.btcentralplus.com. [31.51.85.248]) by smtp.gmail.com with ESMTPSA id e2sm2861231wjn.11.2016.09.15.03.43.27 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 15 Sep 2016 03:43:27 -0700 (PDT) From: Lee Jones To: linus.walleij@linaro.org, tony@atomide.com, linux-omap@vger.kernel.org Subject: [PATCH 4/7] mfd: ab8500-debugfs: Remove ab8500_dump_all_banks_to_mem() Date: Thu, 15 Sep 2016 11:45:18 +0100 Message-Id: <20160915104521.14286-5-lee.jones@linaro.org> X-Mailer: git-send-email 2.9.3 In-Reply-To: <20160915104521.14286-1-lee.jones@linaro.org> References: <20160915104521.14286-1-lee.jones@linaro.org> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20160915_034349_813380_C12E348D X-CRM114-Status: GOOD ( 11.60 ) X-Spam-Score: 0.8 (/) X-Spam-Report: SpamAssassin version 3.4.0 on bombadil.infradead.org summary: Content analysis details: (0.8 points) pts rule name description ---- ---------------------- -------------------------------------------------- -0.7 RCVD_IN_DNSWL_LOW RBL: Sender listed at http://www.dnswl.org/, low trust [2607:f8b0:400d:c09:0:0:0:236 listed in] [list.dnswl.org] 1.0 FSL_HELO_HOME No description available. -0.0 SPF_PASS SPF: sender matches SPF record 2.5 SUSPICIOUS_RECIPS Similar addresses in recipient list -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] -0.1 DKIM_VALID Message has at least one valid DKIM or DK signature -0.1 DKIM_VALID_AU Message has a valid DKIM or DK signature from author's domain 0.1 DKIM_SIGNED Message has a DKIM or DK signature, not necessarily valid X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org MIME-Version: 1.0 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patch=linaro.org@lists.infradead.org Doesn't appear to be used. No call sites exist. Signed-off-by: Lee Jones --- drivers/mfd/ab8500-debugfs.c | 54 -------------------------------------------- 1 file changed, 54 deletions(-) -- 2.9.3 _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel diff --git a/drivers/mfd/ab8500-debugfs.c b/drivers/mfd/ab8500-debugfs.c index 6c913c4..b948088 100644 --- a/drivers/mfd/ab8500-debugfs.c +++ b/drivers/mfd/ab8500-debugfs.c @@ -1374,60 +1374,6 @@ void ab8500_dump_all_banks(struct device *dev) } } -/* Space for 500 registers. */ -#define DUMP_MAX_REGS 700 -static struct ab8500_register_dump -{ - u8 bank; - u8 reg; - u8 value; -} ab8500_complete_register_dump[DUMP_MAX_REGS]; - -/* This shall only be called upon kernel panic! */ -void ab8500_dump_all_banks_to_mem(void) -{ - int i, r = 0; - u8 bank; - int err = 0; - - pr_info("Saving all ABB registers for crash analysis.\n"); - - for (bank = 0; bank < AB8500_NUM_BANKS; bank++) { - for (i = 0; i < debug_ranges[bank].num_ranges; i++) { - u8 reg; - - for (reg = debug_ranges[bank].range[i].first; - reg <= debug_ranges[bank].range[i].last; - reg++) { - u8 value; - - err = prcmu_abb_read(bank, reg, &value, 1); - - if (err < 0) - goto out; - - ab8500_complete_register_dump[r].bank = bank; - ab8500_complete_register_dump[r].reg = reg; - ab8500_complete_register_dump[r].value = value; - - r++; - - if (r >= DUMP_MAX_REGS) { - pr_err("%s: too many register to dump!\n", - __func__); - err = -EINVAL; - goto out; - } - } - } - } -out: - if (err >= 0) - pr_info("Saved all ABB registers.\n"); - else - pr_info("Failed to save all ABB registers.\n"); -} - static int ab8500_all_banks_open(struct inode *inode, struct file *file) { struct seq_file *s;