drivers/extcon/extcon-fsa9480.c
Source file repositories/reference/linux-study-clean/drivers/extcon/extcon-fsa9480.c
File Facts
- System
- Linux kernel
- Corpus path
drivers/extcon/extcon-fsa9480.c- Extension
.c- Size
- 10277 bytes
- Lines
- 391
- Domain
- Driver Families
- Bucket
- drivers/extcon
- 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.
- Touches IRQ or DMA behavior; this matters for the representative real-device path.
- 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/kernel.hlinux/module.hlinux/types.hlinux/i2c.hlinux/slab.hlinux/bitops.hlinux/interrupt.hlinux/err.hlinux/platform_device.hlinux/kobject.hlinux/extcon-provider.hlinux/irqdomain.hlinux/regmap.h
Detected Declarations
struct fsa9480_usbswfunction fsa9480_volatile_regfunction fsa9480_write_regfunction fsa9480_read_regfunction fsa9480_read_irqfunction fsa9480_handle_changefunction fsa9480_detect_devfunction fsa9480_irq_handlerfunction fsa9480_probefunction fsa9480_suspendfunction fsa9480_resumefunction fsa9480_module_initfunction fsa9480_module_exitmodule init fsa9480_module_init
Annotated Snippet
subsys_initcall(fsa9480_module_init);
static void __exit fsa9480_module_exit(void)
{
i2c_del_driver(&fsa9480_i2c_driver);
}
module_exit(fsa9480_module_exit);
MODULE_DESCRIPTION("Fairchild Semiconductor FSA9480 extcon driver");
MODULE_AUTHOR("Tomasz Figa <tomasz.figa@gmail.com>");
MODULE_LICENSE("GPL");
Annotation
- Immediate include surface: `linux/kernel.h`, `linux/module.h`, `linux/types.h`, `linux/i2c.h`, `linux/slab.h`, `linux/bitops.h`, `linux/interrupt.h`, `linux/err.h`.
- Detected declarations: `struct fsa9480_usbsw`, `function fsa9480_volatile_reg`, `function fsa9480_write_reg`, `function fsa9480_read_reg`, `function fsa9480_read_irq`, `function fsa9480_handle_change`, `function fsa9480_detect_dev`, `function fsa9480_irq_handler`, `function fsa9480_probe`, `function fsa9480_suspend`.
- Atlas domain: Driver Families / drivers/extcon.
- Implementation status: integration implementation candidate.
- IRQ or DMA behavior appears here, which is relevant to the selected PCIe/NVMe device path.
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.