Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

rtc: max31335: use correct CONFIG symbol in IS_REACHABLE()

IS_REACHABLE() is meant to be used with full symbol names from a kernel
.config file, not the shortened symbols used in Kconfig files, so
change HWMON to CONFIG_HWMON in 3 places.

Fixes: dedaf03b99d6 ("rtc: max31335: add driver support")
Signed-off-by: Randy Dunlap <rdunlap@infradead.org>
Acked-by: Nuno Sá <nuno.sa@analog.com>
Link: https://patch.msgid.link/20260108045432.2705691-1-rdunlap@infradead.org
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>

authored by

Randy Dunlap and committed by
Alexandre Belloni
d5aca9a1 f9ecfd9b

+3 -3
+3 -3
drivers/rtc/rtc-max31335.c
··· 591 591 .size = MAX31335_RAM_SIZE, 592 592 }; 593 593 594 - #if IS_REACHABLE(HWMON) 594 + #if IS_REACHABLE(CONFIG_HWMON) 595 595 static int max31335_read_temp(struct device *dev, enum hwmon_sensor_types type, 596 596 u32 attr, int channel, long *val) 597 597 { ··· 672 672 static int max31335_probe(struct i2c_client *client) 673 673 { 674 674 struct max31335_data *max31335; 675 - #if IS_REACHABLE(HWMON) 675 + #if IS_REACHABLE(CONFIG_HWMON) 676 676 struct device *hwmon; 677 677 #endif 678 678 const struct chip_desc *match; ··· 727 727 return dev_err_probe(&client->dev, ret, 728 728 "cannot register rtc nvmem\n"); 729 729 730 - #if IS_REACHABLE(HWMON) 730 + #if IS_REACHABLE(CONFIG_HWMON) 731 731 if (max31335->chip->temp_reg) { 732 732 hwmon = devm_hwmon_device_register_with_info(&client->dev, client->name, max31335, 733 733 &max31335_chip_info, NULL);