Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: Linux: Kernel

2.6.22-rc6-mm1: TUNER_TEA5761 kconfig fixes

 

 

Linux kernel RSS feed   Index | Next | Previous | View Threaded


bunk at stusta

Jul 1, 2007, 1:23 PM

Post #1 of 2 (112 views)
Permalink
2.6.22-rc6-mm1: TUNER_TEA5761 kconfig fixes

On Thu, Jun 28, 2007 at 03:43:21AM -0700, Andrew Morton wrote:
>...
> Changes since 2.6.22-rc4-mm2:
>...
> git-dvb.patch
>...
> git trees
>...


The following doesn't make much sense:

drivers/media/video/Kconfig:
...
config TUNER_TEA5761
tristate "TEA 5761 radio tuner (EXPERIMENTAL)"
...

drivers/media/video/Makefile:
...
ifneq ($(CONFIG_TUNER_TEA5761),)
tuner-objs += tea5761.o
endif
...

With this setup, TUNER_TEA5761=m is equivalent to TUNER_TEA5761=y.

This patch therefore changes TUNER_TEA5761 to a bool.

The missing dependency on EXPERIMENTAL the prompt text indicates also
gets added by this patch.

Additionally, the Makefile entry can now be written in a more compact way.

Signed-off-by: Adrian Bunk <bunk [at] stusta>

---

BTW: tea5761.c is currently completely unused.

drivers/media/video/Kconfig | 3 ++-
drivers/media/video/Makefile | 4 +---
2 files changed, 3 insertions(+), 4 deletions(-)

--- linux-2.6.22-rc6-mm1/drivers/media/video/Kconfig.old 2007-06-30 03:51:13.000000000 +0200
+++ linux-2.6.22-rc6-mm1/drivers/media/video/Kconfig 2007-06-30 03:51:40.000000000 +0200
@@ -490,7 +490,8 @@
If in doubt, say N.

config TUNER_TEA5761
- tristate "TEA 5761 radio tuner (EXPERIMENTAL)"
+ bool "TEA 5761 radio tuner (EXPERIMENTAL)"
+ depends on EXPERIMENTAL
depends on I2C
select VIDEO_TUNER
help
--- linux-2.6.22-rc6-mm1/drivers/media/video/Makefile.old 2007-06-30 03:52:00.000000000 +0200
+++ linux-2.6.22-rc6-mm1/drivers/media/video/Makefile 2007-06-30 03:53:25.000000000 +0200
@@ -7,9 +7,7 @@
tuner-objs := tuner-core.o tuner-types.o tuner-simple.o \
mt20xx.o tda8290.o tea5767.o tda9887.o

-ifneq ($(CONFIG_TUNER_TEA5761),)
- tuner-objs += tea5761.o
-endif
+tuner-$(CONFIG_TUNER_TEA5761) += tea5761.o

msp3400-objs := msp3400-driver.o msp3400-kthreads.o

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo [at] vger
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/


mkrufky at linuxtv

Jul 1, 2007, 2:29 PM

Post #2 of 2 (98 views)
Permalink
Re: 2.6.22-rc6-mm1: TUNER_TEA5761 kconfig fixes [In reply to]

Adrian Bunk wrote:
> On Thu, Jun 28, 2007 at 03:43:21AM -0700, Andrew Morton wrote:
>
>> ...
>> Changes since 2.6.22-rc4-mm2:
>> ...
>> git-dvb.patch
>> ...
>> git trees
>> ...
>>
>
>
> The following doesn't make much sense:
>
> drivers/media/video/Kconfig:
> ...
> config TUNER_TEA5761
> tristate "TEA 5761 radio tuner (EXPERIMENTAL)"
> ...
>
> drivers/media/video/Makefile:
> ...
> ifneq ($(CONFIG_TUNER_TEA5761),)
> tuner-objs += tea5761.o
> endif
> ...
>
> With this setup, TUNER_TEA5761=m is equivalent to TUNER_TEA5761=y.
>
> This patch therefore changes TUNER_TEA5761 to a bool.
>
> The missing dependency on EXPERIMENTAL the prompt text indicates also
> gets added by this patch.
>
> Additionally, the Makefile entry can now be written in a more compact way.
>
> Signed-off-by: Adrian Bunk <bunk [at] stusta>
>
Acked-by: Michael Krufky <mkrufky [at] linuxtv>

Thanks, Adrian

Mauro, I'll push this into hg and send you a pull request.
> ---
>
> BTW: tea5761.c is currently completely unused.
>
> drivers/media/video/Kconfig | 3 ++-
> drivers/media/video/Makefile | 4 +---
> 2 files changed, 3 insertions(+), 4 deletions(-)
>
> --- linux-2.6.22-rc6-mm1/drivers/media/video/Kconfig.old 2007-06-30 03:51:13.000000000 +0200
> +++ linux-2.6.22-rc6-mm1/drivers/media/video/Kconfig 2007-06-30 03:51:40.000000000 +0200
> @@ -490,7 +490,8 @@
> If in doubt, say N.
>
> config TUNER_TEA5761
> - tristate "TEA 5761 radio tuner (EXPERIMENTAL)"
> + bool "TEA 5761 radio tuner (EXPERIMENTAL)"
> + depends on EXPERIMENTAL
> depends on I2C
> select VIDEO_TUNER
> help
> --- linux-2.6.22-rc6-mm1/drivers/media/video/Makefile.old 2007-06-30 03:52:00.000000000 +0200
> +++ linux-2.6.22-rc6-mm1/drivers/media/video/Makefile 2007-06-30 03:53:25.000000000 +0200
> @@ -7,9 +7,7 @@
> tuner-objs := tuner-core.o tuner-types.o tuner-simple.o \
> mt20xx.o tda8290.o tea5767.o tda9887.o
>
> -ifneq ($(CONFIG_TUNER_TEA5761),)
> - tuner-objs += tea5761.o
> -endif
> +tuner-$(CONFIG_TUNER_TEA5761) += tea5761.o
>
> msp3400-objs := msp3400-driver.o msp3400-kthreads.o
>
>

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo [at] vger
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/

Linux kernel RSS feed   Index | Next | Previous | View Threaded
 
 


Interested in having your list archived? Contact Gossamer Threads
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.