drivers/regulator/twl6030-regulator.c
Source file repositories/reference/linux-study-clean/drivers/regulator/twl6030-regulator.c
File Facts
- System
- Linux kernel
- Corpus path
drivers/regulator/twl6030-regulator.c- Extension
.c- Size
- 20375 bytes
- Lines
- 786
- 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/module.hlinux/string.hlinux/slab.hlinux/init.hlinux/err.hlinux/platform_device.hlinux/of.hlinux/regulator/driver.hlinux/regulator/machine.hlinux/regulator/of_regulator.hlinux/mfd/twl.hlinux/delay.h
Detected Declarations
struct twlreg_infofunction twlreg_readfunction twlreg_writefunction twlreg_grpfunction twl6030reg_is_enabledfunction twl6030reg_enablefunction twl6030reg_disablefunction twl6030reg_get_statusfunction twl6030reg_set_modefunction twl6030coresmps_set_voltagefunction twl6030coresmps_get_voltagefunction twl6030ldo_set_voltage_selfunction twl6030ldo_get_voltage_selfunction twl6030smps_list_voltagefunction twl6030smps_map_voltagefunction twl6030smps_set_voltage_selfunction twl6030smps_get_voltage_selfunction twl_get_smps_offsetfunction twl_get_smps_multfunction twlreg_probefunction twlreg_initfunction twlreg_exitmodule init twlreg_init
Annotated Snippet
subsys_initcall(twlreg_init);
static void __exit twlreg_exit(void)
{
platform_driver_unregister(&twlreg_driver);
}
module_exit(twlreg_exit)
MODULE_DESCRIPTION("TWL6030 regulator driver");
MODULE_LICENSE("GPL");
Annotation
- Immediate include surface: `linux/module.h`, `linux/string.h`, `linux/slab.h`, `linux/init.h`, `linux/err.h`, `linux/platform_device.h`, `linux/of.h`, `linux/regulator/driver.h`.
- Detected declarations: `struct twlreg_info`, `function twlreg_read`, `function twlreg_write`, `function twlreg_grp`, `function twl6030reg_is_enabled`, `function twl6030reg_enable`, `function twl6030reg_disable`, `function twl6030reg_get_status`, `function twl6030reg_set_mode`, `function twl6030coresmps_set_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.