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

mfd: max77620: Allow building as a module

The driver works fine as a module, so allowing building as such.

Signed-off-by: Aaron Kling <webgeek1234@gmail.com>
Link: https://lore.kernel.org/r/20250228-max77620-module-v2-1-eb686216437c@gmail.com
Signed-off-by: Lee Jones <lee@kernel.org>

authored by

Aaron Kling and committed by
Lee Jones
0d084ee9 4cdf1d2a

+6 -1
+1 -1
drivers/mfd/Kconfig
··· 858 858 There are regulators and adc. 859 859 860 860 config MFD_MAX77620 861 - bool "Maxim Semiconductor MAX77620 and MAX20024 PMIC Support" 861 + tristate "Maxim Semiconductor MAX77620 and MAX20024 PMIC Support" 862 862 depends on I2C=y 863 863 depends on OF 864 864 select MFD_CORE
+5
drivers/mfd/max77620.c
··· 29 29 #include <linux/mfd/core.h> 30 30 #include <linux/mfd/max77620.h> 31 31 #include <linux/init.h> 32 + #include <linux/module.h> 32 33 #include <linux/of.h> 33 34 #include <linux/regmap.h> 34 35 #include <linux/slab.h> ··· 701 700 .id_table = max77620_id, 702 701 }; 703 702 builtin_i2c_driver(max77620_driver); 703 + 704 + MODULE_DESCRIPTION("Maxim Semiconductor MAX77620 and MAX20024 PMIC Support"); 705 + MODULE_AUTHOR("Laxman Dewangan <ldewangan@nvidia.com>"); 706 + MODULE_LICENSE("GPL");