Skip to content

Commit de90999

Browse files
groeckgregkh
authored andcommitted
hwmon: (tmp513) Add missing dependency on REGMAP_I2C
[ Upstream commit 193bc02 ] 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 <lkp@intel.com> Closes: https://lore.kernel.org/oe-kbuild-all/202410020246.2cTDDx0X-lkp@intel.com/ Fixes: 59dfa75 ("hwmon: Add driver for Texas Instruments TMP512/513 sensor chips.") Cc: Eric Tremblay <etremblay@distech-controls.com> Reviewed-by: Javier Carrasco <javier.carrasco.cruz@gmail.com> Signed-off-by: Guenter Roeck <linux@roeck-us.net> Signed-off-by: Sasha Levin <sashal@kernel.org>
1 parent 2caf6c4 commit de90999

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
@@ -2137,6 +2137,7 @@ config SENSORS_TMP464
21372137
config SENSORS_TMP513
21382138
tristate "Texas Instruments TMP513 and compatibles"
21392139
depends on I2C
2140+
select REGMAP_I2C
21402141
help
21412142
If you say yes here you get support for Texas Instruments TMP512,
21422143
and TMP513 temperature and power supply sensor chips.

0 commit comments

Comments
 (0)