Skip to content

Commit 64d4fc9

Browse files
mranostaymchehab
authored andcommitted
media: i2c: video-i2c: fix build errors due to 'imply hwmon'
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: [email protected] Fixes: acbea67 (media: video-i2c: add hwmon support for amg88xx) Signed-off-by: Matt Ranostay <[email protected]> Signed-off-by: Hans Verkuil <[email protected]> Signed-off-by: Mauro Carvalho Chehab <[email protected]>
1 parent 87c820f commit 64d4fc9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/media/i2c/video-i2c.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -255,7 +255,7 @@ static int amg88xx_set_power(struct video_i2c_data *data, bool on)
255255
return amg88xx_set_power_off(data);
256256
}
257257

258-
#if IS_ENABLED(CONFIG_HWMON)
258+
#if IS_REACHABLE(CONFIG_HWMON)
259259

260260
static const u32 amg88xx_temp_config[] = {
261261
HWMON_T_INPUT,

0 commit comments

Comments
 (0)