drivers/regulator/ab8500-ext.c
Source file repositories/reference/linux-study-clean/drivers/regulator/ab8500-ext.c
File Facts
- System
- Linux kernel
- Corpus path
drivers/regulator/ab8500-ext.c- Extension
.c- Size
- 12420 bytes
- Lines
- 475
- 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/init.hlinux/kernel.hlinux/err.hlinux/module.hlinux/of.hlinux/platform_device.hlinux/regulator/driver.hlinux/regulator/machine.hlinux/regulator/of_regulator.hlinux/mfd/abx500.hlinux/mfd/abx500/ab8500.h
Detected Declarations
struct ab8500_ext_regulator_cfgstruct ab8500_ext_regulator_infoenum ab8500_ext_regulator_idfunction ab8500_ext_regulator_enablefunction ab8500_ext_regulator_disablefunction ab8500_ext_regulator_is_enabledfunction ab8500_ext_regulator_set_modefunction ab8500_ext_regulator_get_modefunction ab8500_ext_set_voltagefunction ab8500_ext_list_voltagefunction ab8500_ext_regulator_probefunction ab8500_ext_regulator_initfunction ab8500_ext_regulator_exitmodule init ab8500_ext_regulator_init
Annotated Snippet
subsys_initcall(ab8500_ext_regulator_init);
static void __exit ab8500_ext_regulator_exit(void)
{
platform_driver_unregister(&ab8500_ext_regulator_driver);
}
module_exit(ab8500_ext_regulator_exit);
MODULE_LICENSE("GPL v2");
MODULE_AUTHOR("Bengt Jonsson <bengt.g.jonsson@stericsson.com>");
MODULE_DESCRIPTION("AB8500 external regulator driver");
MODULE_ALIAS("platform:ab8500-ext-regulator");
Annotation
- Immediate include surface: `linux/init.h`, `linux/kernel.h`, `linux/err.h`, `linux/module.h`, `linux/of.h`, `linux/platform_device.h`, `linux/regulator/driver.h`, `linux/regulator/machine.h`.
- Detected declarations: `struct ab8500_ext_regulator_cfg`, `struct ab8500_ext_regulator_info`, `enum ab8500_ext_regulator_id`, `function ab8500_ext_regulator_enable`, `function ab8500_ext_regulator_disable`, `function ab8500_ext_regulator_is_enabled`, `function ab8500_ext_regulator_set_mode`, `function ab8500_ext_regulator_get_mode`, `function ab8500_ext_set_voltage`, `function ab8500_ext_list_voltage`.
- 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.