linux/drivers/media/dvb-frontends/cxd2841er.h

/* SPDX-License-Identifier: GPL-2.0-or-later */
/*
 * cxd2841er.h
 *
 * Sony CXD2441ER digital demodulator driver public definitions
 *
 * Copyright 2012 Sony Corporation
 * Copyright (C) 2014 NetUP Inc.
 * Copyright (C) 2014 Sergey Kozlov <[email protected]>
 * Copyright (C) 2014 Abylay Ospan <[email protected]>
  */

#ifndef CXD2841ER_H
#define CXD2841ER_H

#include <linux/dvb/frontend.h>

#define CXD2841ER_USE_GATECTRL
#define CXD2841ER_AUTO_IFHZ
#define CXD2841ER_TS_SERIAL
#define CXD2841ER_ASCOT
#define CXD2841ER_EARLY_TUNE
#define CXD2841ER_NO_WAIT_LOCK
#define CXD2841ER_NO_AGCNEG
#define CXD2841ER_TSBITS

enum cxd2841er_xtal {};

struct cxd2841er_config {};

#if IS_REACHABLE(CONFIG_DVB_CXD2841ER)
extern struct dvb_frontend *cxd2841er_attach_s(struct cxd2841er_config *cfg,
					       struct i2c_adapter *i2c);

extern struct dvb_frontend *cxd2841er_attach_t_c(struct cxd2841er_config *cfg,
					       struct i2c_adapter *i2c);
#else
static inline struct dvb_frontend *cxd2841er_attach_s(
					struct cxd2841er_config *cfg,
					struct i2c_adapter *i2c)
{
	pr_warn("%s: driver disabled by Kconfig\n", __func__);
	return NULL;
}

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

#endif

#endif