projects
/
platform
/
kernel
/
kernel-mfld-blackbay.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9ef2a9a
)
ACPI: dock: send envp with uevent
author
Kristen Carlson Accardi
<kristen.c.accardi@intel.com>
Wed, 9 May 2007 22:10:22 +0000
(15:10 -0700)
committer
Len Brown
<len.brown@intel.com>
Thu, 10 May 2007 07:30:41 +0000
(
03:30
-0400)
Send an env along with our KOBJ_CHANGE uevent so that user space has
the option of checking for that to see if a dock or undock has occurred.
Signed-off-by: Kristen Carlson Accardi <kristen.c.accardi@intel.com>
Signed-off-by: Len Brown <len.brown@intel.com>
drivers/acpi/dock.c
patch
|
blob
|
history
diff --git
a/drivers/acpi/dock.c
b/drivers/acpi/dock.c
index
4efc12c
..
dc3df93
100644
(file)
--- a/
drivers/acpi/dock.c
+++ b/
drivers/acpi/dock.c
@@
-336,11
+336,19
@@
static void hotplug_dock_devices(struct dock_station *ds, u32 event)
static void dock_event(struct dock_station *ds, u32 event, int num)
{
struct device *dev = &dock_device->dev;
+ char event_string[7];
+ char *envp[] = { event_string, NULL };
+
+ if (num == UNDOCK_EVENT)
+ sprintf(event_string, "UNDOCK");
+ else
+ sprintf(event_string, "DOCK");
+
/*
* Indicate that the status of the dock station has
* changed.
*/
- kobject_uevent
(&dev->kobj, KOBJ_CHANGE
);
+ kobject_uevent
_env(&dev->kobj, KOBJ_CHANGE, envp
);
}
/**