Skip to content

Commit 83b645e

Browse files
arndbgroeck
authored andcommitted
hwmon: tmp108: fix I3C dependency
It's possible to build a kernel with tmp108 built-in but i3c support in a loadable module, but that results in a link failure: x86_64-linux-ld: drivers/hwmon/tmp108.o: in function `p3t1085_i3c_probe': tmp108.c:(.text+0x5f9): undefined reference to `i3cdev_to_dev' Add a Kconfig dependency to ensure only the working configurations are allowed. Fixes: c40655e ("hwmon: (tmp108) Add support for I3C device") Signed-off-by: Arnd Bergmann <[email protected]> Message-ID: <[email protected]> Signed-off-by: Guenter Roeck <[email protected]>
1 parent c1fff92 commit 83b645e

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

drivers/hwmon/Kconfig

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2297,6 +2297,7 @@ config SENSORS_TMP103
22972297
config SENSORS_TMP108
22982298
tristate "Texas Instruments TMP108"
22992299
depends on I2C
2300+
depends on I3C || !I3C
23002301
select REGMAP_I2C
23012302
select REGMAP_I3C if I3C
23022303
help

0 commit comments

Comments
 (0)