summaryrefslogtreecommitdiff
path: root/linux/drivers/media/dvb/dvb-core
diff options
context:
space:
mode:
authorMauro Carvalho Chehab <mchehab@redhat.com>2009-01-01 02:35:24 +0000
committerMauro Carvalho Chehab <mchehab@redhat.com>2009-01-01 02:35:24 +0000
commit5dd791e743207ae2cfc2711a7a2e882a307b9f5a (patch)
treebd0e22da4c893127ddad1b2c0ae4d5f2cc58f9e1 /linux/drivers/media/dvb/dvb-core
parent70a86222a3c0c15a9e2595e37134100027bb191d (diff)
downloadmediapointer-dvb-s2-5dd791e743207ae2cfc2711a7a2e882a307b9f5a.tar.gz
mediapointer-dvb-s2-5dd791e743207ae2cfc2711a7a2e882a307b9f5a.tar.bz2
add DVB_DEVICE_TYPE= to uevent
From: Kay Sievers <kay.sievers@vrfy.org> Signed-off-by: Kay Sievers <kay.sievers@vrfy.org> Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Diffstat (limited to 'linux/drivers/media/dvb/dvb-core')
-rw-r--r--linux/drivers/media/dvb/dvb-core/dvbdev.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/linux/drivers/media/dvb/dvb-core/dvbdev.c b/linux/drivers/media/dvb/dvb-core/dvbdev.c
index fa1adf9dd..4267b2b87 100644
--- a/linux/drivers/media/dvb/dvb-core/dvbdev.c
+++ b/linux/drivers/media/dvb/dvb-core/dvbdev.c
@@ -456,8 +456,9 @@ static int dvb_uevent(struct device *dev, struct kobj_uevent_env *env)
{
struct dvb_device *dvbdev = dev_get_drvdata(dev);
- add_uevent_var(env, "DVB_DEVICE_NUM=%d", dvbdev->id);
add_uevent_var(env, "DVB_ADAPTER_NUM=%d", dvbdev->adapter->num);
+ add_uevent_var(env, "DVB_DEVICE_TYPE=%s", dnames[dvbdev->type]);
+ add_uevent_var(env, "DVB_DEVICE_NUM=%d", dvbdev->id);
return 0;
}
#endif