Skip to content

Commit

Permalink
[media] siano: split debugfs code into a separate file
Browse files Browse the repository at this point in the history
To avoid mixing two different things at the same place, move the
debugfs code into a separate file.

Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
  • Loading branch information
Mauro Carvalho Chehab committed Mar 21, 2013
1 parent 3f6b87c commit 503efe5
Show file tree
Hide file tree
Showing 7 changed files with 666 additions and 433 deletions.
12 changes: 12 additions & 0 deletions drivers/media/common/siano/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -17,3 +17,15 @@ config SMS_SIANO_RC
default y
---help---
Choose Y to select Remote Controller support for Siano driver.

config SMS_SIANO_DEBUGFS
bool "Enable debugfs for smsdvb"
depends on SMS_SIANO_MDTV
depends on DEBUG_FS
depends on SMS_USB_DRV
---help---
Choose Y to enable visualizing a dump of the frontend
statistics response packets via debugfs. Currently, works
only with Siano USB devices.

Useful only for developers. In doubt, say N.
5 changes: 5 additions & 0 deletions drivers/media/common/siano/Makefile
Original file line number Diff line number Diff line change
@@ -1,11 +1,16 @@
smsmdtv-objs := smscoreapi.o sms-cards.o smsendian.o
smsdvb-objs := smsdvb-main.o

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

ifeq ($(CONFIG_SMS_SIANO_RC),y)
smsmdtv-objs += smsir.o
endif

ifeq ($(CONFIG_SMS_SIANO_DEBUGFS),y)
smsdvb-objs += smsdvb-debugfs.o
endif

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

6 changes: 6 additions & 0 deletions drivers/media/common/siano/smscoreapi.h
Original file line number Diff line number Diff line change
Expand Up @@ -184,6 +184,12 @@ struct smscore_device_t {
/* Infrared (IR) */
struct ir_t ir;

/*
* Identify if device is USB or not.
* Used by smsdvb-sysfs to know the root node for debugfs
*/
bool is_usb_device;

int led_state;
};

Expand Down
Loading

0 comments on commit 503efe5

Please sign in to comment.