18c2ecf20Sopenharmony_ci/* SPDX-License-Identifier: GPL-2.0-or-later */
28c2ecf20Sopenharmony_ci/*
38c2ecf20Sopenharmony_ci * Fitipower FC0013 tuner driver
48c2ecf20Sopenharmony_ci *
58c2ecf20Sopenharmony_ci * Copyright (C) 2012 Hans-Frieder Vogt <hfvogt@gmx.net>
68c2ecf20Sopenharmony_ci */
78c2ecf20Sopenharmony_ci
88c2ecf20Sopenharmony_ci#ifndef _FC0013_H_
98c2ecf20Sopenharmony_ci#define _FC0013_H_
108c2ecf20Sopenharmony_ci
118c2ecf20Sopenharmony_ci#include <media/dvb_frontend.h>
128c2ecf20Sopenharmony_ci#include "fc001x-common.h"
138c2ecf20Sopenharmony_ci
148c2ecf20Sopenharmony_ci#if IS_REACHABLE(CONFIG_MEDIA_TUNER_FC0013)
158c2ecf20Sopenharmony_ciextern struct dvb_frontend *fc0013_attach(struct dvb_frontend *fe,
168c2ecf20Sopenharmony_ci					struct i2c_adapter *i2c,
178c2ecf20Sopenharmony_ci					u8 i2c_address, int dual_master,
188c2ecf20Sopenharmony_ci					enum fc001x_xtal_freq xtal_freq);
198c2ecf20Sopenharmony_ciextern int fc0013_rc_cal_add(struct dvb_frontend *fe, int rc_val);
208c2ecf20Sopenharmony_ciextern int fc0013_rc_cal_reset(struct dvb_frontend *fe);
218c2ecf20Sopenharmony_ci#else
228c2ecf20Sopenharmony_cistatic inline struct dvb_frontend *fc0013_attach(struct dvb_frontend *fe,
238c2ecf20Sopenharmony_ci					struct i2c_adapter *i2c,
248c2ecf20Sopenharmony_ci					u8 i2c_address, int dual_master,
258c2ecf20Sopenharmony_ci					enum fc001x_xtal_freq xtal_freq)
268c2ecf20Sopenharmony_ci{
278c2ecf20Sopenharmony_ci	printk(KERN_WARNING "%s: driver disabled by Kconfig\n", __func__);
288c2ecf20Sopenharmony_ci	return NULL;
298c2ecf20Sopenharmony_ci}
308c2ecf20Sopenharmony_ci
318c2ecf20Sopenharmony_cistatic inline int fc0013_rc_cal_add(struct dvb_frontend *fe, int rc_val)
328c2ecf20Sopenharmony_ci{
338c2ecf20Sopenharmony_ci	return 0;
348c2ecf20Sopenharmony_ci}
358c2ecf20Sopenharmony_ci
368c2ecf20Sopenharmony_cistatic inline int fc0013_rc_cal_reset(struct dvb_frontend *fe)
378c2ecf20Sopenharmony_ci{
388c2ecf20Sopenharmony_ci	return 0;
398c2ecf20Sopenharmony_ci}
408c2ecf20Sopenharmony_ci#endif
418c2ecf20Sopenharmony_ci
428c2ecf20Sopenharmony_ci#endif
43