“e3d6eb1c16ef174a8fbbdd40770f5cbace0710e4”上不存在“include/uapi/git@gitcode.net:openanolis/cloud-kernel.git”
提交 8ea86e0b 编写于 作者: K Kristen Carlson Accardi 提交者: Len Brown

ACPI: dock: add uevent to indicate change in device status

Send a uevent to indicate a device change whenever we dock or
undock, so that userspace may now check the dock status via sysfs.
Signed-off-by: NKristen Carlson Accardi <kristen.c.accardi@intel.com>
Signed-off-by: NHolger Macht <hmacht@suse.de>
Signed-off-by: NLen Brown <len.brown@intel.com>
上级 2548c06b
...@@ -326,10 +326,12 @@ static void hotplug_dock_devices(struct dock_station *ds, u32 event) ...@@ -326,10 +326,12 @@ static void hotplug_dock_devices(struct dock_station *ds, u32 event)
static void dock_event(struct dock_station *ds, u32 event, int num) static void dock_event(struct dock_station *ds, u32 event, int num)
{ {
struct device *dev = &dock_device.dev;
/* /*
* we don't do events until someone tells me that * Indicate that the status of the dock station has
* they would like to have them. * changed.
*/ */
kobject_uevent(&dev->kobj, KOBJ_CHANGE);
} }
/** /**
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册