On 6/19/25 1:15 AM, Vivian Wang wrote:
Also, consider naming this consistently: "spacemit-p1", or
"spacemit-p1-regulator"?
Let me see if I understand your comment, by explaining the
naming I used.
The PMIC driver could support a different PMIC. Its OF
match table specifies a compatible string with matching
data, and the data describes attributes of the P1 PMIC.
So that driver uses MOD_NAME "spacemit-pmic".
This driver describes specifically the regulators found
in the P1 PMIC, so it uses "spacemit-p1-regulator" as
its MOD_NAME.
You might still be right; but does this change what you
are suggesting?
+obj-$(CONFIG_REGULATOR_SPACEMIT_P1) += spacemit-p1.o