hid:jarvis: send uevent on creating timeout node
Siddardha Naraharisetti [Wed, 21 Dec 2016 04:07:59 +0000 (20:07 -0800)]
send uevent to userspace on node creation so that
permissions can be updated

Bug 1854947

Change-Id: I7487ea060d58a17f7ffdb48565e3696005bb228b
Signed-off-by: Siddardha Naraharisetti <siddardhan@nvidia.com>
Reviewed-on: http://git-master/r/1274602
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: David Dastous St Hilaire <ddastoussthi@nvidia.com>
Reviewed-by: Vinayak Pane <vpane@nvidia.com>

drivers/hid/hid-atv-jarvis.c

index 8043336..1c2d114 100644 (file)
@@ -1837,6 +1837,7 @@ static int atvr_probe(struct hid_device *hdev, const struct hid_device_id *id)
                                "cannot create sysfs timeout attribute\n");
                        goto err_stop;
                }
+               ret = kobject_uevent(&hdev->dev.kobj, KOBJ_CHANGE);
        }
 
        if (hdev->product == USB_DEVICE_ID_NVIDIA_THUNDERSTRIKE)