From patchwork Sun Dec 21 17:43:43 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Rickard Strandqvist X-Patchwork-Id: 5524511 X-Patchwork-Delegate: eduardo.valentin@ti.com Return-Path: X-Original-To: patchwork-linux-pm@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.19.201]) by patchwork1.web.kernel.org (Postfix) with ESMTP id 491CE9F30B for ; Sun, 21 Dec 2014 17:41:01 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 533AE2013D for ; Sun, 21 Dec 2014 17:41:00 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 6CEA12011D for ; Sun, 21 Dec 2014 17:40:59 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753341AbaLURk6 (ORCPT ); Sun, 21 Dec 2014 12:40:58 -0500 Received: from mail-wg0-f50.google.com ([74.125.82.50]:55971 "EHLO mail-wg0-f50.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752370AbaLURk5 (ORCPT ); Sun, 21 Dec 2014 12:40:57 -0500 Received: by mail-wg0-f50.google.com with SMTP id a1so5072172wgh.23 for ; Sun, 21 Dec 2014 09:40:56 -0800 (PST) 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; bh=hU03Dp+8BnutLYRyubpDwa+lOcsoN85ySgf0qnKhY9I=; b=KBJhRiwG6L9m4ZdEej89NxyE+kb4BpO0JpHcli7nxPtSYBL6Bt7P1nr4lfpVgir6Lp 8p5uVkhI/cBU2ZskoL6Y2Yw5eyyT7c2WNY1PdwcphH/mJ4mA24tQYO5AOkIT/NGB4emU eld+x/fNHCImXR6ChPcIBdrCrOfaJNIpuxHRukfD/TeBGscKONEIvTHBo9S9/h/iQyU4 SzQroyilysHSVVoE65GtZc+T9CD5D1o1GzP/Dm/TDAkHlarX5CZYbSY13vFLtnogVwXt NOXAk6fXmC+u7d/BJU1inPWWJbbamnBPa8/kgduYZVuHgQKs0/0nOsAxUUn19mw5f/sA xADQ== X-Gm-Message-State: ALoCoQnVBYvZCwX4vAF8wDEVr5zjxFfvl2sVjuiLLikgsenQOc4E1+7OdgYc1YWclkYofiAEKuBc X-Received: by 10.194.22.101 with SMTP id c5mr34446779wjf.22.1419183656438; Sun, 21 Dec 2014 09:40:56 -0800 (PST) Received: from localhost.localdomain (h-246-111.a218.priv.bahnhof.se. [85.24.246.111]) by mx.google.com with ESMTPSA id fp2sm7690970wib.8.2014.12.21.09.40.55 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sun, 21 Dec 2014 09:40:55 -0800 (PST) From: Rickard Strandqvist To: Eduardo Valentin , Zhang Rui Cc: Rickard Strandqvist , Grant Likely , Rob Herring , linux-pm@vger.kernel.org, linux-kernel@vger.kernel.org, devicetree@vger.kernel.org Subject: [PATCH] thermal: ti-soc-thermal: ti-bandgap.c: Remove unused function Date: Sun, 21 Dec 2014 18:43:43 +0100 Message-Id: <1419183823-10787-1-git-send-email-rickard_strandqvist@spectrumdigital.se> X-Mailer: git-send-email 1.7.10.4 Sender: linux-pm-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-pm@vger.kernel.org X-Spam-Status: No, score=-6.9 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_HI, T_RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=ham version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Remove the function ti_bandgap_write_thot() that is not used anywhere. This was partially found by using a static code analysis program called cppcheck. Signed-off-by: Rickard Strandqvist --- drivers/thermal/ti-soc-thermal/ti-bandgap.c | 13 ------------- drivers/thermal/ti-soc-thermal/ti-bandgap.h | 1 - 2 files changed, 14 deletions(-) diff --git a/drivers/thermal/ti-soc-thermal/ti-bandgap.c b/drivers/thermal/ti-soc-thermal/ti-bandgap.c index 634b6ce..cbb6a5f 100644 --- a/drivers/thermal/ti-soc-thermal/ti-bandgap.c +++ b/drivers/thermal/ti-soc-thermal/ti-bandgap.c @@ -611,19 +611,6 @@ int ti_bandgap_read_thot(struct ti_bandgap *bgp, int id, int *thot) } /** - * ti_bandgap_write_thot() - sets sensor current thot - * @bgp: pointer to bandgap instance - * @id: sensor id - * @val: desired thot value - * - * Return: 0 on success or the proper error code - */ -int ti_bandgap_write_thot(struct ti_bandgap *bgp, int id, int val) -{ - return _ti_bandgap_write_threshold(bgp, id, val, true); -} - -/** * ti_bandgap_read_tcold() - reads sensor current tcold * @bgp: pointer to bandgap instance * @id: sensor id diff --git a/drivers/thermal/ti-soc-thermal/ti-bandgap.h b/drivers/thermal/ti-soc-thermal/ti-bandgap.h index b3adf72..976afc0 100644 --- a/drivers/thermal/ti-soc-thermal/ti-bandgap.h +++ b/drivers/thermal/ti-soc-thermal/ti-bandgap.h @@ -371,7 +371,6 @@ struct ti_bandgap_data { }; int ti_bandgap_read_thot(struct ti_bandgap *bgp, int id, int *thot); -int ti_bandgap_write_thot(struct ti_bandgap *bgp, int id, int val); int ti_bandgap_read_tcold(struct ti_bandgap *bgp, int id, int *tcold); int ti_bandgap_write_tcold(struct ti_bandgap *bgp, int id, int val); int ti_bandgap_read_update_interval(struct ti_bandgap *bgp, int id,