drivers/extcon/extcon-max77843.c
Source file repositories/reference/linux-study-clean/drivers/extcon/extcon-max77843.c
File Facts
- System
- Linux kernel
- Corpus path
drivers/extcon/extcon-max77843.c- Extension
.c- Size
- 27160 bytes
- Lines
- 972
- 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.
- Uses kernel synchronization; read lock ordering, sleepability, and interrupt context assumptions before translating.
- 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/extcon-provider.hlinux/i2c.hlinux/interrupt.hlinux/kernel.hlinux/mfd/max77693-common.hlinux/mfd/max77843-private.hlinux/module.hlinux/platform_device.hlinux/workqueue.h
Detected Declarations
struct max77843_muic_infostruct max77843_muic_irqenum max77843_muic_statusenum max77843_muic_cable_groupenum max77843_muic_adc_debounce_timeenum max77843_muic_accessory_typeenum max77843_muic_charger_typefunction max77843_muic_set_pathfunction max77843_charger_set_otg_vbusfunction max77843_muic_get_cable_typefunction max77843_muic_adc_gnd_handlerfunction max77843_muic_jig_handlerfunction max77843_muic_dock_handlerfunction max77843_muic_adc_handlerfunction max77843_muic_chg_handlerfunction max77843_muic_irq_workfunction max77843_muic_irq_handlerfunction max77843_muic_detect_cable_wqfunction max77843_muic_set_debounce_timefunction max77843_init_muic_regmapfunction max77843_muic_probefunction max77843_muic_removefunction max77843_muic_initmodule init max77843_muic_init
Annotated Snippet
subsys_initcall(max77843_muic_init);
MODULE_DESCRIPTION("Maxim MAX77843 Extcon driver");
MODULE_AUTHOR("Jaewon Kim <jaewon02.kim@samsung.com>");
MODULE_LICENSE("GPL");
Annotation
- Immediate include surface: `linux/extcon-provider.h`, `linux/i2c.h`, `linux/interrupt.h`, `linux/kernel.h`, `linux/mfd/max77693-common.h`, `linux/mfd/max77843-private.h`, `linux/module.h`, `linux/platform_device.h`.
- Detected declarations: `struct max77843_muic_info`, `struct max77843_muic_irq`, `enum max77843_muic_status`, `enum max77843_muic_cable_group`, `enum max77843_muic_adc_debounce_time`, `enum max77843_muic_accessory_type`, `enum max77843_muic_charger_type`, `function max77843_muic_set_path`, `function max77843_charger_set_otg_vbus`, `function max77843_muic_get_cable_type`.
- Atlas domain: Driver Families / drivers/extcon.
- Implementation status: integration implementation candidate.
- Synchronization appears in or near this file; preserve lock ordering, sleepability, and interrupt-context constraints.
- 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.