drivers/mfd/lm3533-core.c
Source file repositories/reference/linux-study-clean/drivers/mfd/lm3533-core.c
File Facts
- System
- Linux kernel
- Corpus path
drivers/mfd/lm3533-core.c- Extension
.c- Size
- 13848 bytes
- Lines
- 636
- Domain
- Driver Families
- Bucket
- drivers/mfd
- 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/kernel.hlinux/err.hlinux/gpio/consumer.hlinux/i2c.hlinux/mfd/core.hlinux/regmap.hlinux/seq_file.hlinux/slab.hlinux/uaccess.hlinux/mfd/lm3533.h
Detected Declarations
struct lm3533_device_attributeenum lm3533_attribute_typefunction lm3533_readfunction lm3533_writefunction lm3533_updatefunction lm3533_set_boost_freqfunction lm3533_set_boost_ovpfunction lm3533_set_hvled_configfunction lm3533_set_lvled_configfunction lm3533_enablefunction lm3533_disablefunction show_outputfunction store_outputfunction lm3533_attr_is_visiblefunction lm3533_device_als_initfunction lm3533_device_bl_initfunction lm3533_device_led_initfunction lm3533_device_setupfunction lm3533_device_initfunction lm3533_device_exitfunction lm3533_readable_registerfunction lm3533_volatile_registerfunction lm3533_precious_registerfunction lm3533_i2c_probefunction lm3533_i2c_removefunction lm3533_i2c_initfunction lm3533_i2c_exitmodule init lm3533_i2c_initexport lm3533_readexport lm3533_writeexport lm3533_update
Annotated Snippet
subsys_initcall(lm3533_i2c_init);
static void __exit lm3533_i2c_exit(void)
{
i2c_del_driver(&lm3533_i2c_driver);
}
module_exit(lm3533_i2c_exit);
MODULE_AUTHOR("Johan Hovold <jhovold@gmail.com>");
MODULE_DESCRIPTION("LM3533 Core");
MODULE_LICENSE("GPL");
Annotation
- Immediate include surface: `linux/module.h`, `linux/init.h`, `linux/kernel.h`, `linux/err.h`, `linux/gpio/consumer.h`, `linux/i2c.h`, `linux/mfd/core.h`, `linux/regmap.h`.
- Detected declarations: `struct lm3533_device_attribute`, `enum lm3533_attribute_type`, `function lm3533_read`, `function lm3533_write`, `function lm3533_update`, `function lm3533_set_boost_freq`, `function lm3533_set_boost_ovp`, `function lm3533_set_hvled_config`, `function lm3533_set_lvled_config`, `function lm3533_enable`.
- Atlas domain: Driver Families / drivers/mfd.
- 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.