drivers/media/dvb-frontends/stv0910.h

Source file repositories/reference/linux-study-clean/drivers/media/dvb-frontends/stv0910.h

File Facts

System
Linux kernel
Corpus path
drivers/media/dvb-frontends/stv0910.h
Extension
.h
Size
886 bytes
Lines
43
Domain
Driver Families
Bucket
drivers/media
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

struct stv0910_cfg {
	u32 clk;
	u8  adr;
	u8  parallel;
	u8  rptlvl;
	u8  single;
	u8  tsspeed;
};

#if IS_REACHABLE(CONFIG_DVB_STV0910)

struct dvb_frontend *stv0910_attach(struct i2c_adapter *i2c,
				    struct stv0910_cfg *cfg, int nr);

#else

static inline struct dvb_frontend *stv0910_attach(struct i2c_adapter *i2c,
						  struct stv0910_cfg *cfg,
						  int nr)
{
	pr_warn("%s: driver disabled by Kconfig\n", __func__);
	return NULL;
}

#endif /* CONFIG_DVB_STV0910 */

#endif /* _STV0910_H_ */

Annotation

Implementation Notes