linux-media.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] [media] blackfin Kconfig: select is evil; use, instead depends on
@ 2012-12-27 23:32 Mauro Carvalho Chehab
  2012-12-31  9:41 ` Scott Jiang
  0 siblings, 1 reply; 3+ messages in thread
From: Mauro Carvalho Chehab @ 2012-12-27 23:32 UTC (permalink / raw)
  Cc: Mauro Carvalho Chehab, Linux Media Mailing List

Select is evil as it has issues with dependencies. Better to convert
it to use depends on.

That fixes a breakage with out-of-tree compilation of the media
tree.

Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
---
 drivers/media/platform/blackfin/Kconfig | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/drivers/media/platform/blackfin/Kconfig b/drivers/media/platform/blackfin/Kconfig
index 519990e..cc23997 100644
--- a/drivers/media/platform/blackfin/Kconfig
+++ b/drivers/media/platform/blackfin/Kconfig
@@ -2,7 +2,6 @@ config VIDEO_BLACKFIN_CAPTURE
 	tristate "Blackfin Video Capture Driver"
 	depends on VIDEO_V4L2 && BLACKFIN && I2C
 	select VIDEOBUF2_DMA_CONTIG
-	select VIDEO_BLACKFIN_PPI
 	help
 	  V4L2 bridge driver for Blackfin video capture device.
 	  Choose PPI or EPPI as its interface.
@@ -12,3 +11,5 @@ config VIDEO_BLACKFIN_CAPTURE
 
 config VIDEO_BLACKFIN_PPI
 	tristate
+	depends on VIDEO_BLACKFIN_CAPTURE
+	default VIDEO_BLACKFIN_CAPTURE
-- 
1.7.11.7


^ permalink raw reply related	[flat|nested] 3+ messages in thread

* Re: [PATCH] [media] blackfin Kconfig: select is evil; use, instead depends on
  2012-12-27 23:32 [PATCH] [media] blackfin Kconfig: select is evil; use, instead depends on Mauro Carvalho Chehab
@ 2012-12-31  9:41 ` Scott Jiang
  2012-12-31 20:41   ` Mauro Carvalho Chehab
  0 siblings, 1 reply; 3+ messages in thread
From: Scott Jiang @ 2012-12-31  9:41 UTC (permalink / raw)
  To: Mauro Carvalho Chehab; +Cc: Linux Media Mailing List

2012/12/28 Mauro Carvalho Chehab <mchehab@redhat.com>:
> Select is evil as it has issues with dependencies. Better to convert
> it to use depends on.
>
> That fixes a breakage with out-of-tree compilation of the media
> tree.
>
> Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
> ---
>  drivers/media/platform/blackfin/Kconfig | 3 ++-
>  1 file changed, 2 insertions(+), 1 deletion(-)
>
> diff --git a/drivers/media/platform/blackfin/Kconfig b/drivers/media/platform/blackfin/Kconfig
> index 519990e..cc23997 100644
> --- a/drivers/media/platform/blackfin/Kconfig
> +++ b/drivers/media/platform/blackfin/Kconfig
> @@ -2,7 +2,6 @@ config VIDEO_BLACKFIN_CAPTURE
>         tristate "Blackfin Video Capture Driver"
>         depends on VIDEO_V4L2 && BLACKFIN && I2C
>         select VIDEOBUF2_DMA_CONTIG
> -       select VIDEO_BLACKFIN_PPI
>         help
>           V4L2 bridge driver for Blackfin video capture device.
>           Choose PPI or EPPI as its interface.
> @@ -12,3 +11,5 @@ config VIDEO_BLACKFIN_CAPTURE
>
>  config VIDEO_BLACKFIN_PPI
>         tristate
> +       depends on VIDEO_BLACKFIN_CAPTURE
> +       default VIDEO_BLACKFIN_CAPTURE
> --

There are other drivers select this module.

config VIDEO_BLACKFIN_DISPLAY
        tristate "Blackfin Video Display Driver"
        depends on VIDEO_V4L2 && BLACKFIN && I2C
        select VIDEOBUF2_DMA_CONTIG
        select VIDEO_BLACKFIN_PPI

So should I move all other drivers to the depend on list?

Scott

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [PATCH] [media] blackfin Kconfig: select is evil; use, instead depends on
  2012-12-31  9:41 ` Scott Jiang
@ 2012-12-31 20:41   ` Mauro Carvalho Chehab
  0 siblings, 0 replies; 3+ messages in thread
From: Mauro Carvalho Chehab @ 2012-12-31 20:41 UTC (permalink / raw)
  To: Scott Jiang; +Cc: Linux Media Mailing List

Em Mon, 31 Dec 2012 17:41:25 +0800
Scott Jiang <scott.jiang.linux@gmail.com> escreveu:

> 2012/12/28 Mauro Carvalho Chehab <mchehab@redhat.com>:
> > Select is evil as it has issues with dependencies. Better to convert
> > it to use depends on.
> >
> > That fixes a breakage with out-of-tree compilation of the media
> > tree.
> >
> > Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
> > ---
> >  drivers/media/platform/blackfin/Kconfig | 3 ++-
> >  1 file changed, 2 insertions(+), 1 deletion(-)
> >
> > diff --git a/drivers/media/platform/blackfin/Kconfig b/drivers/media/platform/blackfin/Kconfig
> > index 519990e..cc23997 100644
> > --- a/drivers/media/platform/blackfin/Kconfig
> > +++ b/drivers/media/platform/blackfin/Kconfig
> > @@ -2,7 +2,6 @@ config VIDEO_BLACKFIN_CAPTURE
> >         tristate "Blackfin Video Capture Driver"
> >         depends on VIDEO_V4L2 && BLACKFIN && I2C
> >         select VIDEOBUF2_DMA_CONTIG
> > -       select VIDEO_BLACKFIN_PPI
> >         help
> >           V4L2 bridge driver for Blackfin video capture device.
> >           Choose PPI or EPPI as its interface.
> > @@ -12,3 +11,5 @@ config VIDEO_BLACKFIN_CAPTURE
> >
> >  config VIDEO_BLACKFIN_PPI
> >         tristate
> > +       depends on VIDEO_BLACKFIN_CAPTURE
> > +       default VIDEO_BLACKFIN_CAPTURE
> > --
> 
> There are other drivers select this module.
> 
> config VIDEO_BLACKFIN_DISPLAY
>         tristate "Blackfin Video Display Driver"
>         depends on VIDEO_V4L2 && BLACKFIN && I2C
>         select VIDEOBUF2_DMA_CONTIG
>         select VIDEO_BLACKFIN_PPI
> 
> So should I move all other drivers to the depend on list?

Hmm... I didn't notice.

Yes, using depends on generally better, as it warrants that all
dependencies are properly parsed.

> 
> Scott


-- 

Cheers,
Mauro

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2012-12-31 20:42 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-12-27 23:32 [PATCH] [media] blackfin Kconfig: select is evil; use, instead depends on Mauro Carvalho Chehab
2012-12-31  9:41 ` Scott Jiang
2012-12-31 20:41   ` Mauro Carvalho Chehab

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).