i2c: Only include slave support if selected
authorJean Delvare <jdelvare@suse.de>
Mon, 26 Jan 2015 19:59:31 +0000 (20:59 +0100)
committerWolfram Sang <wsa@the-dreams.de>
Mon, 26 Jan 2015 21:05:20 +0000 (22:05 +0100)
commitd5fd120e7860c2b3d4c936a2ebadb6b244bec4c8
treeaccfd5191f854f2bef8b6405ffb3cb07d4e801f0
parent34e81ad5f0b60007c95995eb7803da7e00c6c611
i2c: Only include slave support if selected

Make the slave support depend on CONFIG_I2C_SLAVE. Otherwise it gets
included unconditionally, even when it is not needed.

I2C bus drivers which implement slave support must select
I2C_SLAVE.

Signed-off-by: Jean Delvare <jdelvare@suse.de>
Signed-off-by: Wolfram Sang <wsa@the-dreams.de>
drivers/i2c/busses/Kconfig
drivers/i2c/i2c-core.c
include/linux/i2c.h