]> git.baikalelectronics.ru Git - kernel.git/commit
[media] davinci: add i2c Kconfig dependencies
authorArnd Bergmann <arnd@arndb.de>
Thu, 19 Nov 2015 12:59:34 +0000 (10:59 -0200)
committerMauro Carvalho Chehab <mchehab@osg.samsung.com>
Thu, 19 Nov 2015 14:03:52 +0000 (12:03 -0200)
commit7ecce85e381aaf1d1ebe23fafdb02d3be4f036ef
treea0d09833c45008fdee72453052c636b3443d49fe
parentf8473b0e4179b2803df1b57ca308285293ff7d3f
[media] davinci: add i2c Kconfig dependencies

All the davinci media drivers are using the i2c framework, and
fail to build if that is ever disabled, e.g.:

media/platform/davinci/vpif_display.c: In function 'vpif_probe':
media/platform/davinci/vpif_display.c:1298:14: error: implicit declaration of function 'i2c_get_adapter' [-Werror=implicit-function-declaration]

This adds explicit Kconfig dependencies so we don't see the
driver options if I2C is turned off.

Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Acked-by: Lad, Prabhakar <prabhakar.csengg@gmail.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@osg.samsung.com>
drivers/media/platform/davinci/Kconfig