drivers/regulator/wm8400-regulator.c
Source file repositories/reference/linux-study-clean/drivers/regulator/wm8400-regulator.c
File Facts
- System
- Linux kernel
- Corpus path
drivers/regulator/wm8400-regulator.c- Extension
.c- Size
- 7867 bytes
- Lines
- 277
- Domain
- Driver Families
- Bucket
- drivers/regulator
- Inferred role
- Driver Families: exported/initcall integration point
- Status
- integration implementation candidate
Why This File Exists
Repeatable hardware-adapter layer. Deep compatibility for every driver is out of scope; this atlas records patterns, probe lifecycles, bus glue, IRQ/DMA usage, and links back to core abstractions.
- Repeatable hardware-adapter layer. Deep compatibility for every driver is out of scope; this atlas records patterns, probe lifecycles, bus glue, IRQ/DMA usage, and links back to core abstractions.
- Exports symbols or registers init work; inspect boot/module ordering and who consumes the exported contract.
- Defines or uses C structs; map object ownership, embedded links, reference counts, and lock ownership.
Dependency Surface
linux/bug.hlinux/err.hlinux/kernel.hlinux/module.hlinux/regulator/driver.hlinux/mfd/wm8400-private.h
Detected Declarations
function wm8400_dcdc_get_modefunction wm8400_dcdc_set_modefunction wm8400_dcdc_get_optimum_modefunction wm8400_regulator_probefunction platform_initfunction wm8400_regulator_initfunction wm8400_regulator_exitmodule init wm8400_regulator_initexport wm8400_register_regulator
Annotated Snippet
subsys_initcall(wm8400_regulator_init);
static void __exit wm8400_regulator_exit(void)
{
platform_driver_unregister(&wm8400_regulator_driver);
}
module_exit(wm8400_regulator_exit);
MODULE_AUTHOR("Mark Brown <broonie@opensource.wolfsonmicro.com>");
MODULE_DESCRIPTION("WM8400 regulator driver");
MODULE_LICENSE("GPL");
MODULE_ALIAS("platform:wm8400-regulator");
Annotation
- Immediate include surface: `linux/bug.h`, `linux/err.h`, `linux/kernel.h`, `linux/module.h`, `linux/regulator/driver.h`, `linux/mfd/wm8400-private.h`.
- Detected declarations: `function wm8400_dcdc_get_mode`, `function wm8400_dcdc_set_mode`, `function wm8400_dcdc_get_optimum_mode`, `function wm8400_regulator_probe`, `function platform_init`, `function wm8400_regulator_init`, `function wm8400_regulator_exit`, `module init wm8400_regulator_init`, `export wm8400_register_regulator`.
- Atlas domain: Driver Families / drivers/regulator.
- Implementation status: integration implementation candidate.
Implementation Notes
- This generated page is the file-by-file coverage layer; curated subsystem chapters should link here when they synthesize a multi-file control flow.
- Core OS pages should be promoted from atlas-only to deep-reviewed when they explain data structures, invariants, locking, lifecycle, and C implementation snippets.
- Driver-family pages are intentionally pattern-oriented unless they are part of the selected PCIe/NVMe representative device path.