drivers/regulator/tps6507x-regulator.c
Source file repositories/reference/linux-study-clean/drivers/regulator/tps6507x-regulator.c
File Facts
- System
- Linux kernel
- Corpus path
drivers/regulator/tps6507x-regulator.c- Extension
.c- Size
- 11205 bytes
- Lines
- 462
- 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.
- Allocates kernel memory; connect allocation flags and lifetime to context constraints.
- Defines or uses C structs; map object ownership, embedded links, reference counts, and lock ownership.
Dependency Surface
linux/kernel.hlinux/module.hlinux/init.hlinux/err.hlinux/platform_device.hlinux/regulator/driver.hlinux/regulator/machine.hlinux/regulator/tps6507x.hlinux/of.hlinux/slab.hlinux/mfd/tps6507x.hlinux/regulator/of_regulator.h
Detected Declarations
struct tps_infostruct tps6507x_pmicfunction tps6507x_pmic_readfunction tps6507x_pmic_writefunction tps6507x_pmic_set_bitsfunction tps6507x_pmic_clear_bitsfunction tps6507x_pmic_reg_readfunction tps6507x_pmic_reg_writefunction tps6507x_pmic_is_enabledfunction tps6507x_pmic_enablefunction tps6507x_pmic_disablefunction tps6507x_pmic_get_voltage_selfunction tps6507x_pmic_set_voltage_selfunction tps6507x_pmic_of_parse_cbfunction tps6507x_pmic_probefunction tps6507x_pmic_initfunction tps6507x_pmic_cleanupmodule init tps6507x_pmic_init
Annotated Snippet
subsys_initcall(tps6507x_pmic_init);
static void __exit tps6507x_pmic_cleanup(void)
{
platform_driver_unregister(&tps6507x_pmic_driver);
}
module_exit(tps6507x_pmic_cleanup);
MODULE_AUTHOR("Texas Instruments");
MODULE_DESCRIPTION("TPS6507x voltage regulator driver");
MODULE_LICENSE("GPL v2");
MODULE_ALIAS("platform:tps6507x-pmic");
Annotation
- Immediate include surface: `linux/kernel.h`, `linux/module.h`, `linux/init.h`, `linux/err.h`, `linux/platform_device.h`, `linux/regulator/driver.h`, `linux/regulator/machine.h`, `linux/regulator/tps6507x.h`.
- Detected declarations: `struct tps_info`, `struct tps6507x_pmic`, `function tps6507x_pmic_read`, `function tps6507x_pmic_write`, `function tps6507x_pmic_set_bits`, `function tps6507x_pmic_clear_bits`, `function tps6507x_pmic_reg_read`, `function tps6507x_pmic_reg_write`, `function tps6507x_pmic_is_enabled`, `function tps6507x_pmic_enable`.
- 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.