drivers/video/backlight/ili9320.h
Source file repositories/reference/linux-study-clean/drivers/video/backlight/ili9320.h
File Facts
- System
- Linux kernel
- Corpus path
drivers/video/backlight/ili9320.h- Extension
.h- Size
- 1786 bytes
- Lines
- 78
- Domain
- Driver Families
- Bucket
- drivers/video
- Inferred role
- Driver Families: implementation source
- Status
- source 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.
- Defines or uses C structs; map object ownership, embedded links, reference counts, and lock ownership.
Dependency Surface
- No C-style include directives detected by the generator.
Detected Declarations
struct ili9320_regstruct ili9320struct ili9320_clientstruct ili9320_spistruct ili9320
Annotated Snippet
struct ili9320_reg {
unsigned short address;
unsigned short value;
};
struct ili9320;
struct ili9320_client {
const char *name;
int (*init)(struct ili9320 *ili, struct ili9320_platdata *cfg);
};
/* Device attached via an SPI bus. */
struct ili9320_spi {
struct spi_device *dev;
struct spi_message message;
struct spi_transfer xfer[2];
unsigned char id;
unsigned char buffer_addr[4];
unsigned char buffer_data[4];
};
/* ILI9320 device state. */
struct ili9320 {
union {
struct ili9320_spi spi; /* SPI attachged device. */
} access; /* Register access method. */
struct device *dev;
struct lcd_device *lcd; /* LCD device we created. */
struct ili9320_client *client;
struct ili9320_platdata *platdata;
int power; /* current power state. */
int initialised;
unsigned short display1;
unsigned short power1;
int (*write)(struct ili9320 *ili, unsigned int reg, unsigned int val);
};
/* ILI9320 register access routines */
extern int ili9320_write(struct ili9320 *ili,
unsigned int reg, unsigned int value);
extern int ili9320_write_regs(struct ili9320 *ili,
const struct ili9320_reg *values,
int nr_values);
/* Device probe */
extern int ili9320_probe_spi(struct spi_device *spi,
struct ili9320_client *cli);
extern void ili9320_remove(struct ili9320 *lcd);
extern void ili9320_shutdown(struct ili9320 *lcd);
/* PM */
extern int ili9320_suspend(struct ili9320 *lcd);
extern int ili9320_resume(struct ili9320 *lcd);
Annotation
- Detected declarations: `struct ili9320_reg`, `struct ili9320`, `struct ili9320_client`, `struct ili9320_spi`, `struct ili9320`.
- Atlas domain: Driver Families / drivers/video.
- Implementation status: source 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.