drivers/platform/x86/lenovo/yoga-tab2-pro-1380-fastcharger.c
Source file repositories/reference/linux-study-clean/drivers/platform/x86/lenovo/yoga-tab2-pro-1380-fastcharger.c
File Facts
- System
- Linux kernel
- Corpus path
drivers/platform/x86/lenovo/yoga-tab2-pro-1380-fastcharger.c- Extension
.c- Size
- 9786 bytes
- Lines
- 334
- Domain
- Driver Families
- Bucket
- drivers/platform
- 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/delay.hlinux/err.hlinux/errno.hlinux/extcon.hlinux/gpio/consumer.hlinux/module.hlinux/notifier.hlinux/pinctrl/consumer.hlinux/pinctrl/machine.hlinux/platform_device.hlinux/serdev.hlinux/time.hlinux/types.hlinux/workqueue.h../serdev_helpers.h
Detected Declarations
struct yt2_1380_fcfunction yt2_1380_fc_set_gpio_modefunction yt2_1380_fc_dedicated_charger_connectedfunction yt2_1380_fc_fast_charger_connectedfunction yt2_1380_fc_workerfunction yt2_1380_fc_extcon_evtfunction yt2_1380_fc_receivefunction yt2_1380_fc_serdev_probefunction yt2_1380_fc_pdev_probefunction yt2_1380_fc_pdev_removefunction yt2_1380_fc_module_initfunction yt2_1380_fc_module_exitmodule init yt2_1380_fc_module_init
Annotated Snippet
module_init(yt2_1380_fc_module_init);
static void __exit yt2_1380_fc_module_exit(void)
{
platform_driver_unregister(&yt2_1380_fc_pdev_driver);
serdev_device_driver_unregister(&yt2_1380_fc_serdev_driver);
}
module_exit(yt2_1380_fc_module_exit);
MODULE_ALIAS("platform:" YT2_1380_FC_PDEV_NAME);
MODULE_DESCRIPTION("Lenovo Yoga Tablet 2 1380 fast charge driver");
MODULE_AUTHOR("Hans de Goede <hansg@kernel.org>");
MODULE_LICENSE("GPL");
Annotation
- Immediate include surface: `linux/delay.h`, `linux/err.h`, `linux/errno.h`, `linux/extcon.h`, `linux/gpio/consumer.h`, `linux/module.h`, `linux/notifier.h`, `linux/pinctrl/consumer.h`.
- Detected declarations: `struct yt2_1380_fc`, `function yt2_1380_fc_set_gpio_mode`, `function yt2_1380_fc_dedicated_charger_connected`, `function yt2_1380_fc_fast_charger_connected`, `function yt2_1380_fc_worker`, `function yt2_1380_fc_extcon_evt`, `function yt2_1380_fc_receive`, `function yt2_1380_fc_serdev_probe`, `function yt2_1380_fc_pdev_probe`, `function yt2_1380_fc_pdev_remove`.
- Atlas domain: Driver Families / drivers/platform.
- 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.