Commit 66b56821 authored by Holger Macht's avatar Holger Macht Committed by Len Brown
Browse files

ACPI: dock: Send key=value pair instead of plain value

Send key=value pair along with the uevent instead of a plain value so that
userspace (udev) can handle it like common environment variables.

Signed-off-by: default avatarHolger Macht <>
Acked-by: default avatarKristen Carlson Accardi <>
Cc: Stephan Berberig <>
Signed-off-by: default avatarAndrew Morton <>
Acked-by: default avatarGreg Kroah-Hartman <>
Signed-off-by: default avatarLen Brown <>
parent 7aa763cb
......@@ -336,13 +336,13 @@ 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 event_string[13];
char *envp[] = { event_string, NULL };
if (num == UNDOCK_EVENT)
sprintf(event_string, "UNDOCK");
sprintf(event_string, "EVENT=undock");
sprintf(event_string, "DOCK");
sprintf(event_string, "EVENT=dock");
* Indicate that the status of the dock station has
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment