]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
mfd: max77620: Allow building as a module
authorAaron Kling <webgeek1234@gmail.com>
Fri, 28 Feb 2025 15:24:26 +0000 (09:24 -0600)
committerLee Jones <lee@kernel.org>
Fri, 14 Mar 2025 08:59:07 +0000 (08:59 +0000)
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>
drivers/mfd/Kconfig
drivers/mfd/max77620.c

index c925feb3a8adeae748fae2591fbcfc1ab4b74fe6..bd42cebaef85e1c541f58dc2cb6074549adf8512 100644 (file)
@@ -858,7 +858,7 @@ config MFD_MAX77541
          There are regulators and adc.
 
 config MFD_MAX77620
-       bool "Maxim Semiconductor MAX77620 and MAX20024 PMIC Support"
+       tristate "Maxim Semiconductor MAX77620 and MAX20024 PMIC Support"
        depends on I2C=y
        depends on OF
        select MFD_CORE
index 89b30ef91f4f112b06e0e055e75e480fab176f8f..21d2ab3db2542ef8bcbd82262ac1fbd1dfdbce5c 100644 (file)
@@ -29,6 +29,7 @@
 #include <linux/mfd/core.h>
 #include <linux/mfd/max77620.h>
 #include <linux/init.h>
+#include <linux/module.h>
 #include <linux/of.h>
 #include <linux/regmap.h>
 #include <linux/slab.h>
@@ -700,3 +701,7 @@ static struct i2c_driver max77620_driver = {
        .id_table = max77620_id,
 };
 builtin_i2c_driver(max77620_driver);
+
+MODULE_DESCRIPTION("Maxim Semiconductor MAX77620 and MAX20024 PMIC Support");
+MODULE_AUTHOR("Laxman Dewangan <ldewangan@nvidia.com>");
+MODULE_LICENSE("GPL");