]> git.karo-electronics.de Git - linux-beck.git/commit
ACPI: dock: add struct dock_station * directly to platform device data
authorAlex Chiang <achiang@hp.com>
Mon, 19 Oct 2009 21:14:45 +0000 (15:14 -0600)
committerLen Brown <len.brown@intel.com>
Wed, 16 Dec 2009 08:03:11 +0000 (03:03 -0500)
commitfe06fba292af5ed5c1c6ad9af3a9ef68da7a5088
tree2ec8f7576d9f53ff22fff467f1f838262c4ca28d
parent9751cb721ef650729e981c7b39abb7676cd646e1
ACPI: dock: add struct dock_station * directly to platform device data

Instead of adding a (struct dock_station **) to our dock device's
platform data, we can add the (struct dock_station *) directly.

This change saves us some ugly casting and improves readability.

The cost of making this change is an extra 290 bytes of stack usage,
but this is an infrequently called code-path and unlikely to cause
the kernel to blow up.

Signed-off-by: Alex Chiang <achiang@hp.com>
Acked-by: Shaohua Li <shaohua.li@intel.com>
Signed-off-by: Len Brown <len.brown@intel.com>
drivers/acpi/dock.c