drivers/regulator/lm363x-regulator.c
Source file repositories/reference/linux-study-clean/drivers/regulator/lm363x-regulator.c
File Facts
- System
- Linux kernel
- Corpus path
drivers/regulator/lm363x-regulator.c- Extension
.c- Size
- 10595 bytes
- Lines
- 368
- Domain
- Driver Families
- Bucket
- drivers/regulator
- Inferred role
- Driver Families: implementation source
- Status
- source 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.
- Defines or uses C structs; map object ownership, embedded links, reference counts, and lock ownership.
Dependency Surface
linux/err.hlinux/kernel.hlinux/mfd/ti-lmu.hlinux/mfd/ti-lmu-register.hlinux/module.hlinux/of.hlinux/gpio/consumer.hlinux/platform_device.hlinux/regulator/driver.hlinux/regulator/of_regulator.hlinux/slab.h
Detected Declarations
function lm363x_regulator_enable_timefunction lm363x_regulator_set_ext_enfunction lm363x_regulator_probe
Annotated Snippet
if (ret) {
gpiod_put(gpiod);
dev_err(dev, "External pin err: %d\n", ret);
return ret;
}
}
rdev = devm_regulator_register(dev, &lm363x_regulator_desc[id], &cfg);
if (IS_ERR(rdev)) {
ret = PTR_ERR(rdev);
dev_err(dev, "[%d] regulator register err: %d\n", id, ret);
return ret;
}
return 0;
}
static struct platform_driver lm363x_regulator_driver = {
.probe = lm363x_regulator_probe,
.driver = {
.name = "lm363x-regulator",
.probe_type = PROBE_PREFER_ASYNCHRONOUS,
},
};
module_platform_driver(lm363x_regulator_driver);
MODULE_DESCRIPTION("TI LM363X Regulator Driver");
MODULE_AUTHOR("Milo Kim");
MODULE_LICENSE("GPL v2");
MODULE_ALIAS("platform:lm363x-regulator");
Annotation
- Immediate include surface: `linux/err.h`, `linux/kernel.h`, `linux/mfd/ti-lmu.h`, `linux/mfd/ti-lmu-register.h`, `linux/module.h`, `linux/of.h`, `linux/gpio/consumer.h`, `linux/platform_device.h`.
- Detected declarations: `function lm363x_regulator_enable_time`, `function lm363x_regulator_set_ext_en`, `function lm363x_regulator_probe`.
- Atlas domain: Driver Families / drivers/regulator.
- Implementation status: source 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.