Allow mtk-regulator-coupler to be built as a module
Get series with b4
b4 am [email protected]Versions newest first
- v1 Latest2 patches 5 repliesIn review
Patches in v1 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/2 | regulator: core: Export helpers used by regulator couplersdrivers/ | +4 | 1 reply | |
| 2/2 | soc: mediatek: mtk-regulator-coupler: Allow building as a moduledrivers/ | +5 | 0 replies |
Reviews trailers per patch
1 of 2 patches has a Reviewed-by or Acked-by.
| Patch | Mark Brown |
|---|---|
| 1/2 | A-b |
| 2/2 |
Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.
Cover letter [PATCH 0/2] Allow mtk-regulator-coupler to be built as a module
MTK_REGULATOR_COUPLER can currently only be built into the kernel: it is a bool, and its prompt is hidden unless COMPILE_TEST is set, so on real MediaTek configurations the symbol has no prompt and is forced to its "default ARCH_MEDIATEK" value.
Kernels that ship nearly everything as a module (Android GKI style kernels, but distro kernels have the same shape) cannot use it that way. Two things are in the way:
- the four helpers the coupler calls are declared in include/linux/regulator/coupler.h for coupler implementations to use, but none of them is exported (patch 1);
- the Kconfig symbol is a bool without a usable prompt (patch 2).
With both patches applied, CONFIG_MTK_REGULATOR_COUPLER=m builds and mtk_regulator_coupler.ko loads and registers the coupler. Existing configurations are unaffected: "default ARCH_MEDIATEK" is kept, so they keep building the coupler in.
Justin Yeh (2):
regulator: core: Export helpers used by regulator couplers
soc: mediatek: mtk-regulator-coupler: Allow building as a module
drivers/regulator/core.c | 4 ++++ drivers/soc/mediatek/Kconfig | 6 +++++- 2 files changed, 9 insertions(+), 1 deletion(-)
Signature · 1 line
2.45.2