summaryrefslogtreecommitdiff
path: root/linux
diff options
context:
space:
mode:
authorHolger Waechtler <devnull@localhost>2002-10-18 11:52:57 +0000
committerHolger Waechtler <devnull@localhost>2002-10-18 11:52:57 +0000
commit3a00ed96026e71929590fa371dc9ad66cd8ec637 (patch)
treebf7622ad5c606dead5d57fc09fb58e243269397c /linux
parent7254b555e227ccda9407d6c4ed7d8bb90e591adc (diff)
downloadmediapointer-dvb-s2-3a00ed96026e71929590fa371dc9ad66cd8ec637.tar.gz
mediapointer-dvb-s2-3a00ed96026e71929590fa371dc9ad66cd8ec637.tar.bz2
make devbdev_template a const pointer
Diffstat (limited to 'linux')
-rw-r--r--linux/drivers/media/dvb/dvb-core/dvbdev.c2
-rw-r--r--linux/drivers/media/dvb/dvb-core/dvbdev.h23
2 files changed, 15 insertions, 10 deletions
diff --git a/linux/drivers/media/dvb/dvb-core/dvbdev.c b/linux/drivers/media/dvb/dvb-core/dvbdev.c
index 27a45beef..0fe8dcb4d 100644
--- a/linux/drivers/media/dvb/dvb-core/dvbdev.c
+++ b/linux/drivers/media/dvb/dvb-core/dvbdev.c
@@ -199,7 +199,7 @@ skip:
int dvb_register_device(struct dvb_adapter *adap, struct dvb_device **pdvbdev,
- struct dvb_device *template, void *priv, int type)
+ const struct dvb_device *template, void *priv, int type)
{
u32 id;
char name [20];
diff --git a/linux/drivers/media/dvb/dvb-core/dvbdev.h b/linux/drivers/media/dvb/dvb-core/dvbdev.h
index 33f4ce263..355d3a8d0 100644
--- a/linux/drivers/media/dvb/dvb-core/dvbdev.h
+++ b/linux/drivers/media/dvb/dvb-core/dvbdev.h
@@ -70,16 +70,21 @@ struct dvb_device {
};
-int dvb_register_device(struct dvb_adapter *adap, struct dvb_device **pdvbdev,
- struct dvb_device *template, void *priv, int type);
-void dvb_unregister_device(struct dvb_device *dvbdev);
+extern int dvb_register_adapter (struct dvb_adapter **padap, char *name);
+extern int dvb_unregister_adapter (struct dvb_adapter *adap);
-int dvb_register_adapter(struct dvb_adapter **padap, char *name);
-int dvb_unregister_adapter(struct dvb_adapter *adap);
+extern int dvb_register_device (struct dvb_adapter *adap,
+ struct dvb_device **pdvbdev,
+ const struct dvb_device *template,
+ void *priv,
+ int type);
-int dvb_generic_ioctl(struct inode *inode, struct file *file,
- unsigned int cmd, unsigned long arg);
-int dvb_generic_open(struct inode *inode, struct file *file);
-int dvb_generic_release(struct inode *inode, struct file *file);
+extern void dvb_unregister_device (struct dvb_device *dvbdev);
+
+extern int dvb_generic_open (struct inode *inode, struct file *file);
+extern int dvb_generic_release (struct inode *inode, struct file *file);
+extern int dvb_generic_ioctl (struct inode *inode, struct file *file,
+ unsigned int cmd, unsigned long arg);
#endif /* #ifndef _DVBDEV_H_ */
+