i2c-designware: split of i2c-designware.c into core and bus specific parts
authorDirk Brandewie <dirk.brandewie@gmail.com>
Thu, 25 Aug 2011 11:14:02 +0000 (12:14 +0100)
committermgross <mark.gross@intel.com>
Wed, 9 Nov 2011 20:37:35 +0000 (12:37 -0800)
commit238e1eb72205a9bc597c542a20522f6370482410
treed7ea57d8dc0389b879af7228384b64ab8c002ec5
parentd1d5ec4892315f65fd15aaf6f3a18fe36b29aef8
i2c-designware: split of i2c-designware.c into core and bus specific parts

This patch splits i2c-designware.c into three pieces:
     i2c-designware-core.c, contains the code that interacts directly
     with the core.

     i2c-designware-platdrv.c, contains the code specific to the
     platform driver using the core.

     i2c-designware-core.h contains the definitions and declareations
     shared by i2c-designware-core.c and i2c-designware-platdrv.c.

This patch is the first in a set to allow multiple instances of the
designware I2C core in the system.

Change-Id: Ib876d49780e55ade274026380326c550752e4193
Signed-off-by: Dirk Brandewie <dirk.brandewie@gmail.com>
Signed-off-by: Ben Dooks <ben-linux@fluff.org>
Signed-off-by: Alan Cox <alan@linux.intel.com>
drivers/i2c/busses/Kconfig
drivers/i2c/busses/Makefile
drivers/i2c/busses/i2c-designware-core.c [moved from drivers/i2c/busses/i2c-designware.c with 53% similarity]
drivers/i2c/busses/i2c-designware-core.h [new file with mode: 0644]
drivers/i2c/busses/i2c-designware-platdrv.c [new file with mode: 0644]