Commit 193bc02
committed
hwmon: (tmp513) Add missing dependency on REGMAP_I2C
0-day reports:
drivers/hwmon/tmp513.c:162:21: error:
variable 'tmp51x_regmap_config' has initializer but incomplete type
162 | static const struct regmap_config tmp51x_regmap_config = {
| ^
struct regmap_config is only available if REGMAP is enabled.
Add the missing Kconfig dependency to fix the problem.
Reported-by: kernel test robot <[email protected]>
Closes: https://lore.kernel.org/oe-kbuild-all/[email protected]/
Fixes: 59dfa75 ("hwmon: Add driver for Texas Instruments TMP512/513 sensor chips.")
Cc: Eric Tremblay <[email protected]>
Reviewed-by: Javier Carrasco <[email protected]>
Signed-off-by: Guenter Roeck <[email protected]>1 parent 0fb09bf commit 193bc02
1 file changed
+1
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2312 | 2312 | | |
2313 | 2313 | | |
2314 | 2314 | | |
| 2315 | + | |
2315 | 2316 | | |
2316 | 2317 | | |
2317 | 2318 | | |
| |||
0 commit comments