Skip to content

Commit

Permalink
[media] siano: break it into common, mmc and usb
Browse files Browse the repository at this point in the history
siano is, in fact, 2 drivers: one for MMC and one for USB, plus
a common bus-independent code. Break it accordingly.

Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
  • Loading branch information
Mauro Carvalho Chehab committed Aug 14, 2012
1 parent ed0c8b5 commit 0013ca8
Show file tree
Hide file tree
Showing 22 changed files with 48 additions and 33 deletions.
1 change: 1 addition & 0 deletions drivers/media/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -163,6 +163,7 @@ source "drivers/media/radio/Kconfig"
source "drivers/media/dvb-core/Kconfig"
source "drivers/media/pci/Kconfig"
source "drivers/media/usb/Kconfig"
source "drivers/media/mmc/Kconfig"

comment "Supported FireWire (IEEE 1394) Adapters"
depends on DVB_CORE && FIREWIRE
Expand Down
2 changes: 1 addition & 1 deletion drivers/media/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -11,5 +11,5 @@ endif
obj-y += v4l2-core/ tuners/ common/ rc/ video/

obj-$(CONFIG_VIDEO_DEV) += radio/
obj-$(CONFIG_DVB_CORE) += dvb-core/ pci/ dvb-frontends/ usb/
obj-$(CONFIG_DVB_CORE) += dvb-core/ pci/ dvb-frontends/ usb/ mmc/
obj-$(CONFIG_DVB_FIREDTV) += firewire/
1 change: 1 addition & 0 deletions drivers/media/common/Kconfig
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
source "drivers/media/common/b2c2/Kconfig"
source "drivers/media/common/saa7146/Kconfig"
source "drivers/media/common/siano/Kconfig"
2 changes: 1 addition & 1 deletion drivers/media/common/Makefile
Original file line number Diff line number Diff line change
@@ -1 +1 @@
obj-y += b2c2/ saa7146/
obj-y += b2c2/ saa7146/ siano/
17 changes: 17 additions & 0 deletions drivers/media/common/siano/Kconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
#
# Siano Mobile Silicon Digital TV device configuration
#

config SMS_SIANO_MDTV
tristate
depends on DVB_CORE && RC_CORE && HAS_DMA
depends on SMS_USB_DRV || SMS_SDIO_DRV
default y
---help---
Choose Y or M here if you have MDTV receiver with a Siano chipset.

To compile this driver as a module, choose M here
(The module will be called smsmdtv).

Further documentation on this driver can be found on the WWW
at http://www.siano-ms.com/
7 changes: 7 additions & 0 deletions drivers/media/common/siano/Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
smsmdtv-objs := smscoreapi.o sms-cards.o smsendian.o smsir.o

obj-$(CONFIG_SMS_SIANO_MDTV) += smsmdtv.o smsdvb.o

ccflags-y += -Idrivers/media/dvb-core
ccflags-y += $(extra-cflags-y) $(extra-cflags-m)

File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
1 change: 1 addition & 0 deletions drivers/media/mmc/Kconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
source "drivers/media/mmc/siano/Kconfig"
1 change: 1 addition & 0 deletions drivers/media/mmc/Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
obj-y := siano/
10 changes: 10 additions & 0 deletions drivers/media/mmc/siano/Kconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
#
# Siano Mobile Silicon Digital TV device configuration
#

config SMS_SDIO_DRV
tristate "Siano SMS1xxx based MDTV via SDIO interface"
depends on DVB_CORE && RC_CORE && HAS_DMA
depends on MMC
---help---
Choose if you would like to have Siano's support for SDIO interface
6 changes: 6 additions & 0 deletions drivers/media/mmc/siano/Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
obj-$(CONFIG_SMS_SDIO_DRV) += smssdio.o

ccflags-y += -Idrivers/media/dvb-core
ccflags-y += -Idrivers/media/common/siano
ccflags-y += $(extra-cflags-y) $(extra-cflags-m)

File renamed without changes.
26 changes: 1 addition & 25 deletions drivers/media/usb/siano/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -2,33 +2,9 @@
# Siano Mobile Silicon Digital TV device configuration
#

config SMS_SIANO_MDTV
config SMS_USB_DRV
tristate "Siano SMS1xxx based MDTV receiver"
depends on DVB_CORE && RC_CORE && HAS_DMA
---help---
Choose Y or M here if you have MDTV receiver with a Siano chipset.

To compile this driver as a module, choose M here
(The module will be called smsmdtv).

Further documentation on this driver can be found on the WWW
at http://www.siano-ms.com/

if SMS_SIANO_MDTV
menu "Siano module components"

# Hardware interfaces support

config SMS_USB_DRV
tristate "USB interface support"
depends on DVB_CORE && USB
---help---
Choose if you would like to have Siano's support for USB interface

config SMS_SDIO_DRV
tristate "SDIO interface support"
depends on DVB_CORE && MMC
---help---
Choose if you would like to have Siano's support for SDIO interface
endmenu
endif # SMS_SIANO_MDTV
7 changes: 1 addition & 6 deletions drivers/media/usb/siano/Makefile
Original file line number Diff line number Diff line change
@@ -1,11 +1,6 @@

smsmdtv-objs := smscoreapi.o sms-cards.o smsendian.o smsir.o

obj-$(CONFIG_SMS_SIANO_MDTV) += smsmdtv.o smsdvb.o
obj-$(CONFIG_SMS_USB_DRV) += smsusb.o
obj-$(CONFIG_SMS_SDIO_DRV) += smssdio.o

ccflags-y += -Idrivers/media/dvb-core

ccflags-y += -Idrivers/media/common/siano
ccflags-y += $(extra-cflags-y) $(extra-cflags-m)

0 comments on commit 0013ca8

Please sign in to comment.