mirror of
https://github.com/torvalds/linux.git
synced 2026-11-07 06:17:02 +01:00
HID: hid-lenovo-go-s: Add kobject_uevent notify during reset-resume
Adds kobject_uevent notification after setting os_mode attribute on resume.
Fixes: 3524900cc5 ("HID: hid-lenovo-go-s: restore OS_TYPE after resume from s2idle")
Cc: stable@vger.kernel.org
Signed-off-by: Derek J. Clark <derekjohn.clark@gmail.com>
Signed-off-by: Jiri Kosina <jkosina@suse.com>
This commit is contained in:
parent
5c07247116
commit
81e8c0bb38
|
|
@ -1467,6 +1467,7 @@ static int hid_gos_cfg_reset_resume(struct hid_device *hdev)
|
|||
if (drvdata.os_mode != os_mode)
|
||||
return -ENODEV;
|
||||
|
||||
kobject_uevent(&drvdata.hdev->dev.kobj, KOBJ_CHANGE);
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user