blob: d9d716ea4427dfb0ba0c5ef8344ed89bcbd4a332 [file] [log] [blame]
From 506ebece053e91182ca422e70b4480ddf464214c Mon Sep 17 00:00:00 2001
From: Matt Ranostay <>
Date: Tue, 24 Mar 2020 02:07:41 +0100
Subject: [PATCH] media: i2c: video-i2c: fix build errors due to 'imply hwmon'
commit 64d4fc9926f09861a35d8f0f7d81f056e6d5af7b upstream.
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
Fixes: acbea6798955 (media: video-i2c: add hwmon support for amg88xx)
Signed-off-by: Matt Ranostay <>
Signed-off-by: Hans Verkuil <>
Signed-off-by: Mauro Carvalho Chehab <>
Signed-off-by: Paul Gortmaker <>
diff --git a/drivers/media/i2c/video-i2c.c b/drivers/media/i2c/video-i2c.c
index abd3152df7d0..4844f4ebb9d6 100644
--- a/drivers/media/i2c/video-i2c.c
+++ b/drivers/media/i2c/video-i2c.c
@@ -259,7 +259,7 @@ static int amg88xx_set_power(struct video_i2c_data *data, bool on)
return amg88xx_set_power_off(data);
static const u32 amg88xx_temp_config[] = {