[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)
commitca78946853eb23a37260cefc074a5bf86e8b866c
treea0d09833c45008fdee72453052c636b3443d49fe
parenta733a41a5057b47ed4a1f43d33166770ef83bc10
[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