sound/soc/codecs/rt5575-spi.h

Source file repositories/reference/linux-study-clean/sound/soc/codecs/rt5575-spi.h

File Facts

System
Linux kernel
Corpus path
sound/soc/codecs/rt5575-spi.h
Extension
.h
Size
570 bytes
Lines
28
Domain
Driver Families
Bucket
sound/soc
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.

Dependency Surface

Detected Declarations

Annotated Snippet

#ifndef __RT5575_SPI_H__
#define __RT5575_SPI_H__

#if IS_ENABLED(CONFIG_SND_SOC_RT5575_SPI)
struct spi_device *rt5575_spi_get_device(struct device *dev);
int rt5575_spi_fw_load(struct spi_device *spi);
#else
static inline struct spi_device *rt5575_spi_get_device(struct device *dev)
{
	return NULL;
}

static inline int rt5575_spi_fw_load(struct spi_device *spi)
{
	return -EINVAL;
}
#endif

#endif /* __RT5575_SPI_H__ */

Annotation

Implementation Notes