diff options
author | Aaron Kling <webgeek1234@gmail.com> | 2025-02-28 18:24:26 +0300 |
---|---|---|
committer | Lee Jones <lee@kernel.org> | 2025-03-14 11:59:07 +0300 |
commit | 0d084ee9ba87b3fdcb31b63efeae6e9a7ee60c35 (patch) | |
tree | b9dbde85b3eec9011bd5b27981c37eb5184a075a | |
parent | 4cdf1d2a816a93fa02f7b6b5492dc7f55af2a199 (diff) | |
download | linux-0d084ee9ba87b3fdcb31b63efeae6e9a7ee60c35.tar.xz |
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>
-rw-r--r-- | drivers/mfd/Kconfig | 2 | ||||
-rw-r--r-- | drivers/mfd/max77620.c | 5 |
2 files changed, 6 insertions, 1 deletions
diff --git a/drivers/mfd/Kconfig b/drivers/mfd/Kconfig index c925feb3a8ad..bd42cebaef85 100644 --- a/drivers/mfd/Kconfig +++ b/drivers/mfd/Kconfig @@ -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 diff --git a/drivers/mfd/max77620.c b/drivers/mfd/max77620.c index 89b30ef91f4f..21d2ab3db254 100644 --- a/drivers/mfd/max77620.c +++ b/drivers/mfd/max77620.c @@ -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"); |