i2c-powermac: Include the i2c_adapter in struct pmac_i2c_bus
authorJean Delvare <khali@linux-fr.org>
Sun, 6 Dec 2009 16:06:19 +0000 (17:06 +0100)
committerJean Delvare <khali@linux-fr.org>
Sun, 6 Dec 2009 16:06:19 +0000 (17:06 +0100)
commit6dfa5ca3c9a35cb395ab1f51e0e500106c85dff4
tree3ea208e88338d40fd9e4d0ea51f55cafecd64ff0
parentd7d838a6ebbab6e786148133b6cf9617144603b4
i2c-powermac: Include the i2c_adapter in struct pmac_i2c_bus

Include the i2c_adapter in struct pmac_i2c_bus. This avoids memory
fragmentation and allows for several code cleanups.

Signed-off-by: Jean Delvare <khali@linux-fr.org>
Tested-by: Michel Daenzer <michel@daenzer.net>
Cc: Benjamin Herrenschmidt <benh@kernel.crashing.org>
arch/powerpc/include/asm/pmac_low_i2c.h
arch/powerpc/platforms/powermac/low_i2c.c
drivers/i2c/busses/i2c-powermac.c