From patchwork Thu Jan 1 17:04:52 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Rickard Strandqvist X-Patchwork-Id: 5557311 Return-Path: X-Original-To: patchwork-linux-pm@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork2.web.kernel.org (Postfix) with ESMTP id 23429BF6C3 for ; Thu, 1 Jan 2015 17:01:56 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 2D86D2024D for ; Thu, 1 Jan 2015 17:01:55 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 4A1852022D for ; Thu, 1 Jan 2015 17:01:54 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751487AbbAARBx (ORCPT ); Thu, 1 Jan 2015 12:01:53 -0500 Received: from mail-wg0-f50.google.com ([74.125.82.50]:49709 "EHLO mail-wg0-f50.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751951AbbAARBw (ORCPT ); Thu, 1 Jan 2015 12:01:52 -0500 Received: by mail-wg0-f50.google.com with SMTP id a1so23422121wgh.9 for ; Thu, 01 Jan 2015 09:01:51 -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=ROiUu1furaRZGlyqaAZTmSUoDabiuh248sA3HSYC57s=; b=eKgNNY+i99OFZXXpKauYRMjN2/Iiq7uFKkxcw1IPzER5WccRzAjuoc9jx1dMEI4NxX jiioASBJRSCz9hO3/NzVmiko2ORGaaDdJxJvzfYu5XvMm5itzygc6kCJ6vGPUw8MKjoc xYZXfndTcBDTM6zwdf+9cGKJkoSTyAmOimnRoGTF7AKXkqestFk2NEHwZWnm5OjqUXM7 SoxhAmit6XVQMbPvbF2f0k08KAvqJiPBtol/oMAeWVJ9AiyhJjq6vy0vS8DlihoCSP8T vlmFUxw36UPuGzo0e6L+Jpxlb5sGpEN2N6e4WU+p7hv51szJE3Gj4tVIgOXH0iKJFdfR DD5w== X-Gm-Message-State: ALoCoQmACfETiGdOnfo0uAq8S2v2CHanhs4Ld1a+juVSUy+qdeIjDn6qiLTp/iqAqVTolFhnd27T X-Received: by 10.180.75.237 with SMTP id f13mr123397568wiw.69.1420131711073; Thu, 01 Jan 2015 09:01:51 -0800 (PST) Received: from localhost.localdomain (h-246-111.a218.priv.bahnhof.se. [85.24.246.111]) by mx.google.com with ESMTPSA id j10sm52292474wjn.23.2015.01.01.09.01.49 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 01 Jan 2015 09:01:50 -0800 (PST) From: Rickard Strandqvist To: Sebastian Reichel , Dmitry Eremin-Solenikov Cc: Rickard Strandqvist , David Woodhouse , Grant Likely , Rob Herring , linux-pm@vger.kernel.org, linux-kernel@vger.kernel.org, devicetree@vger.kernel.org Subject: [PATCH] power: ab8500_fg.c: Remove unused function Date: Thu, 1 Jan 2015 18:04:52 +0100 Message-Id: <1420131892-31486-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 ab8500_fg_reinit() that is not used anywhere. This was partially found by using a static code analysis program called cppcheck. Signed-off-by: Rickard Strandqvist Acked-by: Arnd Bergmann --- drivers/power/ab8500_fg.c | 14 -------------- include/linux/mfd/abx500/ab8500-bm.h | 1 - 2 files changed, 15 deletions(-) diff --git a/drivers/power/ab8500_fg.c b/drivers/power/ab8500_fg.c index 217da4b..72c82ab 100644 --- a/drivers/power/ab8500_fg.c +++ b/drivers/power/ab8500_fg.c @@ -2434,20 +2434,6 @@ static void ab8500_fg_reinit_work(struct work_struct *work) } } -/** - * ab8500_fg_reinit() - forces FG algorithm to reinitialize with current values - * - * This function can be used to force the FG algorithm to recalculate a new - * voltage based battery capacity. - */ -void ab8500_fg_reinit(void) -{ - struct ab8500_fg *di = ab8500_fg_get(); - /* User won't be notified if a null pointer returned. */ - if (di != NULL) - queue_delayed_work(di->fg_wq, &di->fg_reinit_work, 0); -} - /* Exposure to the sysfs interface */ struct ab8500_fg_sysfs_entry { diff --git a/include/linux/mfd/abx500/ab8500-bm.h b/include/linux/mfd/abx500/ab8500-bm.h index cc892a8..12a5b39 100644 --- a/include/linux/mfd/abx500/ab8500-bm.h +++ b/include/linux/mfd/abx500/ab8500-bm.h @@ -461,7 +461,6 @@ struct ab8500_fg; #ifdef CONFIG_AB8500_BM extern struct abx500_bm_data ab8500_bm_data; -void ab8500_fg_reinit(void); void ab8500_charger_usb_state_changed(u8 bm_usb_state, u16 mA); struct ab8500_btemp *ab8500_btemp_get(void); int ab8500_btemp_get_batctrl_temp(struct ab8500_btemp *btemp);