#include <linux/kernel.h>
#include <linux/module.h>
#include <linux/init.h>
#include <linux/delay.h>
#include <linux/string.h>
#include <linux/slab.h>
#include <media/dvb_frontend.h>
#include "mt352_priv.h"
#include "mt352.h"
struct mt352_state { … };
static int debug;
#define dprintk(args...) …
static int mt352_single_write(struct dvb_frontend *fe, u8 reg, u8 val)
{ … }
static int _mt352_write(struct dvb_frontend* fe, const u8 ibuf[], int ilen)
{ … }
static int mt352_read_register(struct mt352_state* state, u8 reg)
{ … }
static int mt352_sleep(struct dvb_frontend* fe)
{ … }
static void mt352_calc_nominal_rate(struct mt352_state* state,
u32 bandwidth,
unsigned char *buf)
{ … }
static void mt352_calc_input_freq(struct mt352_state* state,
unsigned char *buf)
{ … }
static int mt352_set_parameters(struct dvb_frontend *fe)
{ … }
static int mt352_get_parameters(struct dvb_frontend* fe,
struct dtv_frontend_properties *op)
{ … }
static int mt352_read_status(struct dvb_frontend *fe, enum fe_status *status)
{ … }
static int mt352_read_ber(struct dvb_frontend* fe, u32* ber)
{ … }
static int mt352_read_signal_strength(struct dvb_frontend* fe, u16* strength)
{ … }
static int mt352_read_snr(struct dvb_frontend* fe, u16* snr)
{ … }
static int mt352_read_ucblocks(struct dvb_frontend* fe, u32* ucblocks)
{ … }
static int mt352_get_tune_settings(struct dvb_frontend* fe, struct dvb_frontend_tune_settings* fe_tune_settings)
{ … }
static int mt352_init(struct dvb_frontend* fe)
{ … }
static void mt352_release(struct dvb_frontend* fe)
{ … }
static const struct dvb_frontend_ops mt352_ops;
struct dvb_frontend* mt352_attach(const struct mt352_config* config,
struct i2c_adapter* i2c)
{ … }
static const struct dvb_frontend_ops mt352_ops = …;
module_param(debug, int, 0644);
MODULE_PARM_DESC(…) …;
MODULE_DESCRIPTION(…) …;
MODULE_AUTHOR(…) …;
MODULE_LICENSE(…) …;
EXPORT_SYMBOL_GPL(…);