From patchwork Thu Oct 4 06:06:59 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Thierry Reding X-Patchwork-Id: 1544851 Return-Path: X-Original-To: patchwork-linux-arm@patchwork.kernel.org Delivered-To: patchwork-process-083081@patchwork1.kernel.org Received: from merlin.infradead.org (merlin.infradead.org [205.233.59.134]) by patchwork1.kernel.org (Postfix) with ESMTP id 9178A3FD9C for ; Thu, 4 Oct 2012 06:09:42 +0000 (UTC) Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.76 #1 (Red Hat Linux)) id 1TJeav-0006KG-N3; Thu, 04 Oct 2012 06:07:37 +0000 Received: from moutng.kundenserver.de ([212.227.126.171]) by merlin.infradead.org with esmtps (Exim 4.76 #1 (Red Hat Linux)) id 1TJear-0006K0-Tm for linux-arm-kernel@lists.infradead.org; Thu, 04 Oct 2012 06:07:35 +0000 Received: from mailbox.adnet.avionic-design.de (mailbox.avionic-design.de [109.75.18.3]) by mrelayeu.kundenserver.de (node=mreu4) with ESMTP (Nemesis) id 0LcrNk-1Tk9eK1SXw-00iCLq; Thu, 04 Oct 2012 08:07:05 +0200 Received: from localhost (localhost [127.0.0.1]) by mailbox.adnet.avionic-design.de (Postfix) with ESMTP id 93EE52A282F5; Thu, 4 Oct 2012 08:07:03 +0200 (CEST) X-Virus-Scanned: amavisd-new at avionic-design.de Received: from mailbox.adnet.avionic-design.de ([127.0.0.1]) by localhost (mailbox.avionic-design.de [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id SqPrmzG2q6G0; Thu, 4 Oct 2012 08:07:00 +0200 (CEST) Received: from localhost (avionic-0098.adnet.avionic-design.de [172.20.31.233]) (Authenticated sender: thierry.reding) by mailbox.adnet.avionic-design.de (Postfix) with ESMTPA id 9C1D52A28267; Thu, 4 Oct 2012 08:07:00 +0200 (CEST) From: Thierry Reding To: linux-kernel@vger.kernel.org Subject: [PATCH] pwm: Get rid of HAVE_PWM Date: Thu, 4 Oct 2012 08:06:59 +0200 Message-Id: <1349330819-11924-1-git-send-email-thierry.reding@avionic-design.de> X-Mailer: git-send-email 1.7.12.2 X-Provags-ID: V02:K0:t+3IkztqagaoZMhV8mQLBKCWHaUFmCSy2GntzOG8jmB NtSySscUEmGFyiFQ2IRfv9ToQOcayIgdrK2surXnVqNMuBpixM p1yCepO+RYFjsLRYPxf7ZMdILyjuxjb6yS/VmYfts41bdEnKvs IW2vVkR5dhzsXyt6Jegz67dX3ZAgX/S0C0Bk+bLEGmu4t307da 9Cs+dWOX2M8OC+bwqASHDUDB4dVjTuGg3f+sS0ERV+LOX8Yc1f ECqQI5qYr0MAUQR6pa9QqSwMIRMnFEF4zfI/zxUlPZtnZriqzf hz+mPRZ3HJlJ7sYOvopVuudszxccmeS85m4FrD+IKgm9wn+PW3 99O1/rwd5eJ7l7n9Uw0fCaqpqm7oa6QUpVTBx6E1H+1+Ae8GGT FCo9wvIpc+FzEjv3zR2q6l+qaC/1MGjH2tpFWgEty2BRqkUsKy 9wXCI X-Spam-Note: CRM114 invocation failed X-Spam-Score: -1.9 (-) X-Spam-Report: SpamAssassin version 3.3.2 on merlin.infradead.org summary: Content analysis details: (-1.9 points) pts rule name description ---- ---------------------- -------------------------------------------------- -0.0 RCVD_IN_DNSWL_NONE RBL: Sender listed at http://www.dnswl.org/, no trust [212.227.126.171 listed in list.dnswl.org] -0.0 SPF_HELO_PASS SPF: HELO matches SPF record -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] Cc: linux-mips@linux-mips.org, Andrew Jones , Eric Miao , Samuel Ortiz , Ashish Jangam , Dmitry Torokhov , Ralf Baechle , Richard Purdie , Haojian Zhuang , linux-leds@vger.kernel.org, Bryan Wu , Russell King , Shawn Guo , linux-input@vger.kernel.org, linux-arm-kernel@lists.infradead.org X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Sender: linux-arm-kernel-bounces@lists.infradead.org Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org Now that all drivers have been moved to the PWM subsystem, remove the legacy HAVE_PWM symbol and replace it with the new PWM symbol. While at it, select the PWM subsystem and corresponding PWM driver on boards that require PWM functionality. Signed-off-by: Thierry Reding Cc: Russell King Cc: Shawn Guo Cc: Eric Miao Cc: Haojian Zhuang Cc: Ralf Baechle Cc: Dmitry Torokhov Cc: Bryan Wu Cc: Richard Purdie Cc: Samuel Ortiz Cc: Ashish Jangam Cc: Andrew Jones Cc: linux-arm-kernel@lists.infradead.org Cc: linux-kernel@vger.kernel.org Cc: linux-mips@linux-mips.org Cc: linux-input@vger.kernel.org Cc: linux-leds@vger.kernel.org --- arch/arm/Kconfig | 6 ++---- arch/arm/mach-mxs/Kconfig | 6 ++++-- arch/arm/mach-pxa/Kconfig | 42 ++++++++++++++++++++++++++++-------------- arch/mips/Kconfig | 3 ++- drivers/input/misc/Kconfig | 4 ++-- drivers/leds/Kconfig | 2 +- include/linux/pwm.h | 2 +- 7 files changed, 40 insertions(+), 25 deletions(-) diff --git a/arch/arm/Kconfig b/arch/arm/Kconfig index e91c7cd..a0cebf8 100644 --- a/arch/arm/Kconfig +++ b/arch/arm/Kconfig @@ -69,9 +69,6 @@ config ARM_DMA_USE_IOMMU select ARM_HAS_SG_CHAIN bool -config HAVE_PWM - bool - config MIGHT_HAVE_PCI bool @@ -610,7 +607,8 @@ config ARCH_LPC32XX select CLKDEV_LOOKUP select GENERIC_CLOCKEVENTS select USE_OF - select HAVE_PWM + select PWM + select PWM_LPC32XX help Support for the NXP LPC32XX family of processors diff --git a/arch/arm/mach-mxs/Kconfig b/arch/arm/mach-mxs/Kconfig index 9a8bbda..2fc01bd 100644 --- a/arch/arm/mach-mxs/Kconfig +++ b/arch/arm/mach-mxs/Kconfig @@ -6,7 +6,8 @@ config SOC_IMX23 bool select ARM_AMBA select CPU_ARM926T - select HAVE_PWM + select PWM + select PWM_MXS select PINCTRL_IMX23 config SOC_IMX28 @@ -14,7 +15,8 @@ config SOC_IMX28 select ARM_AMBA select CPU_ARM926T select HAVE_CAN_FLEXCAN if CAN - select HAVE_PWM + select PWM + select PWM_MXS select PINCTRL_IMX28 comment "MXS platforms:" diff --git a/arch/arm/mach-pxa/Kconfig b/arch/arm/mach-pxa/Kconfig index fe2d1f8..14f41c3 100644 --- a/arch/arm/mach-pxa/Kconfig +++ b/arch/arm/mach-pxa/Kconfig @@ -33,12 +33,14 @@ config ARCH_LUBBOCK config MACH_MAINSTONE bool "Intel HCDDBBVA0 Development Platform (aka Mainstone)" select PXA27x - select HAVE_PWM + select PWM + select PWM_PXA config MACH_ZYLONITE bool select PXA3xx - select HAVE_PWM + select PWM + select PWM_PXA config MACH_ZYLONITE300 bool "PXA3xx Development Platform (aka Zylonite) PXA300/310" @@ -78,7 +80,8 @@ config ARCH_VIPER select PXA25x select ISA select I2C_GPIO - select HAVE_PWM + select PWM + select PWM_PXA select PXA_HAVE_ISA_IRQS select ARCOM_PCMCIA @@ -128,7 +131,8 @@ config MACH_CM_X300 select PXA3xx select CPU_PXA300 select CPU_PXA310 - select HAVE_PWM + select PWM + select PWM_PXA config MACH_CAPC7117 bool "Embedian CAPC-7117 evaluation kit based on the MXM-8x10 CoM" @@ -220,7 +224,8 @@ config TRIZEPS_PCMCIA config MACH_LOGICPD_PXA270 bool "LogicPD PXA270 Card Engine Development Platform" select PXA27x - select HAVE_PWM + select PWM + select PWM_PXA config MACH_PCM027 bool "Phytec phyCORE-PXA270 CPU module (PCM-027)" @@ -229,7 +234,8 @@ config MACH_PCM027 config MACH_PCM990_BASEBOARD bool "PHYTEC PCM-990 development board" - select HAVE_PWM + select PWM + select PWM_PXA depends on MACH_PCM027 choice @@ -255,7 +261,8 @@ config MACH_COLIBRI_PXA270_INCOME bool "Income s.r.o. PXA270 SBC" depends on MACH_COLIBRI select PXA27x - select HAVE_PWM + select PWM + select PWM_PXA config MACH_COLIBRI300 bool "Toradex Colibri PXA300/310" @@ -285,7 +292,8 @@ config MACH_H4700 bool "HP iPAQ hx4700" select PXA27x select IWMMXT - select HAVE_PWM + select PWM + select PWM_PXA config MACH_H5000 bool "HP iPAQ h5000" @@ -299,13 +307,15 @@ config MACH_MAGICIAN bool "Enable HTC Magician Support" select PXA27x select IWMMXT - select HAVE_PWM + select PWM + select PWM_PXA config MACH_MIOA701 bool "Mitac Mio A701 Support" select PXA27x select IWMMXT - select HAVE_PWM + select PWM + select PWM_PXA select GPIO_SYSFS help Say Y here if you intend to run this kernel on a @@ -316,7 +326,8 @@ config PXA_EZX bool "Motorola EZX Platform" select PXA27x select IWMMXT - select HAVE_PWM + select PWM + select PWM_PXA config MACH_EZX_A780 bool "Motorola EZX A780" @@ -354,7 +365,8 @@ config MACH_MP900C config ARCH_PXA_PALM bool "PXA based Palm PDAs" - select HAVE_PWM + select PWM + select PWM_PXA config MACH_PALM27X bool @@ -454,7 +466,8 @@ config MACH_RAUMFELD_RC select PXA3xx select CPU_PXA300 select POWER_SUPPLY - select HAVE_PWM + select PWM + select PWM_PXA config MACH_RAUMFELD_CONNECTOR bool "Raumfeld Connector" @@ -617,7 +630,8 @@ config MACH_E800 config MACH_ZIPIT2 bool "Zipit Z2 Handheld" select PXA27x - select HAVE_PWM + select PWM + select PWM_PXA endif endmenu diff --git a/arch/mips/Kconfig b/arch/mips/Kconfig index 331d574..b38f23d 100644 --- a/arch/mips/Kconfig +++ b/arch/mips/Kconfig @@ -219,7 +219,8 @@ config MACH_JZ4740 select GENERIC_GPIO select ARCH_REQUIRE_GPIOLIB select SYS_HAS_EARLY_PRINTK - select HAVE_PWM + select PWM + select PWM_JZ4740 select HAVE_CLK select GENERIC_IRQ_CHIP diff --git a/drivers/input/misc/Kconfig b/drivers/input/misc/Kconfig index 7c0f1ec..af6188b 100644 --- a/drivers/input/misc/Kconfig +++ b/drivers/input/misc/Kconfig @@ -146,7 +146,7 @@ config INPUT_MAX8925_ONKEY config INPUT_MAX8997_HAPTIC tristate "MAXIM MAX8997 haptic controller support" - depends on HAVE_PWM && MFD_MAX8997 + depends on PWM && MFD_MAX8997 select INPUT_FF_MEMLESS help This option enables device driver support for the haptic controller @@ -444,7 +444,7 @@ config INPUT_PCF8574 config INPUT_PWM_BEEPER tristate "PWM beeper support" - depends on HAVE_PWM + depends on PWM help Say Y here to get support for PWM based beeper devices. diff --git a/drivers/leds/Kconfig b/drivers/leds/Kconfig index c96bbaa..a720d99 100644 --- a/drivers/leds/Kconfig +++ b/drivers/leds/Kconfig @@ -298,7 +298,7 @@ config LEDS_DAC124S085 config LEDS_PWM tristate "PWM driven LED Support" depends on LEDS_CLASS - depends on HAVE_PWM + depends on PWM help This option enables support for pwm driven LEDs diff --git a/include/linux/pwm.h b/include/linux/pwm.h index 112b314..eea3f26 100644 --- a/include/linux/pwm.h +++ b/include/linux/pwm.h @@ -7,7 +7,7 @@ struct pwm_device; struct seq_file; -#if IS_ENABLED(CONFIG_PWM) || IS_ENABLED(CONFIG_HAVE_PWM) +#if IS_ENABLED(CONFIG_PWM) /* * pwm_request - request a PWM device */