]> git.proxmox.com Git - mirror_ubuntu-jammy-kernel.git/blame - drivers/media/dvb-frontends/tda665x.h
UBUNTU: Ubuntu-5.15.0-39.42
[mirror_ubuntu-jammy-kernel.git] / drivers / media / dvb-frontends / tda665x.h
CommitLineData
74ba9207 1/* SPDX-License-Identifier: GPL-2.0-or-later */
3e978a82
MA
2/*
3 TDA665x tuner driver
4 Copyright (C) Manu Abraham (abraham.manu@gmail.com)
5
3e978a82
MA
6*/
7
8#ifndef __TDA665x_H
9#define __TDA665x_H
10
11struct tda665x_config {
12 char name[128];
13
14 u8 addr;
15 u32 frequency_min;
16 u32 frequency_max;
17 u32 frequency_offst;
18 u32 ref_multiplier;
19 u32 ref_divider;
20};
21
9b174527 22#if IS_REACHABLE(CONFIG_DVB_TDA665x)
3e978a82
MA
23
24extern struct dvb_frontend *tda665x_attach(struct dvb_frontend *fe,
25 const struct tda665x_config *config,
26 struct i2c_adapter *i2c);
27
28#else
29
30static inline struct dvb_frontend *tda665x_attach(struct dvb_frontend *fe,
f5ae4f6f 31 const struct tda665x_config *config,
3e978a82
MA
32 struct i2c_adapter *i2c)
33{
34 printk(KERN_WARNING "%s: Driver disabled by Kconfig\n", __func__);
35 return NULL;
36}
37
38#endif /* CONFIG_DVB_TDA665x */
39
40#endif /* __TDA665x_H */