i2c: designware: refactoring of the i2c-designware
commit89a1e1bd7ba9a6711908bb79af0af6cbdf4a7e79
authorLuis Oliveira <Luis.Oliveira@synopsys.com>
Wed, 14 Jun 2017 10:43:22 +0000 (14 11:43 +0100)
committerWolfram Sang <wsa@the-dreams.de>
Mon, 19 Jun 2017 16:24:25 +0000 (19 18:24 +0200)
tree83f9c7ead1a29d7d490980428b196ad38c5a0254
parente393f674c5fedced24432138a8fc40c3d7a628b8
i2c: designware: refactoring of the i2c-designware

- Factor out all _master() part of code from i2c-designware-core
  and i2c-designware-platdrv to separate functions.
- Standardize all code related with MASTER mode.
- I have to take off DW_IC_INTR_TX_EMPTY from DW_IC_INTR_DEFAULT_MASK
  because it is master specific.

The purpose of this is to prepare the controller to have is I2C MASTER
flow in a separate driver. To do this first all the
functions/definitions related to the MASTER flow were identified.

Signed-off-by: Luis Oliveira <lolivei@synopsys.com>
Acked-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Acked-by: Jarkko Nikula <jarkko.nikula@linux.intel.com>
Signed-off-by: Wolfram Sang <wsa@the-dreams.de>
drivers/i2c/busses/i2c-designware-core.c
drivers/i2c/busses/i2c-designware-platdrv.c