linux-mips
[Top] [All Lists]

[PATCH 7/7] pwm: Modify backlight and led Kconfig aligning to pwm core

To: <eric.y.miao@gmail.com>, <linux@arm.linux.org.uk>, <grinberg@compulab.co.il>, <mike@compulab.co.il>, <robert.jarzmik@free.fr>, <marek.vasut@gmail.com>, <drwyrm@gmail.com>, <stefan@openezx.org>, <laforge@openezx.org>, <ospite@studenti.unina.it>, <philipp.zabel@gmail.com>, <mad_soft@inbox.ru>, <maz@misterjones.org>, <daniel@caiaq.de>, <haojian.zhuang@marvell.com>, <timur@freescale.com>, <ben-linux@fluff.org>, <support@simtec.co.uk>, <arnaud.patard@rtp-net.org>, <dgreenday@gmail.com>, <anarsoul@gmail.com>, <akpm@linux-foundation.org>, <mcuelenaere@gmail.com>, <kernel@pengutronix.de>, <andre.goddard@gmail.com>, <jkosina@suse.cz>, <tj@kernel.org>, <hsweeten@visionengravers.com>, <u.kleine-koenig@pengutronix.de>, <kgene.kim@samsung.com>, <ralf@linux-mips.org>, <lars@metafoo.de>, <dilinger@collabora.co.uk>, <mroth@nessie.de>, <randy.dunlap@oracle.com>, <lethal@linux-sh.org>, <rusty@rustcorp.com.au>, <damm@opensource.se>, <mst@redhat.com>, <rpurdie@rpsys.net>, <sguinot@lacie.co>, <sameo@linux.intel.com>, <broonie@opensource.wolfsonmicro.com>, <balajitk@ti.com>, <rnayak@ti.com>, <santosh.shilimkar@ti.com>, <hemanthv@ti.com>, <michael.hennerich@analog.com>, <vapier@gentoo.org>, <khali@linux-fr.org>, <jic23@cam.ac.uk>, <re.emese@gmail.com>, <linux@simtec.co.uk>
Subject: [PATCH 7/7] pwm: Modify backlight and led Kconfig aligning to pwm core
From: Arun Murthy <arun.murthy@stericsson.com>
Date: Tue, 28 Sep 2010 13:10:48 +0530
Cc: <linux-arm-kernel@lists.infradead.org>, <linux-kernel@vger.kernel.org>, <linux-mips@linux-mips.org>, <arun.murthy@stericsson.com>, <linus.walleij@stericsson.com>, <mattias.wallin@stericsson.com>
In-reply-to: <1285659648-21409-1-git-send-email-arun.murthy@stericsson.com>
References: <1285659648-21409-1-git-send-email-arun.murthy@stericsson.com>
Sender: linux-mips-bounce@linux-mips.org
PWM based backlight and led driver will not be calling the pwm drivers
through the pwm core driver and hence adding dependancy on the same.

Signed-off-by: Arun Murthy <arun.murthy@stericsson.com>
Acked-by: Linus Walleij <linus.walleij@stericsson.com>
---
 drivers/leds/Kconfig            |    2 +-
 drivers/pwm/Kconfig             |    2 --
 drivers/video/backlight/Kconfig |    2 +-
 3 files changed, 2 insertions(+), 4 deletions(-)

diff --git a/drivers/leds/Kconfig b/drivers/leds/Kconfig
index e411262..eba388f 100644
--- a/drivers/leds/Kconfig
+++ b/drivers/leds/Kconfig
@@ -244,7 +244,7 @@ config LEDS_DAC124S085
 
 config LEDS_PWM
        tristate "PWM driven LED Support"
-       depends on HAVE_PWM
+       depends on HAVE_PWM || PWM_CORE
        help
          This option enables support for pwm driven LEDs
 
diff --git a/drivers/pwm/Kconfig b/drivers/pwm/Kconfig
index e347365..1f8cbc0 100644
--- a/drivers/pwm/Kconfig
+++ b/drivers/pwm/Kconfig
@@ -17,7 +17,6 @@ if PWM_DEVICES
 config AB8500_PWM
        bool "AB8500 PWM support"
        depends on AB8500_CORE
-       select HAVE_PWM
        help
          This driver exports functions to enable/disble/config/free Pulse
          Width Modulation in the Analog Baseband Chip AB8500.
@@ -26,7 +25,6 @@ config AB8500_PWM
 config TWL6030_PWM
        tristate "TWL6030 PWM (Pulse Width Modulator) Support"
        depends on TWL4030_CORE
-       select HAVE_PWM
        default n
        help
          Say yes here if you want support for TWL6030 PWM.
diff --git a/drivers/video/backlight/Kconfig b/drivers/video/backlight/Kconfig
index e54a337..73fc17b 100644
--- a/drivers/video/backlight/Kconfig
+++ b/drivers/video/backlight/Kconfig
@@ -217,7 +217,7 @@ config BACKLIGHT_CARILLO_RANCH
 
 config BACKLIGHT_PWM
        tristate "Generic PWM based Backlight Driver"
-       depends on HAVE_PWM
+       depends on HAVE_PWM || PWM_CORE
        help
          If you have a LCD backlight adjustable by PWM, say Y to enable
          this driver.
-- 
1.7.2.dirty


<Prev in Thread] Current Thread [Next in Thread>