aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/media/tuners/e4000_priv.h
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/media/tuners/e4000_priv.h')
-rw-r--r--drivers/media/tuners/e4000_priv.h11
1 files changed, 7 insertions, 4 deletions
diff --git a/drivers/media/tuners/e4000_priv.h b/drivers/media/tuners/e4000_priv.h
index cb0070483e65..d6d5d11bbfe0 100644
--- a/drivers/media/tuners/e4000_priv.h
+++ b/drivers/media/tuners/e4000_priv.h
@@ -22,17 +22,20 @@
22#define E4000_PRIV_H 22#define E4000_PRIV_H
23 23
24#include "e4000.h" 24#include "e4000.h"
25#include <linux/math64.h>
25#include <media/v4l2-ctrls.h> 26#include <media/v4l2-ctrls.h>
26#include <media/v4l2-subdev.h> 27#include <media/v4l2-subdev.h>
27#include <linux/regmap.h> 28#include <linux/regmap.h>
28 29
29struct e4000 { 30struct e4000_dev {
30 struct i2c_client *client; 31 struct i2c_client *client;
31 struct regmap *regmap; 32 struct regmap *regmap;
32 u32 clock; 33 u32 clk;
33 struct dvb_frontend *fe; 34 struct dvb_frontend *fe;
34 struct v4l2_subdev sd; 35 struct v4l2_subdev sd;
35 bool active; 36 bool active;
37 unsigned int f_frequency;
38 unsigned int f_bandwidth;
36 39
37 /* Controls */ 40 /* Controls */
38 struct v4l2_ctrl_handler hdl; 41 struct v4l2_ctrl_handler hdl;
@@ -49,8 +52,8 @@ struct e4000 {
49 52
50struct e4000_pll { 53struct e4000_pll {
51 u32 freq; 54 u32 freq;
52 u8 div; 55 u8 div_out_reg;
53 u8 mul; 56 u8 div_out;
54}; 57};
55 58
56static const struct e4000_pll e4000_pll_lut[] = { 59static const struct e4000_pll e4000_pll_lut[] = {