diff options
author | Michael Krufky <mkrufky@linuxtv.org> | 2008-06-18 21:09:55 -0400 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@infradead.org> | 2008-07-20 06:22:27 -0400 |
commit | 1c11d546b6c31399ac60f42d3103227cc1164d80 (patch) | |
tree | 4998b2168547180e0cf2ed22b7d7279c485fe011 /drivers/media/dvb/siano/smsdvb.c | |
parent | dd5b2a5c2a6c793d855910864593ad26dd844154 (diff) |
V4L/DVB (8292): sms1xxx: add code to allow device-specific functionality
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>
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
Diffstat (limited to 'drivers/media/dvb/siano/smsdvb.c')
-rw-r--r-- | drivers/media/dvb/siano/smsdvb.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/drivers/media/dvb/siano/smsdvb.c b/drivers/media/dvb/siano/smsdvb.c index b17696fcbbc6..88b2bd2821dc 100644 --- a/drivers/media/dvb/siano/smsdvb.c +++ b/drivers/media/dvb/siano/smsdvb.c | |||
@@ -23,6 +23,7 @@ | |||
23 | #include <linux/init.h> | 23 | #include <linux/init.h> |
24 | 24 | ||
25 | #include "smscoreapi.h" | 25 | #include "smscoreapi.h" |
26 | #include "sms-cards.h" | ||
26 | 27 | ||
27 | DVB_DEFINE_MOD_OPT_ADAPTER_NR(adapter_nr); | 28 | DVB_DEFINE_MOD_OPT_ADAPTER_NR(adapter_nr); |
28 | 29 | ||
@@ -282,7 +283,7 @@ static void smsdvb_release(struct dvb_frontend *fe) | |||
282 | 283 | ||
283 | static struct dvb_frontend_ops smsdvb_fe_ops = { | 284 | static struct dvb_frontend_ops smsdvb_fe_ops = { |
284 | .info = { | 285 | .info = { |
285 | .name = "Siano Mobile Digital SMS10xx", | 286 | .name = "Siano Mobile Digital SMS1xxx", |
286 | .type = FE_OFDM, | 287 | .type = FE_OFDM, |
287 | .frequency_min = 44250000, | 288 | .frequency_min = 44250000, |
288 | .frequency_max = 867250000, | 289 | .frequency_max = 867250000, |
@@ -333,7 +334,9 @@ int smsdvb_hotplug(struct smscore_device_t *coredev, | |||
333 | } | 334 | } |
334 | 335 | ||
335 | /* register dvb adapter */ | 336 | /* register dvb adapter */ |
336 | rc = dvb_register_adapter(&client->adapter, "Siano Digital Receiver", | 337 | rc = dvb_register_adapter(&client->adapter, |
338 | sms_get_board( | ||
339 | smscore_get_board_id(coredev))->name, | ||
337 | THIS_MODULE, device, adapter_nr); | 340 | THIS_MODULE, device, adapter_nr); |
338 | if (rc < 0) { | 341 | if (rc < 0) { |
339 | printk(KERN_ERR "%s dvb_register_adapter() failed %d\n", | 342 | printk(KERN_ERR "%s dvb_register_adapter() failed %d\n", |