drivers/regulator/max8997-regulator.c
Source file repositories/reference/linux-study-clean/drivers/regulator/max8997-regulator.c
File Facts
- System
- Linux kernel
- Corpus path
drivers/regulator/max8997-regulator.c- Extension
.c- Size
- 31084 bytes
- Lines
- 1184
- 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/bug.hlinux/cleanup.hlinux/err.hlinux/gpio/consumer.hlinux/slab.hlinux/module.hlinux/platform_device.hlinux/regulator/driver.hlinux/regulator/machine.hlinux/mfd/max8997.hlinux/mfd/max8997-private.hlinux/regulator/of_regulator.h
Detected Declarations
struct max8997_datastruct voltage_map_descfunction max8997_set_gpiofunction max8997_list_voltage_charger_cvfunction max8997_list_voltagefunction max8997_get_enable_registerfunction max8997_reg_is_enabledfunction max8997_reg_enablefunction max8997_reg_disablefunction max8997_get_voltage_registerfunction max8997_get_voltage_selfunction max8997_get_voltage_proper_valfunction max8997_set_voltage_charger_cvfunction max8997_set_voltage_ldobuckfunction max8997_set_voltage_buck_time_selfunction changefunction max8997_set_voltage_buckfunction max8997_set_voltage_safeout_selfunction max8997_reg_disable_suspendfunction max8997_set_current_limitfunction max8997_get_current_limitfunction max8997_pmic_dt_parse_pdatafunction max8997_pmic_dt_parse_pdatafunction max8997_pmic_probefunction max8997_pmic_initfunction max8997_pmic_cleanupmodule init max8997_pmic_init
Annotated Snippet
subsys_initcall(max8997_pmic_init);
static void __exit max8997_pmic_cleanup(void)
{
platform_driver_unregister(&max8997_pmic_driver);
}
module_exit(max8997_pmic_cleanup);
MODULE_DESCRIPTION("MAXIM 8997/8966 Regulator Driver");
MODULE_AUTHOR("MyungJoo Ham <myungjoo.ham@samsung.com>");
MODULE_LICENSE("GPL");
Annotation
- Immediate include surface: `linux/bug.h`, `linux/cleanup.h`, `linux/err.h`, `linux/gpio/consumer.h`, `linux/slab.h`, `linux/module.h`, `linux/platform_device.h`, `linux/regulator/driver.h`.
- Detected declarations: `struct max8997_data`, `struct voltage_map_desc`, `function max8997_set_gpio`, `function max8997_list_voltage_charger_cv`, `function max8997_list_voltage`, `function max8997_get_enable_register`, `function max8997_reg_is_enabled`, `function max8997_reg_enable`, `function max8997_reg_disable`, `function max8997_get_voltage_register`.
- 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.