#ifndef __AU8522_H__
#define __AU8522_H__
#include <linux/dvb/frontend.h>
enum au8522_if_freq { … };
struct au8522_led_config { … };
struct au8522_config { … };
#if IS_REACHABLE(CONFIG_DVB_AU8522_DTV)
extern struct dvb_frontend *au8522_attach(const struct au8522_config *config,
struct i2c_adapter *i2c);
#else
static inline
struct dvb_frontend *au8522_attach(const struct au8522_config *config,
struct i2c_adapter *i2c)
{
printk(KERN_WARNING "%s: driver disabled by Kconfig\n", __func__);
return NULL;
}
#endif
enum au8522_video_input { … };
enum au8522_audio_input { … };
#endif