public inbox for linux-media@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH] [media] si4713: Remove "select SI4713"
@ 2014-02-09 14:56 Paul Bolle
  2014-02-09 15:18 ` Hans Verkuil
  0 siblings, 1 reply; 6+ messages in thread
From: Paul Bolle @ 2014-02-09 14:56 UTC (permalink / raw)
  To: Mauro Carvalho Chehab; +Cc: linux-media, linux-kernel

Commits 7391232e1215 ("[media] si4713: Reorganized drivers/media/radio
directory") and b874b39fcd2f ("[media] si4713: Added the USB driver for
Si4713") both added a "select SI4713". But there's no Kconfig symbol
SI4713, so these selects are nops. It's not clear why they were added
but it's safe to remove them anyway.

Signed-off-by: Paul Bolle <pebolle@tiscali.nl>
---
Untested!

 drivers/media/radio/si4713/Kconfig | 2 --
 1 file changed, 2 deletions(-)

diff --git a/drivers/media/radio/si4713/Kconfig b/drivers/media/radio/si4713/Kconfig
index a7c3ba8..ed51ed0 100644
--- a/drivers/media/radio/si4713/Kconfig
+++ b/drivers/media/radio/si4713/Kconfig
@@ -1,7 +1,6 @@
 config USB_SI4713
 	tristate "Silicon Labs Si4713 FM Radio Transmitter support with USB"
 	depends on USB && RADIO_SI4713
-	select SI4713
 	---help---
 	  This is a driver for USB devices with the Silicon Labs SI4713
 	  chip. Currently these devices are known to work.
@@ -16,7 +15,6 @@ config USB_SI4713
 config PLATFORM_SI4713
 	tristate "Silicon Labs Si4713 FM Radio Transmitter support with I2C"
 	depends on I2C && RADIO_SI4713
-	select SI4713
 	---help---
 	  This is a driver for I2C devices with the Silicon Labs SI4713
 	  chip.
-- 
1.8.5.3




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

* Re: [PATCH] [media] si4713: Remove "select SI4713"
  2014-02-09 14:56 [PATCH] [media] si4713: Remove "select SI4713" Paul Bolle
@ 2014-02-09 15:18 ` Hans Verkuil
  2014-02-09 15:27   ` Paul Bolle
  0 siblings, 1 reply; 6+ messages in thread
From: Hans Verkuil @ 2014-02-09 15:18 UTC (permalink / raw)
  To: Paul Bolle; +Cc: Mauro Carvalho Chehab, linux-media, linux-kernel

On 02/09/2014 03:56 PM, Paul Bolle wrote:
> Commits 7391232e1215 ("[media] si4713: Reorganized drivers/media/radio
> directory") and b874b39fcd2f ("[media] si4713: Added the USB driver for
> Si4713") both added a "select SI4713". But there's no Kconfig symbol
> SI4713, so these selects are nops. It's not clear why they were added
> but it's safe to remove them anyway.
> 
> Signed-off-by: Paul Bolle <pebolle@tiscali.nl>

USB_SI4713 and PLATFORM_SI4713 both depend on I2C_SI4713. So the select
should be I2C_SI4713. If you can post a patch fixing that, then I'll pick
it up for 3.14.

With the addition of the USB si4713 driver things moved around and were
renamed, and these selects were missed.

Regards,

	Hans

> ---
> Untested!
> 
>  drivers/media/radio/si4713/Kconfig | 2 --
>  1 file changed, 2 deletions(-)
> 
> diff --git a/drivers/media/radio/si4713/Kconfig b/drivers/media/radio/si4713/Kconfig
> index a7c3ba8..ed51ed0 100644
> --- a/drivers/media/radio/si4713/Kconfig
> +++ b/drivers/media/radio/si4713/Kconfig
> @@ -1,7 +1,6 @@
>  config USB_SI4713
>  	tristate "Silicon Labs Si4713 FM Radio Transmitter support with USB"
>  	depends on USB && RADIO_SI4713
> -	select SI4713
>  	---help---
>  	  This is a driver for USB devices with the Silicon Labs SI4713
>  	  chip. Currently these devices are known to work.
> @@ -16,7 +15,6 @@ config USB_SI4713
>  config PLATFORM_SI4713
>  	tristate "Silicon Labs Si4713 FM Radio Transmitter support with I2C"
>  	depends on I2C && RADIO_SI4713
> -	select SI4713
>  	---help---
>  	  This is a driver for I2C devices with the Silicon Labs SI4713
>  	  chip.
> 


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

* Re: [PATCH] [media] si4713: Remove "select SI4713"
  2014-02-09 15:18 ` Hans Verkuil
@ 2014-02-09 15:27   ` Paul Bolle
  2014-02-09 17:04     ` Hans Verkuil
  0 siblings, 1 reply; 6+ messages in thread
From: Paul Bolle @ 2014-02-09 15:27 UTC (permalink / raw)
  To: Hans Verkuil; +Cc: Mauro Carvalho Chehab, linux-media, linux-kernel

