]> git.baikalelectronics.ru Git - kernel.git/commit
Input: atmel_captouch - add dependence on i2c
authorArnd Bergmann <arnd@arndb.de>
Thu, 19 May 2016 16:14:02 +0000 (09:14 -0700)
committerDmitry Torokhov <dmitry.torokhov@gmail.com>
Thu, 19 May 2016 16:35:14 +0000 (09:35 -0700)
commit08a66f0f73178acef67483c6175811e6ceed65f0
tree134d32370fccca26656282601dcca6215f4ddede
parent2fcbe09f200930391f65f95c67b4496ea810fc90
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: Arnd Bergmann <arnd@arndb.de>
Fixes: 2fcbe09f2009 ("Input: add Atmel Captouch Button driver")
Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
drivers/input/misc/Kconfig