Commit 6a63ea10 authored by Matt Ranostay's avatar Matt Ranostay Committed by Greg Kroah-Hartman

media: i2c: video-i2c: fix build errors due to 'imply hwmon'

[ Upstream commit 64d4fc99 ]

Fix build fault when CONFIG_HWMON is a module, and CONFIG_VIDEO_I2C
as builtin. This is due to 'imply hwmon' in the respective Kconfig.

Issue build log:

ld: drivers/media/i2c/video-i2c.o: in function `amg88xx_hwmon_init':
video-i2c.c:(.text+0x2e1): undefined reference to `devm_hwmon_device_register_with_info

Cc: rdunlap@infradead.org
Fixes: acbea679 (media: video-i2c: add hwmon support for amg88xx)
Signed-off-by: default avatarMatt Ranostay <matt.ranostay@konsulko.com>
Signed-off-by: default avatarHans Verkuil <hverkuil-cisco@xs4all.nl>
Signed-off-by: default avatarMauro Carvalho Chehab <mchehab+huawei@kernel.org>
Signed-off-by: default avatarSasha Levin <sashal@kernel.org>
parent 12ce9fd7
...@@ -105,7 +105,7 @@ static int amg88xx_xfer(struct video_i2c_data *data, char *buf) ...@@ -105,7 +105,7 @@ static int amg88xx_xfer(struct video_i2c_data *data, char *buf)
return (ret == 2) ? 0 : -EIO; return (ret == 2) ? 0 : -EIO;
} }
#if IS_ENABLED(CONFIG_HWMON) #if IS_REACHABLE(CONFIG_HWMON)
static const u32 amg88xx_temp_config[] = { static const u32 amg88xx_temp_config[] = {
HWMON_T_INPUT, HWMON_T_INPUT,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment