drivers/regulator/max8660.c
Source file repositories/reference/linux-study-clean/drivers/regulator/max8660.c
File Facts
- System
- Linux kernel
- Corpus path
drivers/regulator/max8660.c- Extension
.c- Size
- 13496 bytes
- Lines
- 530
- 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/err.hlinux/i2c.hlinux/platform_device.hlinux/regulator/driver.hlinux/slab.hlinux/regulator/max8660.hlinux/of.hlinux/of_device.hlinux/regulator/of_regulator.h
Detected Declarations
struct max8660function max8660_writefunction max8660_dcdc_is_enabledfunction max8660_dcdc_enablefunction max8660_dcdc_disablefunction max8660_dcdc_get_voltage_selfunction max8660_dcdc_set_voltage_selfunction max8660_ldo5_get_voltage_selfunction max8660_ldo5_set_voltage_selfunction max8660_ldo67_is_enabledfunction max8660_ldo67_enablefunction max8660_ldo67_disablefunction max8660_ldo67_get_voltage_selfunction max8660_ldo67_set_voltage_selfunction max8660_pdata_from_dtfunction max8660_pdata_from_dtfunction max8660_probefunction max8660_initfunction max8660_exitmodule init max8660_init
Annotated Snippet
subsys_initcall(max8660_init);
static void __exit max8660_exit(void)
{
i2c_del_driver(&max8660_driver);
}
module_exit(max8660_exit);
/* Module information */
MODULE_DESCRIPTION("MAXIM 8660/8661 voltage regulator driver");
MODULE_AUTHOR("Wolfram Sang");
MODULE_LICENSE("GPL v2");
Annotation
- Immediate include surface: `linux/module.h`, `linux/err.h`, `linux/i2c.h`, `linux/platform_device.h`, `linux/regulator/driver.h`, `linux/slab.h`, `linux/regulator/max8660.h`, `linux/of.h`.
- Detected declarations: `struct max8660`, `function max8660_write`, `function max8660_dcdc_is_enabled`, `function max8660_dcdc_enable`, `function max8660_dcdc_disable`, `function max8660_dcdc_get_voltage_sel`, `function max8660_dcdc_set_voltage_sel`, `function max8660_ldo5_get_voltage_sel`, `function max8660_ldo5_set_voltage_sel`, `function max8660_ldo67_is_enabled`.
- 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.