mfd: max77620: Allow building as a module
PATCH v2 1/1 mfd: max77620: Allow building as a module
The driver works fine as a module, so allowing building as such.
Signed-off-by Aaron Kling <[email protected]>
---
Changes in v2:
- Include module.h directly
- Link to v1: https://lore.kernel.org/r/[email protected]
--- drivers/mfd/Kconfig | 2 +- drivers/mfd/max77620.c | 5 +++++ 2 files changed, 6 insertions(+), 1 deletion(-)
drivers/mfd/Kconfig +1 -1
@@ -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
drivers/mfd/max77620.c +5 -0
@@ -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 <[email protected]>" ); +MODULE_LICENSE ("GPL" );
---
base-commit: d082ecbc71e9e0bf49883ee4afd435a77a5101b6
change-id: 20250224-max77620-module-84bee019b0a9
Best regards,
Signature · 1 line
Aaron Kling <[email protected]>
Re: (subset) [PATCH v2] mfd: max77620: Allow building as a module
Quoted 3 lines · Aaron Kling
The driver works fine as a module, so allowing building as such.
Applied, thanks!
[1/1] mfd: max77620: Allow building as a module
commit: 13cefded0104ee24494fb8cff90ae3e4485d74cc
--
Lee Jones [李琼斯]