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>
Showing
- arch/powerpc/include/asm/pmac_low_i2c.h 1 addition, 5 deletionsarch/powerpc/include/asm/pmac_low_i2c.h
- arch/powerpc/platforms/powermac/low_i2c.c 5 additions, 20 deletionsarch/powerpc/platforms/powermac/low_i2c.c
- drivers/i2c/busses/i2c-powermac.c 3 additions, 12 deletionsdrivers/i2c/busses/i2c-powermac.c
Loading
Please register or sign in to comment