drivers/regulator/twl-regulator.c
Source file repositories/reference/linux-study-clean/drivers/regulator/twl-regulator.c
File Facts
- System
- Linux kernel
- Corpus path
drivers/regulator/twl-regulator.c- Extension
.c- Size
- 18662 bytes
- Lines
- 677
- 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 twl4030reg_is_enabledfunction twl4030_wait_pb_readyfunction twl4030_send_pb_msgfunction twl4030reg_enablefunction twl4030reg_disablefunction twl4030reg_get_statusfunction twl4030reg_set_modefunction twl4030reg_map_modefunction twl4030ldo_list_voltagefunction twl4030ldo_set_voltage_selfunction twl4030ldo_get_voltage_selfunction twl4030smps_set_voltagefunction twl4030smps_get_voltagefunction 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("TWL4030 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 twl4030reg_is_enabled`, `function twl4030_wait_pb_ready`, `function twl4030_send_pb_msg`, `function twl4030reg_enable`, `function twl4030reg_disable`, `function twl4030reg_get_status`.
- 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.