summaryrefslogtreecommitdiff
path: root/linux/drivers/media/dvb/siano/smscoreapi.c
diff options
context:
space:
mode:
authorMichael Krufky <mkrufky@linuxtv.org>2008-06-18 18:09:55 -0400
committerMichael Krufky <mkrufky@linuxtv.org>2008-06-18 18:09:55 -0400
commit7d5659a08c72baad36584da3d7a86b2e7bc0d155 (patch)
tree78310e09fcefbc4782139b06ecdc3c113db58a12 /linux/drivers/media/dvb/siano/smscoreapi.c
parent7532998b0704e8cffabc134d9a21a26a31900fc8 (diff)
downloadmediapointer-dvb-s2-7d5659a08c72baad36584da3d7a86b2e7bc0d155.tar.gz
mediapointer-dvb-s2-7d5659a08c72baad36584da3d7a86b2e7bc0d155.tar.bz2
sms1xxx: add code to allow device-specific functionality
From: Michael Krufky <mkrufky@linuxtv.org> Set board ID in the usb_device_id table's driver_info field. Use board name when registering the dvb adapter. Signed-off-by: Michael Krufky <mkrufky@linuxtv.org>
Diffstat (limited to 'linux/drivers/media/dvb/siano/smscoreapi.c')
-rw-r--r--linux/drivers/media/dvb/siano/smscoreapi.c12
1 files changed, 12 insertions, 0 deletions
diff --git a/linux/drivers/media/dvb/siano/smscoreapi.c b/linux/drivers/media/dvb/siano/smscoreapi.c
index 49be2b7e9..e918c02ba 100644
--- a/linux/drivers/media/dvb/siano/smscoreapi.c
+++ b/linux/drivers/media/dvb/siano/smscoreapi.c
@@ -101,8 +101,20 @@ struct smscore_device_t {
struct completion version_ex_done, data_download_done, trigger_done;
struct completion init_device_done, reload_start_done, resume_done;
+
+ int board_id;
};
+void smscore_set_board_id(struct smscore_device_t *core, int id)
+{
+ core->board_id = id;
+}
+
+int smscore_get_board_id(struct smscore_device_t *core)
+{
+ return core->board_id;
+}
+
struct smscore_registry_entry_t {
struct list_head entry;
char devpath[32];