drivers/regulator/ab8500.c
Source file repositories/reference/linux-study-clean/drivers/regulator/ab8500.c
File Facts
- System
- Linux kernel
- Corpus path
drivers/regulator/ab8500.c- Extension
.c- Size
- 44166 bytes
- Lines
- 1768
- 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.
- Uses kernel synchronization; read lock ordering, sleepability, and interrupt context assumptions before translating.
- Defines or uses C structs; map object ownership, embedded links, reference counts, and lock ownership.
Dependency Surface
linux/init.hlinux/kernel.hlinux/module.hlinux/err.hlinux/platform_device.hlinux/mfd/abx500.hlinux/mfd/abx500/ab8500.hlinux/of.hlinux/regulator/of_regulator.hlinux/regulator/driver.hlinux/regulator/machine.hlinux/slab.h
Detected Declarations
struct ab8500_shared_modestruct ab8500_regulator_infostruct ab8500_reg_initenum ab8500_regulator_idenum ab8505_regulator_idenum ab8500_regulator_regenum ab8505_regulator_regfunction ab8500_regulator_enablefunction ab8500_regulator_disablefunction ab8500_regulator_is_enabledfunction ab8500_regulator_get_optimum_modefunction ab8500_regulator_set_modefunction ab8500_regulator_get_modefunction ab8500_regulator_get_voltage_selfunction ab8500_regulator_set_voltage_selfunction abx500_get_regulator_infofunction ab8500_regulator_registerfunction ab8500_regulator_probefunction ab8500_regulator_initfunction ab8500_regulator_exitmodule init ab8500_regulator_init
Annotated Snippet
subsys_initcall(ab8500_regulator_init);
static void __exit ab8500_regulator_exit(void)
{
platform_driver_unregister(&ab8500_regulator_driver);
}
module_exit(ab8500_regulator_exit);
MODULE_LICENSE("GPL v2");
MODULE_AUTHOR("Sundar Iyer <sundar.iyer@stericsson.com>");
MODULE_AUTHOR("Bengt Jonsson <bengt.g.jonsson@stericsson.com>");
MODULE_AUTHOR("Daniel Willerud <daniel.willerud@stericsson.com>");
MODULE_DESCRIPTION("Regulator Driver for ST-Ericsson AB8500 Mixed-Sig PMIC");
MODULE_ALIAS("platform:ab8500-regulator");
Annotation
- Immediate include surface: `linux/init.h`, `linux/kernel.h`, `linux/module.h`, `linux/err.h`, `linux/platform_device.h`, `linux/mfd/abx500.h`, `linux/mfd/abx500/ab8500.h`, `linux/of.h`.
- Detected declarations: `struct ab8500_shared_mode`, `struct ab8500_regulator_info`, `struct ab8500_reg_init`, `enum ab8500_regulator_id`, `enum ab8505_regulator_id`, `enum ab8500_regulator_reg`, `enum ab8505_regulator_reg`, `function ab8500_regulator_enable`, `function ab8500_regulator_disable`, `function ab8500_regulator_is_enabled`.
- Atlas domain: Driver Families / drivers/regulator.
- Implementation status: integration implementation candidate.
- Synchronization appears in or near this file; preserve lock ordering, sleepability, and interrupt-context constraints.
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.