MODNAME := ext3xxx
$(MODNAME)-objs-y += ext3xxx-regulator.o
ifeq ($(strip $(CONFIG_SOCT_DRV_BUILD_KO)), y)
	$(MODNAME)-objs-y += ext3xxx-regulator.o
	obj-m += $(MODNAME).o
	$(MODNAME)-objs := $($(MODNAME)-objs-y)
else
	obj-y += $($(MODNAME)-objs-y)
endif


MODNAME := debug_regulator
$(MODNAME)-objs-y += regulator_debug.o
ifeq ($(strip $(CONFIG_SOCT_DRV_BUILD_KO)), y)
	$(MODNAME)-objs-y += regulator_debug.o
	obj-m += $(MODNAME).o
	$(MODNAME)-objs := $($(MODNAME)-objs-y)
else
	obj-y += $($(MODNAME)-objs-y)
endif


MODNAME := pmicxxx
$(MODNAME)-objs-$(CONFIG_SOCT_PMIC_REGULATOR_SUPPORT) += pmicxxx_regulator.o
ifeq ($(strip $(CONFIG_SOCT_DRV_BUILD_KO)), y)
	$(MODNAME)-objs-y += pmicxxx_regulator.o
	obj-m += $(MODNAME).o
	$(MODNAME)-objs := $($(MODNAME)-objs-y)
else
	obj-$(CONFIG_SOCT_PMIC_REGULATOR_SUPPORT) += $($(MODNAME)-objs-y)
endif

