drivers/video/backlight/ams369fg06.c
Source file repositories/reference/linux-study-clean/drivers/video/backlight/ams369fg06.c
File Facts
- System
- Linux kernel
- Corpus path
drivers/video/backlight/ams369fg06.c- Extension
.c- Size
- 11755 bytes
- Lines
- 564
- 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.
- 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/backlight.hlinux/delay.hlinux/lcd.hlinux/module.hlinux/spi/spi.hlinux/wait.h
Detected Declarations
struct ams369fg06struct ams369fg06_gammafunction ams369fg06_spi_write_bytefunction ams369fg06_spi_writefunction ams369fg06_panel_send_sequencefunction _ams369fg06_gamma_ctlfunction ams369fg06_gamma_ctlfunction ams369fg06_ldi_initfunction ams369fg06_ldi_enablefunction ams369fg06_ldi_disablefunction ams369fg06_power_is_onfunction ams369fg06_power_onfunction ams369fg06_power_offfunction ams369fg06_powerfunction ams369fg06_get_powerfunction ams369fg06_set_powerfunction ams369fg06_set_brightnessfunction ams369fg06_probefunction ams369fg06_removefunction ams369fg06_suspendfunction ams369fg06_resumefunction ams369fg06_shutdown
Annotated Snippet
struct ams369fg06 {
struct device *dev;
struct spi_device *spi;
unsigned int power;
struct lcd_device *ld;
struct backlight_device *bd;
struct lcd_platform_data *lcd_pd;
};
static const unsigned short seq_display_on[] = {
0x14, 0x03,
ENDDEF, 0x0000
};
static const unsigned short seq_display_off[] = {
0x14, 0x00,
ENDDEF, 0x0000
};
static const unsigned short seq_stand_by_on[] = {
0x1D, 0xA1,
SLEEPMSEC, 200,
ENDDEF, 0x0000
};
static const unsigned short seq_stand_by_off[] = {
0x1D, 0xA0,
SLEEPMSEC, 250,
ENDDEF, 0x0000
};
static const unsigned short seq_setting[] = {
0x31, 0x08,
0x32, 0x14,
0x30, 0x02,
0x27, 0x01,
0x12, 0x08,
0x13, 0x08,
0x15, 0x00,
0x16, 0x00,
0xef, 0xd0,
DATA_ONLY, 0xe8,
0x39, 0x44,
0x40, 0x00,
0x41, 0x3f,
0x42, 0x2a,
0x43, 0x27,
0x44, 0x27,
0x45, 0x1f,
0x46, 0x44,
0x50, 0x00,
0x51, 0x00,
0x52, 0x17,
0x53, 0x24,
0x54, 0x26,
0x55, 0x1f,
0x56, 0x43,
0x60, 0x00,
0x61, 0x3f,
0x62, 0x2a,
0x63, 0x25,
0x64, 0x24,
0x65, 0x1b,
0x66, 0x5c,
0x17, 0x22,
0x18, 0x33,
0x19, 0x03,
0x1a, 0x01,
0x22, 0xa4,
0x23, 0x00,
0x26, 0xa0,
0x1d, 0xa0,
SLEEPMSEC, 300,
0x14, 0x03,
ENDDEF, 0x0000
};
/* gamma value: 2.2 */
static const unsigned int ams369fg06_22_250[] = {
0x00, 0x3f, 0x2a, 0x27, 0x27, 0x1f, 0x44,
0x00, 0x00, 0x17, 0x24, 0x26, 0x1f, 0x43,
0x00, 0x3f, 0x2a, 0x25, 0x24, 0x1b, 0x5c,
};
Annotation
- Immediate include surface: `linux/backlight.h`, `linux/delay.h`, `linux/lcd.h`, `linux/module.h`, `linux/spi/spi.h`, `linux/wait.h`.
- Detected declarations: `struct ams369fg06`, `struct ams369fg06_gamma`, `function ams369fg06_spi_write_byte`, `function ams369fg06_spi_write`, `function ams369fg06_panel_send_sequence`, `function _ams369fg06_gamma_ctl`, `function ams369fg06_gamma_ctl`, `function ams369fg06_ldi_init`, `function ams369fg06_ldi_enable`, `function ams369fg06_ldi_disable`.
- 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.