]> git.baikalelectronics.ru Git - kernel.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)
commit9af55ff48929466077320b84b924022b82c2dcb3
tree2ec8f7576d9f53ff22fff467f1f838262c4ca28d
parenteaf102a3e1d789007f9e30200f77fb0586aa7113
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