diff options
author | Gerd Knorr <devnull@localhost> | 2004-11-17 18:47:47 +0000 |
---|---|---|
committer | Gerd Knorr <devnull@localhost> | 2004-11-17 18:47:47 +0000 |
commit | e0513c5a52d121e2790e6cc07c97ff59b7200c70 (patch) | |
tree | 789c62112009166162ae043afee80224d3d9f38c /linux/drivers/media/video/bttv-if.c | |
parent | 173fb3335b542114718953d91826268db663f865 (diff) | |
download | mediapointer-dvb-s2-e0513c5a52d121e2790e6cc07c97ff59b7200c70.tar.gz mediapointer-dvb-s2-e0513c5a52d121e2790e6cc07c97ff59b7200c70.tar.bz2 |
- misc minor cleanups and card-specific fixes.
Diffstat (limited to 'linux/drivers/media/video/bttv-if.c')
-rw-r--r-- | linux/drivers/media/video/bttv-if.c | 14 |
1 files changed, 12 insertions, 2 deletions
diff --git a/linux/drivers/media/video/bttv-if.c b/linux/drivers/media/video/bttv-if.c index f96c33ae0..a71afec52 100644 --- a/linux/drivers/media/video/bttv-if.c +++ b/linux/drivers/media/video/bttv-if.c @@ -1,5 +1,5 @@ /* - $Id: bttv-if.c,v 1.3 2004/10/13 10:39:00 kraxel Exp $ + $Id: bttv-if.c,v 1.4 2004/11/17 18:47:47 kraxel Exp $ bttv-if.c -- old gpio interface to other kernel modules don't use in new code, will go away in 2.7 @@ -50,6 +50,8 @@ EXPORT_SYMBOL(bttv_i2c_call); int bttv_get_cardinfo(unsigned int card, int *type, unsigned *cardid) { + printk("The bttv_* interface is obsolete and will go away,\n" + "please use the new, sysfs based interface instead.\n"); if (card >= bttv_num) { return -1; } @@ -67,7 +69,8 @@ struct pci_dev* bttv_get_pcidev(unsigned int card) int bttv_get_id(unsigned int card) { - printk("bttv_get_id is obsolete, use bttv_get_cardinfo instead\n"); + printk("The bttv_* interface is obsolete and will go away,\n" + "please use the new, sysfs based interface instead.\n"); if (card >= bttv_num) { return -1; } @@ -154,6 +157,13 @@ wait_queue_head_t* bttv_get_gpio_queue(unsigned int card) return &btv->gpioq; } +void bttv_i2c_call(unsigned int card, unsigned int cmd, void *arg) +{ + if (card >= bttv_num) + return; + bttv_call_i2c_clients(&bttvs[card], cmd, arg); +} + /* * Local variables: * c-basic-offset: 8 |