drivers/platform/x86/dell/dell-lis3lv02d.c
Source file repositories/reference/linux-study-clean/drivers/platform/x86/dell/dell-lis3lv02d.c
File Facts
- System
- Linux kernel
- Corpus path
drivers/platform/x86/dell/dell-lis3lv02d.c- Extension
.c- Size
- 7569 bytes
- Lines
- 261
- 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.
- Defines or uses C structs; map object ownership, embedded links, reference counts, and lock ownership.
Dependency Surface
linux/device/bus.hlinux/dmi.hlinux/i2c.hlinux/module.hlinux/notifier.hlinux/platform_device.hlinux/workqueue.hdell-smo8800-ids.h
Detected Declarations
function detect_lis3lv02dfunction i2c_adapter_is_main_i801function find_i801function instantiate_i2c_clientfunction i2c_bus_notifyfunction match_acpi_device_idsfunction dell_lis3lv02d_initfunction dell_lis3lv02d_module_exitmodule init dell_lis3lv02d_init
Annotated Snippet
module_init(dell_lis3lv02d_init);
static void __exit dell_lis3lv02d_module_exit(void)
{
if (!notifier_registered)
return;
bus_unregister_notifier(&i2c_bus_type, &i2c_nb);
cancel_work_sync(&i2c_work);
i2c_unregister_device(i2c_dev);
}
module_exit(dell_lis3lv02d_module_exit);
MODULE_DESCRIPTION("lis3lv02d i2c-client instantiation for ACPI SMO88xx devices");
MODULE_AUTHOR("Hans de Goede <hansg@kernel.org>");
MODULE_LICENSE("GPL");
Annotation
- Immediate include surface: `linux/device/bus.h`, `linux/dmi.h`, `linux/i2c.h`, `linux/module.h`, `linux/notifier.h`, `linux/platform_device.h`, `linux/workqueue.h`, `dell-smo8800-ids.h`.
- Detected declarations: `function detect_lis3lv02d`, `function i2c_adapter_is_main_i801`, `function find_i801`, `function instantiate_i2c_client`, `function i2c_bus_notify`, `function match_acpi_device_ids`, `function dell_lis3lv02d_init`, `function dell_lis3lv02d_module_exit`, `module init dell_lis3lv02d_init`.
- 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.