#define pr_fmt(fmt) …
#include <linux/init.h>
#include <linux/kernel.h>
#include <linux/module.h>
#include <linux/string.h>
#include <linux/slab.h>
#include <media/dvb_frontend.h>
#include "nxt6000_priv.h"
#include "nxt6000.h"
struct nxt6000_state { … };
static int debug;
#define dprintk(fmt, arg...) …
static int nxt6000_writereg(struct nxt6000_state* state, u8 reg, u8 data)
{ … }
static u8 nxt6000_readreg(struct nxt6000_state* state, u8 reg)
{ … }
static void nxt6000_reset(struct nxt6000_state* state)
{ … }
static int nxt6000_set_bandwidth(struct nxt6000_state *state, u32 bandwidth)
{ … }
static int nxt6000_set_guard_interval(struct nxt6000_state *state,
enum fe_guard_interval guard_interval)
{ … }
static int nxt6000_set_inversion(struct nxt6000_state *state,
enum fe_spectral_inversion inversion)
{ … }
static int
nxt6000_set_transmission_mode(struct nxt6000_state *state,
enum fe_transmit_mode transmission_mode)
{ … }
static void nxt6000_setup(struct dvb_frontend* fe)
{ … }
static void nxt6000_dump_status(struct nxt6000_state *state)
{ … }
static int nxt6000_read_status(struct dvb_frontend *fe, enum fe_status *status)
{ … }
static int nxt6000_init(struct dvb_frontend* fe)
{ … }
static int nxt6000_set_frontend(struct dvb_frontend *fe)
{ … }
static void nxt6000_release(struct dvb_frontend* fe)
{ … }
static int nxt6000_read_snr(struct dvb_frontend* fe, u16* snr)
{ … }
static int nxt6000_read_ber(struct dvb_frontend* fe, u32* ber)
{ … }
static int nxt6000_read_signal_strength(struct dvb_frontend* fe, u16* signal_strength)
{ … }
static int nxt6000_fe_get_tune_settings(struct dvb_frontend* fe, struct dvb_frontend_tune_settings *tune)
{ … }
static int nxt6000_i2c_gate_ctrl(struct dvb_frontend* fe, int enable)
{ … }
static const struct dvb_frontend_ops nxt6000_ops;
struct dvb_frontend* nxt6000_attach(const struct nxt6000_config* config,
struct i2c_adapter* i2c)
{ … }
static const struct dvb_frontend_ops nxt6000_ops = …;
module_param(debug, int, 0644);
MODULE_PARM_DESC(…) …;
MODULE_DESCRIPTION(…) …;
MODULE_AUTHOR(…) …;
MODULE_LICENSE(…) …;
EXPORT_SYMBOL_GPL(…);