drivers/regulator/lp8788-buck.c
Source file repositories/reference/linux-study-clean/drivers/regulator/lp8788-buck.c
File Facts
- System
- Linux kernel
- Corpus path
drivers/regulator/lp8788-buck.c- Extension
.c- Size
- 13180 bytes
- Lines
- 542
- 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.
- 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/module.hlinux/slab.hlinux/err.hlinux/platform_device.hlinux/regulator/driver.hlinux/mfd/lp8788.hlinux/gpio/consumer.h
Detected Declarations
struct lp8788_buckenum lp8788_dvs_stateenum lp8788_dvs_modeenum lp8788_buck_idfunction lp8788_buck1_set_dvsfunction lp8788_buck2_set_dvsfunction lp8788_set_dvsfunction lp8788_get_buck_dvs_ctrl_modefunction lp8788_is_valid_buck_addrfunction lp8788_select_buck_vout_addrfunction lp8788_buck12_set_voltage_selfunction lp8788_buck12_get_voltage_selfunction lp8788_buck_enable_timefunction lp8788_buck_set_modefunction lp8788_buck_get_modefunction lp8788_dvs_gpio_requestfunction lp8788_init_dvsfunction lp8788_buck_probefunction lp8788_buck_initfunction lp8788_buck_exitmodule init lp8788_buck_init
Annotated Snippet
subsys_initcall(lp8788_buck_init);
static void __exit lp8788_buck_exit(void)
{
platform_driver_unregister(&lp8788_buck_driver);
}
module_exit(lp8788_buck_exit);
MODULE_DESCRIPTION("TI LP8788 BUCK Driver");
MODULE_AUTHOR("Milo Kim");
MODULE_LICENSE("GPL");
MODULE_ALIAS("platform:lp8788-buck");
Annotation
- Immediate include surface: `linux/module.h`, `linux/slab.h`, `linux/err.h`, `linux/platform_device.h`, `linux/regulator/driver.h`, `linux/mfd/lp8788.h`, `linux/gpio/consumer.h`.
- Detected declarations: `struct lp8788_buck`, `enum lp8788_dvs_state`, `enum lp8788_dvs_mode`, `enum lp8788_buck_id`, `function lp8788_buck1_set_dvs`, `function lp8788_buck2_set_dvs`, `function lp8788_set_dvs`, `function lp8788_get_buck_dvs_ctrl_mode`, `function lp8788_is_valid_buck_addr`, `function lp8788_select_buck_vout_addr`.
- 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.