Skip to contentSkip to conversation

s5p-tv: hdmi needs I2C support

PATCH New Arnd Bergmann 1 participant 1 message Jan 29, 2015

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 s5p-tv: hdmi needs I2C support

Building the s5p-tv HDMI support when CONFIG_I2C is disabled gives us this build error:

s5p-tv/hdmi_drv.c: In function 'hdmi_probe':
s5p-tv/hdmi_drv.c:947:2: error: implicit declaration of function 'i2c_get_adapter' [-Werror=implicit-function-declaration]
adapter = i2c_get_adapter(pdata->hdmiphy_bus);
^

This patch changes the Kconfig description to include I2C as a dependency for this driver, so it cannot be configured incorrectly.

drivers/media/platform/s5p-tv/Kconfig +1 -0
index 5a1835dd65e8..697aaed42486 100644
@@ -20,6 +20,7 @@ if VIDEO_SAMSUNG_S5P_TV
 config VIDEO_SAMSUNG_S5P_HDMI
 	tristate "Samsung HDMI Driver"
 	depends on VIDEO_V4L2
+	depends on I2C
 	depends on VIDEO_SAMSUNG_S5P_TV
 	select VIDEO_SAMSUNG_S5P_HDMIPHY
 	help