V4L/DVB (10172): add DVB_DEVICE_TYPE= to uevent
authorKay Sievers <kay.sievers@vrfy.org>
Thu, 1 Jan 2009 02:35:24 +0000 (23:35 -0300)
committerMauro Carvalho Chehab <mchehab@redhat.com>
Sat, 3 Jan 2009 12:50:31 +0000 (10:50 -0200)
Signed-off-by: Kay Sievers <kay.sievers@vrfy.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
drivers/media/dvb/dvb-core/dvbdev.c

index 6c571d9f011c6df050c23230c399390e5c3e7334..65d69665f1fc5b87251c1af795e9cefb4b507eaf 100644 (file)
@@ -436,8 +436,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;
 }