aboutsummaryrefslogtreecommitdiffstats
path: root/drivers
diff options
context:
space:
mode:
authorKristen Carlson Accardi <kristen.c.accardi@intel.com>2006-12-11 15:05:08 -0500
committerLen Brown <len.brown@intel.com>2006-12-14 17:16:06 -0500
commit8ea86e0ba7c9d16ae0f35cb0c4165194fa573f7a (patch)
treeb88c02a69a089268524a02b99655bc12382d6afa /drivers
parent2548c06b72396e28abdb5dd572ab589c3c22f4b9 (diff)
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: Kristen Carlson Accardi <kristen.c.accardi@intel.com> Signed-off-by: Holger Macht <hmacht@suse.de> Signed-off-by: Len Brown <len.brown@intel.com>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/acpi/dock.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/drivers/acpi/dock.c b/drivers/acpi/dock.c
index 8c6828bee5d9..215f5b30a1f1 100644
--- a/drivers/acpi/dock.c
+++ b/drivers/acpi/dock.c
@@ -326,10 +326,12 @@ static void hotplug_dock_devices(struct dock_station *ds, u32 event)
326 326
327static void dock_event(struct dock_station *ds, u32 event, int num) 327static void dock_event(struct dock_station *ds, u32 event, int num)
328{ 328{
329 struct device *dev = &dock_device.dev;
329 /* 330 /*
330 * we don't do events until someone tells me that 331 * Indicate that the status of the dock station has
331 * they would like to have them. 332 * changed.
332 */ 333 */
334 kobject_uevent(&dev->kobj, KOBJ_CHANGE);
333} 335}
334 336
335/** 337/**