diff options
author | Mauro Carvalho Chehab <mchehab@redhat.com> | 2009-01-01 02:35:24 +0000 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@redhat.com> | 2009-01-01 02:35:24 +0000 |
commit | 5dd791e743207ae2cfc2711a7a2e882a307b9f5a (patch) | |
tree | bd0e22da4c893127ddad1b2c0ae4d5f2cc58f9e1 /linux/drivers/media/dvb/dvb-core | |
parent | 70a86222a3c0c15a9e2595e37134100027bb191d (diff) | |
download | mediapointer-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.c | 3 |
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 |