Hans,

On Sun, 2014-02-09 at 16:18 +0100, Hans Verkuil wrote:
> USB_SI4713 and PLATFORM_SI4713 both depend on I2C_SI4713. So the select
> should be I2C_SI4713.

Are you sure? I've actually scanned si4713.c before submitting this
patch and I couldn't find anything in it that these other two modules
require. Have I overlooked anything?

>  If you can post a patch fixing that, then I'll pick
> it up for 3.14.
> 
> With the addition of the USB si4713 driver things moved around and were
> renamed, and these selects were missed.

Thanks,


Paul Bolle


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

* Re: [PATCH] [media] si4713: Remove "select SI4713"
  2014-02-09 15:27   ` Paul Bolle
@ 2014-02-09 17:04     ` Hans Verkuil
  2014-02-09 17:37       ` Paul Bolle
  0 siblings, 1 reply; 6+ messages in thread
From: Hans Verkuil @ 2014-02-09 17:04 UTC (permalink / raw)
  To: Paul Bolle; +Cc: Mauro Carvalho Chehab, linux-media, linux-kernel

On 02/09/2014 04:27 PM, Paul Bolle wrote:
> Hans,
> 
> On Sun, 2014-02-09 at 16:18 +0100, Hans Verkuil wrote:
>> USB_SI4713 and PLATFORM_SI4713 both depend on I2C_SI4713. So the select
>> should be I2C_SI4713.
> 
> Are you sure? I've actually scanned si4713.c before submitting this
> patch and I couldn't find anything in it that these other two modules
> require. Have I overlooked anything?

The i2c module is loaded by v4l2_i2c_new_subdev_board().

Regards,

	Hans

> 
>>  If you can post a patch fixing that, then I'll pick
>> it up for 3.14.
>>
>> With the addition of the USB si4713 driver things moved around and were
>> renamed, and these selects were missed.
> 
> Thanks,
> 
> 
> Paul Bolle
> 
> --
> To unsubscribe from this list: send the line "unsubscribe linux-media" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at  http://vger.kernel.org/majordomo-info.html
> 


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

* Re: [PATCH] [media] si4713: Remove "select SI4713"
  2014-02-09 17:04     ` Hans Verkuil
@ 2014-02-09 17:37       ` Paul Bolle
  2014-02-09 17:45         ` Hans Verkuil
  0 siblings, 1 reply; 6+ messages in thread
From: Paul Bolle @ 2014-02-09 17:37 UTC (permalink / raw)
  To: Hans Verkuil; +Cc: Mauro Carvalho Chehab, linux-media, linux-kernel

On Sun, 2014-02-09 at 18:04 +0100, Hans Verkuil wrote:
> The i2c module is loaded by v4l2_i2c_new_subdev_board().

I see. Thanks.

But now I wonder: is I2C_SI4713 useful on itself? Would anyone use
si4713.ko without using either radio-usb-si4713.ko or
radio-platform-si4713.ko? Because it seems that if what people actually
use is radio-usb-si4713.ko or radio-platform-si4713.ko than I2C_SI4713
could be made a 'select only' Kconfig symbol (that won't show up in
menuconfig), couldn't it?


Paul Bolle


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

* Re: [PATCH] [media] si4713: Remove "select SI4713"
  2014-02-09 17:37       ` Paul Bolle
@ 2014-02-09 17:45         ` Hans Verkuil
  0 siblings, 0 replies; 6+ messages in thread
From: Hans Verkuil @ 2014-02-09 17:45 UTC (permalink / raw)
  To: Paul Bolle; +Cc: Mauro Carvalho Chehab, linux-media, linux-kernel

On 02/09/2014 06:37 PM, Paul Bolle wrote:
> On Sun, 2014-02-09 at 18:04 +0100, Hans Verkuil wrote:
>> The i2c module is loaded by v4l2_i2c_new_subdev_board().
> 
> I see. Thanks.
> 
> But now I wonder: is I2C_SI4713 useful on itself? Would anyone use
> si4713.ko without using either radio-usb-si4713.ko or
> radio-platform-si4713.ko? Because it seems that if what people actually
> use is radio-usb-si4713.ko or radio-platform-si4713.ko than I2C_SI4713
> could be made a 'select only' Kconfig symbol (that won't show up in
> menuconfig), couldn't it?

It's possible to create an out-of-tree driver that uses the i2c si4713
driver. So yes, it should be possible to just select the i2c driver without
any of the others.

Regards,

	Hans

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

end of thread, other threads:[~2014-02-09 17:45 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-02-09 14:56 [PATCH] [media] si4713: Remove "select SI4713" Paul Bolle
2014-02-09 15:18 ` Hans Verkuil
2014-02-09 15:27   ` Paul Bolle
2014-02-09 17:04     ` Hans Verkuil
2014-02-09 17:37       ` Paul Bolle
2014-02-09 17:45         ` Hans Verkuil

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox