drivers/gpu/drm/panel/panel-raspberrypi-touchscreen.c
Source file repositories/reference/linux-study-clean/drivers/gpu/drm/panel/panel-raspberrypi-touchscreen.c
File Facts
- System
- Linux kernel
- Corpus path
drivers/gpu/drm/panel/panel-raspberrypi-touchscreen.c- Extension
.c- Size
- 12795 bytes
- Lines
- 512
- Domain
- Driver Families
- Bucket
- drivers/gpu
- 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/delay.hlinux/err.hlinux/i2c.hlinux/media-bus-format.hlinux/module.hlinux/of.hlinux/of_graph.hlinux/pm.hdrm/drm_crtc.hdrm/drm_device.hdrm/drm_mipi_dsi.hdrm/drm_panel.h
Detected Declarations
struct rpi_touchscreenenum REG_ADDRfunction rpi_touchscreen_i2c_readfunction rpi_touchscreen_i2c_writefunction rpi_touchscreen_writefunction rpi_touchscreen_disablefunction rpi_touchscreen_noopfunction rpi_touchscreen_preparefunction rpi_touchscreen_enablefunction rpi_touchscreen_get_modesfunction rpi_touchscreen_probefunction rpi_touchscreen_removefunction rpi_touchscreen_dsi_probefunction rpi_touchscreen_initfunction rpi_touchscreen_exitmodule init rpi_touchscreen_init
Annotated Snippet
module_init(rpi_touchscreen_init);
static void __exit rpi_touchscreen_exit(void)
{
i2c_del_driver(&rpi_touchscreen_driver);
mipi_dsi_driver_unregister(&rpi_touchscreen_dsi_driver);
}
module_exit(rpi_touchscreen_exit);
MODULE_AUTHOR("Eric Anholt <eric@anholt.net>");
MODULE_DESCRIPTION("Raspberry Pi 7-inch touchscreen driver");
MODULE_LICENSE("GPL v2");
Annotation
- Immediate include surface: `linux/delay.h`, `linux/err.h`, `linux/i2c.h`, `linux/media-bus-format.h`, `linux/module.h`, `linux/of.h`, `linux/of_graph.h`, `linux/pm.h`.
- Detected declarations: `struct rpi_touchscreen`, `enum REG_ADDR`, `function rpi_touchscreen_i2c_read`, `function rpi_touchscreen_i2c_write`, `function rpi_touchscreen_write`, `function rpi_touchscreen_disable`, `function rpi_touchscreen_noop`, `function rpi_touchscreen_prepare`, `function rpi_touchscreen_enable`, `function rpi_touchscreen_get_modes`.
- Atlas domain: Driver Families / drivers/gpu.
- 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.