]> git.proxmox.com Git - mirror_ubuntu-artful-kernel.git/blame - drivers/media/dvb/frontends/dvb-pll.h
V4L/DVB (7425): dvb-pll: remove dead code
[mirror_ubuntu-artful-kernel.git] / drivers / media / dvb / frontends / dvb-pll.h
CommitLineData
1da177e4 1/*
776338e1 2 * descriptions + helper functions for simple dvb plls.
1da177e4
LT
3 */
4
5e9e7226
JS
5#ifndef __DVB_PLL_H__
6#define __DVB_PLL_H__
7
272bc4db
AQ
8#include <linux/i2c.h>
9#include "dvb_frontend.h"
10
47a9991e
MK
11#define DVB_PLL_UNDEFINED 0
12#define DVB_PLL_THOMSON_DTT7579 1
13#define DVB_PLL_THOMSON_DTT759X 2
47a9991e 14#define DVB_PLL_LG_Z201 4
47a9991e
MK
15#define DVB_PLL_UNKNOWN_1 7
16#define DVB_PLL_TUA6010XS 8
17#define DVB_PLL_ENV57H1XD5 9
18#define DVB_PLL_TUA6034 10
47a9991e 19#define DVB_PLL_TDA665X 12
47a9991e 20#define DVB_PLL_TDED4 14
47a9991e
MK
21#define DVB_PLL_TDHU2 16
22#define DVB_PLL_SAMSUNG_TBMV 17
23#define DVB_PLL_PHILIPS_SD1878_TDA8261 18
47a9991e 24#define DVB_PLL_OPERA1 21
780dfef3 25
272bc4db
AQ
26/**
27 * Attach a dvb-pll to the supplied frontend structure.
28 *
29 * @param fe Frontend to attach to.
30 * @param pll_addr i2c address of the PLL (if used).
31 * @param i2c i2c adapter to use (set to NULL if not used).
47a9991e 32 * @param pll_desc_id dvb_pll_desc to use.
2bfe031d 33 * @return Frontend pointer on success, NULL on failure
272bc4db 34 */
9ab1ba38 35#if defined(CONFIG_DVB_PLL) || (defined(CONFIG_DVB_PLL_MODULE) && defined(MODULE))
47ae9ae8
MK
36extern struct dvb_frontend *dvb_pll_attach(struct dvb_frontend *fe,
37 int pll_addr,
38 struct i2c_adapter *i2c,
47a9991e 39 unsigned int pll_desc_id);
9ab1ba38
TP
40#else
41static inline struct dvb_frontend *dvb_pll_attach(struct dvb_frontend *fe,
42 int pll_addr,
43 struct i2c_adapter *i2c,
47a9991e 44 unsigned int pll_desc_id)
9ab1ba38
TP
45{
46 printk(KERN_WARNING "%s: driver disabled by Kconfig\n", __FUNCTION__);
47 return NULL;
48}
49#endif
272bc4db 50
5e9e7226 51#endif