drivers/regulator/max8998.c
Source file repositories/reference/linux-study-clean/drivers/regulator/max8998.c
File Facts
- System
- Linux kernel
- Corpus path
drivers/regulator/max8998.c- Extension
.c- Size
- 21906 bytes
- Lines
- 785
- 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/init.hlinux/i2c.hlinux/err.hlinux/bits.hlinux/gpio/consumer.hlinux/slab.hlinux/interrupt.hlinux/mutex.hlinux/of.hlinux/platform_device.hlinux/regulator/driver.hlinux/regulator/of_regulator.hlinux/mfd/max8998.hlinux/mfd/max8998-private.h
Detected Declarations
struct max8998_datafunction max8998_get_enable_registerfunction max8998_ldo_is_enabledfunction max8998_ldo_is_enabled_invertedfunction max8998_ldo_enablefunction max8998_ldo_disablefunction max8998_get_voltage_registerfunction max8998_get_voltage_selfunction max8998_set_voltage_ldo_selfunction buck1_gpio_setfunction buck2_gpio_setfunction max8998_set_voltage_buck_selfunction max8998_set_voltage_buck_time_selfunction max8998_set_current_limitfunction max8998_get_current_limitfunction max8998_pmic_dt_parse_pdatafunction max8998_pmic_probefunction max8998_pmic_initfunction max8998_pmic_cleanupmodule init max8998_pmic_init
Annotated Snippet
subsys_initcall(max8998_pmic_init);
static void __exit max8998_pmic_cleanup(void)
{
platform_driver_unregister(&max8998_pmic_driver);
}
module_exit(max8998_pmic_cleanup);
MODULE_DESCRIPTION("MAXIM 8998 voltage regulator driver");
MODULE_AUTHOR("Kyungmin Park <kyungmin.park@samsung.com>");
MODULE_LICENSE("GPL");
Annotation
- Immediate include surface: `linux/module.h`, `linux/init.h`, `linux/i2c.h`, `linux/err.h`, `linux/bits.h`, `linux/gpio/consumer.h`, `linux/slab.h`, `linux/interrupt.h`.
- Detected declarations: `struct max8998_data`, `function max8998_get_enable_register`, `function max8998_ldo_is_enabled`, `function max8998_ldo_is_enabled_inverted`, `function max8998_ldo_enable`, `function max8998_ldo_disable`, `function max8998_get_voltage_register`, `function max8998_get_voltage_sel`, `function max8998_set_voltage_ldo_sel`, `function buck1_gpio_set`.
- 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.