From patchwork Sat Nov 26 18:13:23 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Nicolae Rosia X-Patchwork-Id: 9448477 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 2640E6071C for ; Sat, 26 Nov 2016 18:17:41 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 19EC826419 for ; Sat, 26 Nov 2016 18:17:41 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 0D1A426C9B; Sat, 26 Nov 2016 18:17:41 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-6.9 required=2.0 tests=BAYES_00,RCVD_IN_DNSWL_HI autolearn=unavailable version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 7CBE226419 for ; Sat, 26 Nov 2016 18:17:40 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753969AbcKZSOe (ORCPT ); Sat, 26 Nov 2016 13:14:34 -0500 Received: from relay1.mentorg.com ([192.94.38.131]:33164 "EHLO relay1.mentorg.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753190AbcKZSO0 (ORCPT ); Sat, 26 Nov 2016 13:14:26 -0500 Received: from nat-ies.mentorg.com ([192.94.31.2] helo=SVR-IES-FEM-02.mgc.mentorg.com) by relay1.mentorg.com with esmtp id 1cAhUM-0003Mh-OT from Nicolae_Rosia@mentor.com ; Sat, 26 Nov 2016 10:14:15 -0800 Received: from rosia.mgc (137.202.0.76) by SVR-IES-FEM-02.mgc.mentorg.com (137.202.0.106) with Microsoft SMTP Server id 14.3.224.2; Sat, 26 Nov 2016 18:14:13 +0000 From: Nicolae Rosia To: Lee Jones , Mark Brown , Rob Herring , Mark Rutland , Tony Lindgren CC: Liam Girdwood , Paul Gortmaker , Graeme Gregory , Baruch Siach , , , , , Nicolae Rosia Subject: [PATCH 2/5] mfd: twl: remove useless header Date: Sat, 26 Nov 2016 20:13:23 +0200 Message-ID: <20161126181326.14951-3-Nicolae_Rosia@mentor.com> X-Mailer: git-send-email 2.9.3 In-Reply-To: <20161126181326.14951-1-Nicolae_Rosia@mentor.com> References: <20161126181326.14951-1-Nicolae_Rosia@mentor.com> MIME-Version: 1.0 Sender: linux-omap-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-omap@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP This header has one user, twl-core.c . Remove it before it gets more users. Signed-off-by: Nicolae Rosia --- drivers/mfd/twl-core.c | 8 ++++++-- drivers/mfd/twl-core.h | 10 ---------- drivers/mfd/twl4030-irq.c | 2 -- drivers/mfd/twl6030-irq.c | 2 -- 4 files changed, 6 insertions(+), 16 deletions(-) delete mode 100644 drivers/mfd/twl-core.h diff --git a/drivers/mfd/twl-core.c b/drivers/mfd/twl-core.c index 48b0668..e16084e 100644 --- a/drivers/mfd/twl-core.c +++ b/drivers/mfd/twl-core.c @@ -52,8 +52,6 @@ /* Register descriptions for audio */ #include -#include "twl-core.h" - /* * The TWL4030 "Triton 2" is one of a family of a multi-function "Power * Management and System Companion Device" chips originally designed for @@ -150,6 +148,12 @@ /*----------------------------------------------------------------------*/ +int twl6030_init_irq(struct device *dev, int irq_num); +int twl6030_exit_irq(void); +int twl4030_init_irq(struct device *dev, int irq_num); +int twl4030_exit_irq(void); +int twl4030_init_chip_irq(const char *chip); + /* Structure for each TWL4030/TWL6030 Slave */ struct twl_client { struct i2c_client *client; diff --git a/drivers/mfd/twl-core.h b/drivers/mfd/twl-core.h deleted file mode 100644 index 6ff99dc..0000000 --- a/drivers/mfd/twl-core.h +++ /dev/null @@ -1,10 +0,0 @@ -#ifndef __TWL_CORE_H__ -#define __TWL_CORE_H__ - -extern int twl6030_init_irq(struct device *dev, int irq_num); -extern int twl6030_exit_irq(void); -extern int twl4030_init_irq(struct device *dev, int irq_num); -extern int twl4030_exit_irq(void); -extern int twl4030_init_chip_irq(const char *chip); - -#endif /* __TWL_CORE_H__ */ diff --git a/drivers/mfd/twl4030-irq.c b/drivers/mfd/twl4030-irq.c index b46c0cf..000c231 100644 --- a/drivers/mfd/twl4030-irq.c +++ b/drivers/mfd/twl4030-irq.c @@ -35,8 +35,6 @@ #include #include -#include "twl-core.h" - /* * TWL4030 IRQ handling has two stages in hardware, and thus in software. * The Primary Interrupt Handler (PIH) stage exposes status bits saying diff --git a/drivers/mfd/twl6030-irq.c b/drivers/mfd/twl6030-irq.c index 5357450..63eca76 100644 --- a/drivers/mfd/twl6030-irq.c +++ b/drivers/mfd/twl6030-irq.c @@ -42,8 +42,6 @@ #include #include -#include "twl-core.h" - /* * TWL6030 (unlike its predecessors, which had two level interrupt handling) * three interrupt registers INT_STS_A, INT_STS_B and INT_STS_C.