Date:2012-10-04 08:06:59 (7 years 2 months ago)
Author:Thierry Reding
Commit:90bf2251b4cc421675cdc08ce6452423ce4c69ec
Message:pwm: Get rid of HAVE_PWM

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 <thierry.reding@avionic-design.de>
Cc: Russell King <linux@arm.linux.org.uk>
Cc: Shawn Guo <shawn.guo@linaro.org>
Cc: Eric Miao <eric.y.miao@gmail.com>
Cc: Haojian Zhuang <haojian.zhuang@gmail.com>
Cc: Ralf Baechle <ralf@linux-mips.org>
Cc: Dmitry Torokhov <dmitry.torokhov@gmail.com>
Cc: Bryan Wu <bryan.wu@canonical.com>
Cc: Richard Purdie <rpurdie@rpsys.net>
Cc: Samuel Ortiz <sameo@linux.intel.com>
Cc: Ashish Jangam <ashish.jangam@kpitcummins.com>
Cc: Andrew Jones <drjones@redhat.com>
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
Files: arch/arm/Kconfig (2 diffs)
arch/arm/mach-mxs/Kconfig (2 diffs)
arch/arm/mach-pxa/Kconfig (12 diffs)
arch/mips/Kconfig (1 diff)
drivers/input/misc/Kconfig (2 diffs)
drivers/leds/Kconfig (1 diff)
include/linux/pwm.h (1 diff)

Change Details

