ACPI: dock: Send key=value pair instead of plain value
authorHolger Macht <[email protected]>
Fri, 10 Aug 2007 20:10:32 +0000 (13:10 -0700)
committerLen Brown <[email protected]>
Sun, 12 Aug 2007 02:12:10 +0000 (22:12 -0400)
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: Holger Macht <[email protected]>
Acked-by: Kristen Carlson Accardi <[email protected]>
Cc: Stephan Berberig <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Acked-by: Greg Kroah-Hartman <[email protected]>
Signed-off-by: Len Brown <[email protected]>
drivers/acpi/dock.c

index 6192c8be66df62587e0ee49e3af2a31b145b38bc..1dabdf4c07b36308e4ece7f7f3a0497ee4bb0c1c 100644 (file)
@@ -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");
        else
-               sprintf(event_string, "DOCK");
+               sprintf(event_string, "EVENT=dock");
 
        /*
         * Indicate that the status of the dock station has