Skip to contentSkip to conversation

mfd: max77620: Allow building as a module

PATCH Superseded Aaron Kling 2 participants 2 messages Feb 24, 2025 – Feb 28, 2025 Multifunction devices (MFD)

v1 of 2 Superseded Latest is v2 →

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 mfd: max77620: Allow building as a module

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

---
 drivers/mfd/Kconfig    | 2 +-
 drivers/mfd/max77620.c | 4 ++++
 2 files changed, 5 insertions(+), 1 deletion(-)
drivers/mfd/Kconfig +1 -1
index 6b0682af6e32b434ee3e99940005a6cce14ff55c..922704bd0ce3fe6c094da6b1528b72fedcfa1677 100644
@@ -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 +4 -0
index 89b30ef91f4f112b06e0e055e75e480fab176f8f..10264fce95a4a37f22f205edbf364fa6783e35dd 100644
@@ -700,3 +700,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]>
maintainer
#1 lore raw

drivers/mfd/max77620.c

Quoted 27 lines · On Mon, 24 Feb 2025, Aaron Kling via B4 Relay wrote:

From: Aaron Kling <[email protected]>

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

---
 drivers/mfd/Kconfig    | 2 +-
 drivers/mfd/max77620.c | 4 ++++
 2 files changed, 5 insertions(+), 1 deletion(-)
drivers/mfd/Kconfig +1 -1
index 6b0682af6e32b434ee3e99940005a6cce14ff55c..922704bd0ce3fe6c094da6b1528b72fedcfa1677 100644
@@ -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 +0 -0
index 89b30ef91f4f112b06e0e055e75e480fab176f8f..10264fce95a4a37f22f205edbf364fa6783e35dd 100644

#include <linux/module.h>

Quoted 18 lines
drivers/mfd/max77620.c +4 -1
@@ -700,3 +700,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]>
Signature · 1 line
Lee Jones [李琼斯]