arch/arm/Kconfig
6868    select ARM_HAS_SG_CHAIN
6969    bool
7070
71config HAVE_PWM
72    bool
73
7471config MIGHT_HAVE_PCI
7572    bool
7673
...... 
604601    select CLKDEV_LOOKUP
605602    select GENERIC_CLOCKEVENTS
606603    select USE_OF
607    select HAVE_PWM
604    select PWM
605    select PWM_LPC32XX
608606    help
609607      Support for the NXP LPC32XX family of processors
610608
arch/arm/mach-mxs/Kconfig
66    bool
77    select ARM_AMBA
88    select CPU_ARM926T
9    select HAVE_PWM
9    select PWM
10    select PWM_MXS
1011    select PINCTRL_IMX23
1112
1213config SOC_IMX28
...... 
1415    select ARM_AMBA
1516    select CPU_ARM926T
1617    select HAVE_CAN_FLEXCAN if CAN
17    select HAVE_PWM
18    select PWM
19    select PWM_MXS
1820    select PINCTRL_IMX28
1921
2022comment "MXS platforms:"
arch/arm/mach-pxa/Kconfig
3333config MACH_MAINSTONE
3434    bool "Intel HCDDBBVA0 Development Platform (aka Mainstone)"
3535    select PXA27x
36    select HAVE_PWM
36    select PWM
37    select PWM_PXA
3738
3839config MACH_ZYLONITE
3940    bool
4041    select PXA3xx
41    select HAVE_PWM
42    select PWM
43    select PWM_PXA
4244
4345config MACH_ZYLONITE300
4446    bool "PXA3xx Development Platform (aka Zylonite) PXA300/310"
...... 
7880    select PXA25x
7981    select ISA
8082    select I2C_GPIO
81    select HAVE_PWM
83    select PWM
84    select PWM_PXA
8285    select PXA_HAVE_ISA_IRQS
8386    select ARCOM_PCMCIA
8487
...... 
128131    select PXA3xx
129132    select CPU_PXA300
130133    select CPU_PXA310
131    select HAVE_PWM
134    select PWM
135    select PWM_PXA
132136
133137config MACH_CAPC7117
134138    bool "Embedian CAPC-7117 evaluation kit based on the MXM-8x10 CoM"
...... 
220224config MACH_LOGICPD_PXA270
221225    bool "LogicPD PXA270 Card Engine Development Platform"
222226    select PXA27x
223    select HAVE_PWM
227    select PWM
228    select PWM_PXA
224229
225230config MACH_PCM027
226231    bool "Phytec phyCORE-PXA270 CPU module (PCM-027)"
...... 
229234
230235config MACH_PCM990_BASEBOARD
231236    bool "PHYTEC PCM-990 development board"
232    select HAVE_PWM
237    select PWM
238    select PWM_PXA
233239    depends on MACH_PCM027
234240
235241choice
...... 
255261    bool "Income s.r.o. PXA270 SBC"
256262    depends on MACH_COLIBRI
257263    select PXA27x
258    select HAVE_PWM
264    select PWM
265    select PWM_PXA
259266
260267config MACH_COLIBRI300
261268    bool "Toradex Colibri PXA300/310"
...... 
285292    bool "HP iPAQ hx4700"
286293    select PXA27x
287294    select IWMMXT
288    select HAVE_PWM
295    select PWM
296    select PWM_PXA
289297
290298config MACH_H5000
291299    bool "HP iPAQ h5000"
...... 
299307    bool "Enable HTC Magician Support"
300308    select PXA27x
301309    select IWMMXT
302    select HAVE_PWM
310    select PWM
311    select PWM_PXA
303312
304313config MACH_MIOA701
305314    bool "Mitac Mio A701 Support"
306315    select PXA27x
307316    select IWMMXT
308    select HAVE_PWM
317    select PWM
318    select PWM_PXA
309319    select GPIO_SYSFS
310320    help
311321      Say Y here if you intend to run this kernel on a
...... 
316326    bool "Motorola EZX Platform"
317327    select PXA27x
318328    select IWMMXT
319    select HAVE_PWM
329    select PWM
330    select PWM_PXA
320331
321332config MACH_EZX_A780
322333    bool "Motorola EZX A780"
...... 
354365
355366config ARCH_PXA_PALM
356367    bool "PXA based Palm PDAs"
357    select HAVE_PWM
368    select PWM
369    select PWM_PXA
358370
359371config MACH_PALM27X
360372    bool
...... 
454466    select PXA3xx
455467    select CPU_PXA300
456468    select POWER_SUPPLY
457    select HAVE_PWM
469    select PWM
470    select PWM_PXA
458471
459472config MACH_RAUMFELD_CONNECTOR
460473    bool "Raumfeld Connector"
...... 
617630config MACH_ZIPIT2
618631    bool "Zipit Z2 Handheld"
619632    select PXA27x
620    select HAVE_PWM
633    select PWM
634    select PWM_PXA
621635endif
622636endmenu
623637
arch/mips/Kconfig
220220    select GENERIC_GPIO
221221    select ARCH_REQUIRE_GPIOLIB
222222    select SYS_HAS_EARLY_PRINTK
223    select HAVE_PWM
223    select PWM
224    select PWM_JZ4740
224225    select HAVE_CLK
225226    select GENERIC_IRQ_CHIP
226227    select CPU_SUPPORTS_CPUFREQ
drivers/input/misc/Kconfig
146146
147147config INPUT_MAX8997_HAPTIC
148148    tristate "MAXIM MAX8997 haptic controller support"
149    depends on HAVE_PWM && MFD_MAX8997
149    depends on PWM && MFD_MAX8997
150150    select INPUT_FF_MEMLESS
151151    help
152152      This option enables device driver support for the haptic controller
...... 
444444
445445config INPUT_PWM_BEEPER
446446    tristate "PWM beeper support"
447    depends on HAVE_PWM
447    depends on PWM
448448    help
449449      Say Y here to get support for PWM based beeper devices.
450450
drivers/leds/Kconfig
298298config LEDS_PWM
299299    tristate "PWM driven LED Support"
300300    depends on LEDS_CLASS
301    depends on HAVE_PWM
301    depends on PWM
302302    help
303303      This option enables support for pwm driven LEDs
304304
include/linux/pwm.h
77struct pwm_device;
88struct seq_file;
99
10#if IS_ENABLED(CONFIG_PWM) || IS_ENABLED(CONFIG_HAVE_PWM)
10#if IS_ENABLED(CONFIG_PWM)
1111/*
1212 * pwm_request - request a PWM device
1313 */

Archive Download the corresponding diff file



interactive