i2c: designware: Let slave adapter support be optional
authorJarkko Nikula <jarkko.nikula@linux.intel.com>
Wed, 28 Jun 2017 14:23:29 +0000 (17:23 +0300)
committerWolfram Sang <wsa@the-dreams.de>
Tue, 4 Jul 2017 14:12:45 +0000 (16:12 +0200)
commit6e38cf3b442120a84e69faf1ac9a7b4cd79d1ad6
tree6e4c2aafa0fb2354929d2366459348958c88b881
parent21bf440ce18e49b24601c3d1d25f691ef0334c4b
i2c: designware: Let slave adapter support be optional

Only certain system configurations may use the I2C slave mode so let the
support be optional. This allow reducing module size if needed:

   text    data     bss     dec     hex filename
  10328    1336      16   11680    2da0 drivers/i2c/busses/i2c-designware-core.ko
   7222    1136       8    8366    20ae drivers/i2c/busses/i2c-designware-core.ko

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