]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
hwmon: (tmp513) Add missing dependency on REGMAP_I2C
authorGuenter Roeck <linux@roeck-us.net>
Tue, 1 Oct 2024 18:37:15 +0000 (11:37 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 17 Oct 2024 13:11:58 +0000 (15:11 +0200)
commitb5a3a65f2907aa6afac0dd2b031c31d324791171
treeabb579eed6ee7b9bc6fde54a5a5edaa2fa2d965d
parent1fdc3bab3073665cc103cf7315642a14b591db36
hwmon: (tmp513) Add missing dependency on REGMAP_I2C

[ Upstream commit 193bc02c664999581a1f38c152f379fce91afc0c ]

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: 59dfa75e5d82 ("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>
drivers/hwmon/Kconfig