aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/media/rc
diff options
context:
space:
mode:
authorSean Young <sean@mess.org>2017-09-01 11:34:23 -0300
committerMauro Carvalho Chehab <mchehab@osg.samsung.com>2017-10-04 15:24:31 -0300
commitb9f407e31c50730784f70ec2deec71491395565f (patch)
treedb455dc1c75ae04e1d54dc4bc8ee2caa1a2f03af /drivers/media/rc
parent6d75db305b8a964bfec337ca5f3c2cd5047b9bb1 (diff)
[media] media: rc: include device name in rc udev event
This name is also stored in the input's device name, but that is not available in TX only hardware (no input device). Signed-off-by: Sean Young <sean@mess.org> Signed-off-by: Mauro Carvalho Chehab <mchehab@osg.samsung.com>
Diffstat (limited to 'drivers/media/rc')
-rw-r--r--drivers/media/rc/rc-main.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/media/rc/rc-main.c b/drivers/media/rc/rc-main.c
index 42ac3490b5f8..8c828fee4f5a 100644
--- a/drivers/media/rc/rc-main.c
+++ b/drivers/media/rc/rc-main.c
@@ -1480,6 +1480,8 @@ static int rc_dev_uevent(struct device *device, struct kobj_uevent_env *env)
ADD_HOTPLUG_VAR("NAME=%s", dev->rc_map.name);
if (dev->driver_name)
ADD_HOTPLUG_VAR("DRV_NAME=%s", dev->driver_name);
+ if (dev->device_name)
+ ADD_HOTPLUG_VAR("DEV_NAME=%s", dev->device_name);
return 0;
}

Privacy Policy