提交 14f935f9 编写于 作者: A Arnd Bergmann 提交者: Dmitry Torokhov

Input: atmel_captouch - add dependence on i2c

The newly added Atmal captouch driver fails to build when CONFIG_I2C
is disabled:

drivers/input/misc/atmel_captouch.c: In function 'atmel_read':
drivers/input/misc/atmel_captouch.c:115:8: error: implicit declaration of function 'i2c_transfer' [-Werror=implicit-function-declaration]

This adds an explicit Kconfig dependency to prevent the broken
configuration.
Signed-off-by: NArnd Bergmann <arnd@arndb.de>
Fixes: b06d43f7 ("Input: add Atmel Captouch Button driver")
Signed-off-by: NDmitry Torokhov <dmitry.torokhov@gmail.com>
上级 b06d43f7
...@@ -85,6 +85,7 @@ config INPUT_ARIZONA_HAPTICS ...@@ -85,6 +85,7 @@ config INPUT_ARIZONA_HAPTICS
config INPUT_ATMEL_CAPTOUCH config INPUT_ATMEL_CAPTOUCH
tristate "Atmel Capacitive Touch Button Driver" tristate "Atmel Capacitive Touch Button Driver"
depends on OF || COMPILE_TEST depends on OF || COMPILE_TEST
depends on I2C
help help
Say Y here if an Atmel Capacitive Touch Button device which Say Y here if an Atmel Capacitive Touch Button device which
implements "captouch" protocol is connected to I2C bus. Typically implements "captouch" protocol is connected to I2C bus. Typically
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册