summaryrefslogtreecommitdiff
path: root/linux/drivers/media/dvb/dvb-core
diff options
context:
space:
mode:
authorFlorian Schirmer <devnull@localhost>2003-01-18 22:52:32 +0000
committerFlorian Schirmer <devnull@localhost>2003-01-18 22:52:32 +0000
commit61cd7aec20f35a1dc21acd4cac05d5a8bafef9b5 (patch)
tree03b0c88900edf3a6496defb38e267bbcfd4afa8c /linux/drivers/media/dvb/dvb-core
parent2f28f60479940143524a333917f6ef4e6bacbcb8 (diff)
downloadmediapointer-dvb-s2-61cd7aec20f35a1dc21acd4cac05d5a8bafef9b5.tar.gz
mediapointer-dvb-s2-61cd7aec20f35a1dc21acd4cac05d5a8bafef9b5.tar.bz2
- add name field to struct dvb_adapter
- make it a const char* pointer
Diffstat (limited to 'linux/drivers/media/dvb/dvb-core')
-rw-r--r--linux/drivers/media/dvb/dvb-core/dvbdev.c3
-rw-r--r--linux/drivers/media/dvb/dvb-core/dvbdev.h3
2 files changed, 4 insertions, 2 deletions
diff --git a/linux/drivers/media/dvb/dvb-core/dvbdev.c b/linux/drivers/media/dvb/dvb-core/dvbdev.c
index e858b3945..d3a9ca092 100644
--- a/linux/drivers/media/dvb/dvb-core/dvbdev.c
+++ b/linux/drivers/media/dvb/dvb-core/dvbdev.c
@@ -279,7 +279,7 @@ skip:
}
-int dvb_register_adapter(struct dvb_adapter **padap, char *name)
+int dvb_register_adapter(struct dvb_adapter **padap, const char *name)
{
char dirname[10];
struct dvb_adapter *adap;
@@ -308,6 +308,7 @@ int dvb_register_adapter(struct dvb_adapter **padap, char *name)
sprintf(dirname, "adapter%d", num);
adap->devfs_handle = devfs_mk_dir(dvb_devfs_handle, dirname, NULL);
adap->num = num;
+ adap->name = name;
list_add_tail (&adap->list_head, &dvb_adapter_list);
diff --git a/linux/drivers/media/dvb/dvb-core/dvbdev.h b/linux/drivers/media/dvb/dvb-core/dvbdev.h
index 355d3a8d0..04c4d50fd 100644
--- a/linux/drivers/media/dvb/dvb-core/dvbdev.h
+++ b/linux/drivers/media/dvb/dvb-core/dvbdev.h
@@ -48,6 +48,7 @@ struct dvb_adapter {
devfs_handle_t devfs_handle;
struct list_head list_head;
struct list_head device_list;
+ const char *name;
};
@@ -70,7 +71,7 @@ struct dvb_device {
};
-extern int dvb_register_adapter (struct dvb_adapter **padap, char *name);
+extern int dvb_register_adapter (struct dvb_adapter **padap, const char *name);
extern int dvb_unregister_adapter (struct dvb_adapter *adap);
extern int dvb_register_device (struct dvb_adapter *adap,