aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/media/dvb
diff options
context:
space:
mode:
authorSteve Kerrison <steve@stevekerrison.com>2011-05-02 17:19:13 -0400
committerMauro Carvalho Chehab <mchehab@redhat.com>2011-05-20 08:30:13 -0400
commit9ac51c5e53d6b16c9a3fa541117cf96dedd6b3dd (patch)
tree311d5723f2ca26e2df4f99ed940083a44a08f086 /drivers/media/dvb
parentd6a5f921fb8cbd418b298e5bbe83e5c8c8e1da16 (diff)
[media] cxd2820r: make C, T, T2 and core components as linked objects
Signed-off-by: Steve Kerrison <steve@stevekerrison.com> Signed-off-by: Antti Palosaari <crope@iki.fi> Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Diffstat (limited to 'drivers/media/dvb')
-rw-r--r--drivers/media/dvb/frontends/Makefile1
-rw-r--r--drivers/media/dvb/frontends/cxd2820r_c.c22
-rw-r--r--drivers/media/dvb/frontends/cxd2820r_core.c (renamed from drivers/media/dvb/frontends/cxd2820r.c)19
-rw-r--r--drivers/media/dvb/frontends/cxd2820r_priv.h102
-rw-r--r--drivers/media/dvb/frontends/cxd2820r_t.c22
-rw-r--r--drivers/media/dvb/frontends/cxd2820r_t2.c20
6 files changed, 144 insertions, 42 deletions
diff --git a/drivers/media/dvb/frontends/Makefile b/drivers/media/dvb/frontends/Makefile
index adec1a3f6291..2f3a6f736d64 100644
--- a/drivers/media/dvb/frontends/Makefile
+++ b/drivers/media/dvb/frontends/Makefile
@@ -9,6 +9,7 @@ stb0899-objs = stb0899_drv.o stb0899_algo.o
9stv0900-objs = stv0900_core.o stv0900_sw.o 9stv0900-objs = stv0900_core.o stv0900_sw.o
10au8522-objs = au8522_dig.o au8522_decoder.o 10au8522-objs = au8522_dig.o au8522_decoder.o
11drxd-objs = drxd_firm.o drxd_hard.o 11drxd-objs = drxd_firm.o drxd_hard.o
12cxd2820r-objs = cxd2820r_core.o cxd2820r_c.o cxd2820r_t.o cxd2820r_t2.o
12 13
13obj-$(CONFIG_DVB_PLL) += dvb-pll.o 14obj-$(CONFIG_DVB_PLL) += dvb-pll.o
14obj-$(CONFIG_DVB_STV0299) += stv0299.o 15obj-$(CONFIG_DVB_STV0299) += stv0299.o
diff --git a/drivers/media/dvb/frontends/cxd2820r_c.c b/drivers/media/dvb/frontends/cxd2820r_c.c
index a94bff944722..3c07d400731d 100644
--- a/drivers/media/dvb/frontends/cxd2820r_c.c
+++ b/drivers/media/dvb/frontends/cxd2820r_c.c
@@ -19,7 +19,9 @@
19 */ 19 */
20 20
21 21
22static int cxd2820r_set_frontend_c(struct dvb_frontend *fe, 22#include "cxd2820r_priv.h"
23
24int cxd2820r_set_frontend_c(struct dvb_frontend *fe,
23 struct dvb_frontend_parameters *params) 25 struct dvb_frontend_parameters *params)
24{ 26{
25 struct cxd2820r_priv *priv = fe->demodulator_priv; 27 struct cxd2820r_priv *priv = fe->demodulator_priv;
@@ -92,7 +94,7 @@ error:
92 return ret; 94 return ret;
93} 95}
94 96
95static int cxd2820r_get_frontend_c(struct dvb_frontend *fe, 97int cxd2820r_get_frontend_c(struct dvb_frontend *fe,
96 struct dvb_frontend_parameters *p) 98 struct dvb_frontend_parameters *p)
97{ 99{
98 struct cxd2820r_priv *priv = fe->demodulator_priv; 100 struct cxd2820r_priv *priv = fe->demodulator_priv;
@@ -143,7 +145,7 @@ error:
143 return ret; 145 return ret;
144} 146}
145 147
146static int cxd2820r_read_ber_c(struct dvb_frontend *fe, u32 *ber) 148int cxd2820r_read_ber_c(struct dvb_frontend *fe, u32 *ber)
147{ 149{
148 struct cxd2820r_priv *priv = fe->demodulator_priv; 150 struct cxd2820r_priv *priv = fe->demodulator_priv;
149 int ret; 151 int ret;
@@ -177,7 +179,7 @@ error:
177 return ret; 179 return ret;
178} 180}
179 181
180static int cxd2820r_read_signal_strength_c(struct dvb_frontend *fe, 182int cxd2820r_read_signal_strength_c(struct dvb_frontend *fe,
181 u16 *strength) 183 u16 *strength)
182{ 184{
183 struct cxd2820r_priv *priv = fe->demodulator_priv; 185 struct cxd2820r_priv *priv = fe->demodulator_priv;
@@ -207,7 +209,7 @@ error:
207 return ret; 209 return ret;
208} 210}
209 211
210static int cxd2820r_read_snr_c(struct dvb_frontend *fe, u16 *snr) 212int cxd2820r_read_snr_c(struct dvb_frontend *fe, u16 *snr)
211{ 213{
212 struct cxd2820r_priv *priv = fe->demodulator_priv; 214 struct cxd2820r_priv *priv = fe->demodulator_priv;
213 int ret; 215 int ret;
@@ -244,14 +246,14 @@ error:
244 return ret; 246 return ret;
245} 247}
246 248
247static int cxd2820r_read_ucblocks_c(struct dvb_frontend *fe, u32 *ucblocks) 249int cxd2820r_read_ucblocks_c(struct dvb_frontend *fe, u32 *ucblocks)
248{ 250{
249 *ucblocks = 0; 251 *ucblocks = 0;
250 /* no way to read ? */ 252 /* no way to read ? */
251 return 0; 253 return 0;
252} 254}
253 255
254static int cxd2820r_read_status_c(struct dvb_frontend *fe, fe_status_t *status) 256int cxd2820r_read_status_c(struct dvb_frontend *fe, fe_status_t *status)
255{ 257{
256 struct cxd2820r_priv *priv = fe->demodulator_priv; 258 struct cxd2820r_priv *priv = fe->demodulator_priv;
257 int ret; 259 int ret;
@@ -280,7 +282,7 @@ error:
280 return ret; 282 return ret;
281} 283}
282 284
283static int cxd2820r_init_c(struct dvb_frontend *fe) 285int cxd2820r_init_c(struct dvb_frontend *fe)
284{ 286{
285 struct cxd2820r_priv *priv = fe->demodulator_priv; 287 struct cxd2820r_priv *priv = fe->demodulator_priv;
286 int ret; 288 int ret;
@@ -295,7 +297,7 @@ error:
295 return ret; 297 return ret;
296} 298}
297 299
298static int cxd2820r_sleep_c(struct dvb_frontend *fe) 300int cxd2820r_sleep_c(struct dvb_frontend *fe)
299{ 301{
300 struct cxd2820r_priv *priv = fe->demodulator_priv; 302 struct cxd2820r_priv *priv = fe->demodulator_priv;
301 int ret, i; 303 int ret, i;
@@ -324,7 +326,7 @@ error:
324 return ret; 326 return ret;
325} 327}
326 328
327static int cxd2820r_get_tune_settings_c(struct dvb_frontend *fe, 329int cxd2820r_get_tune_settings_c(struct dvb_frontend *fe,
328 struct dvb_frontend_tune_settings *s) 330 struct dvb_frontend_tune_settings *s)
329{ 331{
330 s->min_delay_ms = 500; 332 s->min_delay_ms = 500;
diff --git a/drivers/media/dvb/frontends/cxd2820r.c b/drivers/media/dvb/frontends/cxd2820r_core.c
index b58f92c75116..59d302f7a8f1 100644
--- a/drivers/media/dvb/frontends/cxd2820r.c
+++ b/drivers/media/dvb/frontends/cxd2820r_core.c
@@ -93,7 +93,7 @@ static int cxd2820r_rd_regs_i2c(struct cxd2820r_priv *priv, u8 i2c, u8 reg,
93} 93}
94 94
95/* write multiple registers */ 95/* write multiple registers */
96static int cxd2820r_wr_regs(struct cxd2820r_priv *priv, u32 reginfo, u8 *val, 96int cxd2820r_wr_regs(struct cxd2820r_priv *priv, u32 reginfo, u8 *val,
97 int len) 97 int len)
98{ 98{
99 int ret; 99 int ret;
@@ -119,7 +119,7 @@ static int cxd2820r_wr_regs(struct cxd2820r_priv *priv, u32 reginfo, u8 *val,
119} 119}
120 120
121/* read multiple registers */ 121/* read multiple registers */
122static int cxd2820r_rd_regs(struct cxd2820r_priv *priv, u32 reginfo, u8 *val, 122int cxd2820r_rd_regs(struct cxd2820r_priv *priv, u32 reginfo, u8 *val,
123 int len) 123 int len)
124{ 124{
125 int ret; 125 int ret;
@@ -145,19 +145,19 @@ static int cxd2820r_rd_regs(struct cxd2820r_priv *priv, u32 reginfo, u8 *val,
145} 145}
146 146
147/* write single register */ 147/* write single register */
148static int cxd2820r_wr_reg(struct cxd2820r_priv *priv, u32 reg, u8 val) 148int cxd2820r_wr_reg(struct cxd2820r_priv *priv, u32 reg, u8 val)
149{ 149{
150 return cxd2820r_wr_regs(priv, reg, &val, 1); 150 return cxd2820r_wr_regs(priv, reg, &val, 1);
151} 151}
152 152
153/* read single register */ 153/* read single register */
154static int cxd2820r_rd_reg(struct cxd2820r_priv *priv, u32 reg, u8 *val) 154int cxd2820r_rd_reg(struct cxd2820r_priv *priv, u32 reg, u8 *val)
155{ 155{
156 return cxd2820r_rd_regs(priv, reg, val, 1); 156 return cxd2820r_rd_regs(priv, reg, val, 1);
157} 157}
158 158
159/* write single register with mask */ 159/* write single register with mask */
160static int cxd2820r_wr_reg_mask(struct cxd2820r_priv *priv, u32 reg, u8 val, 160int cxd2820r_wr_reg_mask(struct cxd2820r_priv *priv, u32 reg, u8 val,
161 u8 mask) 161 u8 mask)
162{ 162{
163 int ret; 163 int ret;
@@ -177,7 +177,7 @@ static int cxd2820r_wr_reg_mask(struct cxd2820r_priv *priv, u32 reg, u8 val,
177 return cxd2820r_wr_reg(priv, reg, val); 177 return cxd2820r_wr_reg(priv, reg, val);
178} 178}
179 179
180static int cxd2820r_gpio(struct dvb_frontend *fe) 180int cxd2820r_gpio(struct dvb_frontend *fe)
181{ 181{
182 struct cxd2820r_priv *priv = fe->demodulator_priv; 182 struct cxd2820r_priv *priv = fe->demodulator_priv;
183 int ret, i; 183 int ret, i;
@@ -285,16 +285,11 @@ static void cxd2820r_unlock(struct cxd2820r_priv *priv, int active_fe)
285} 285}
286 286
287/* 64 bit div with round closest, like DIV_ROUND_CLOSEST but 64 bit */ 287/* 64 bit div with round closest, like DIV_ROUND_CLOSEST but 64 bit */
288static u32 cxd2820r_div_u64_round_closest(u64 dividend, u32 divisor) 288u32 cxd2820r_div_u64_round_closest(u64 dividend, u32 divisor)
289{ 289{
290 return div_u64(dividend + (divisor / 2), divisor); 290 return div_u64(dividend + (divisor / 2), divisor);
291} 291}
292 292
293/* TODO: ... */
294#include "cxd2820r_t.c"
295#include "cxd2820r_c.c"
296#include "cxd2820r_t2.c"
297
298static int cxd2820r_set_frontend(struct dvb_frontend *fe, 293static int cxd2820r_set_frontend(struct dvb_frontend *fe,
299 struct dvb_frontend_parameters *p) 294 struct dvb_frontend_parameters *p)
300{ 295{
diff --git a/drivers/media/dvb/frontends/cxd2820r_priv.h b/drivers/media/dvb/frontends/cxd2820r_priv.h
index 4d2d79969d91..2437d51bdae3 100644
--- a/drivers/media/dvb/frontends/cxd2820r_priv.h
+++ b/drivers/media/dvb/frontends/cxd2820r_priv.h
@@ -22,6 +22,7 @@
22#ifndef CXD2820R_PRIV_H 22#ifndef CXD2820R_PRIV_H
23#define CXD2820R_PRIV_H 23#define CXD2820R_PRIV_H
24 24
25#include <linux/dvb/version.h>
25#include "dvb_frontend.h" 26#include "dvb_frontend.h"
26#include "dvb_math.h" 27#include "dvb_math.h"
27#include "cxd2820r.h" 28#include "cxd2820r.h"
@@ -70,8 +71,107 @@ struct cxd2820r_priv {
70 71
71 u8 bank[2]; 72 u8 bank[2];
72 u8 gpio[3]; 73 u8 gpio[3];
73 74
74 fe_delivery_system_t delivery_system; 75 fe_delivery_system_t delivery_system;
75}; 76};
76 77
78/* cxd2820r_core.c */
79
80extern int cxd2820r_debug;
81
82int cxd2820r_gpio(struct dvb_frontend *fe);
83
84int cxd2820r_wr_reg_mask(struct cxd2820r_priv *priv, u32 reg, u8 val,
85 u8 mask);
86
87int cxd2820r_wr_regs(struct cxd2820r_priv *priv, u32 reginfo, u8 *val,
88 int len);
89
90u32 cxd2820r_div_u64_round_closest(u64 dividend, u32 divisor);
91
92int cxd2820r_wr_regs(struct cxd2820r_priv *priv, u32 reginfo, u8 *val,
93 int len);
94
95int cxd2820r_rd_regs(struct cxd2820r_priv *priv, u32 reginfo, u8 *val,
96 int len);
97
98int cxd2820r_wr_reg(struct cxd2820r_priv *priv, u32 reg, u8 val);
99
100int cxd2820r_rd_reg(struct cxd2820r_priv *priv, u32 reg, u8 *val);
101
102/* cxd2820r_c.c */
103
104int cxd2820r_get_frontend_c(struct dvb_frontend *fe,
105 struct dvb_frontend_parameters *p);
106
107int cxd2820r_set_frontend_c(struct dvb_frontend *fe,
108 struct dvb_frontend_parameters *params);
109
110int cxd2820r_read_status_c(struct dvb_frontend *fe, fe_status_t *status);
111
112int cxd2820r_read_ber_c(struct dvb_frontend *fe, u32 *ber);
113
114int cxd2820r_read_signal_strength_c(struct dvb_frontend *fe, u16 *strength);
115
116int cxd2820r_read_snr_c(struct dvb_frontend *fe, u16 *snr);
117
118int cxd2820r_read_ucblocks_c(struct dvb_frontend *fe, u32 *ucblocks);
119
120int cxd2820r_init_c(struct dvb_frontend *fe);
121
122int cxd2820r_sleep_c(struct dvb_frontend *fe);
123
124int cxd2820r_get_tune_settings_c(struct dvb_frontend *fe,
125 struct dvb_frontend_tune_settings *s);
126
127/* cxd2820r_t.c */
128
129int cxd2820r_get_frontend_t(struct dvb_frontend *fe,
130 struct dvb_frontend_parameters *p);
131
132int cxd2820r_set_frontend_t(struct dvb_frontend *fe,
133 struct dvb_frontend_parameters *params);
134
135int cxd2820r_read_status_t(struct dvb_frontend *fe, fe_status_t *status);
136
137int cxd2820r_read_ber_t(struct dvb_frontend *fe, u32 *ber);
138
139int cxd2820r_read_signal_strength_t(struct dvb_frontend *fe, u16 *strength);
140
141int cxd2820r_read_snr_t(struct dvb_frontend *fe, u16 *snr);
142
143int cxd2820r_read_ucblocks_t(struct dvb_frontend *fe, u32 *ucblocks);
144
145int cxd2820r_init_t(struct dvb_frontend *fe);
146
147int cxd2820r_sleep_t(struct dvb_frontend *fe);
148
149int cxd2820r_get_tune_settings_t(struct dvb_frontend *fe,
150 struct dvb_frontend_tune_settings *s);
151
152/* cxd2820r_t2.c */
153
154int cxd2820r_get_frontend_t2(struct dvb_frontend *fe,
155 struct dvb_frontend_parameters *p);
156
157int cxd2820r_set_frontend_t2(struct dvb_frontend *fe,
158 struct dvb_frontend_parameters *params);
159
160int cxd2820r_read_status_t2(struct dvb_frontend *fe, fe_status_t *status);
161
162int cxd2820r_read_ber_t2(struct dvb_frontend *fe, u32 *ber);
163
164int cxd2820r_read_signal_strength_t2(struct dvb_frontend *fe, u16 *strength);
165
166int cxd2820r_read_snr_t2(struct dvb_frontend *fe, u16 *snr);
167
168int cxd2820r_read_ucblocks_t2(struct dvb_frontend *fe, u32 *ucblocks);
169
170int cxd2820r_init_t2(struct dvb_frontend *fe);
171
172int cxd2820r_sleep_t2(struct dvb_frontend *fe);
173
174int cxd2820r_get_tune_settings_t2(struct dvb_frontend *fe,
175 struct dvb_frontend_tune_settings *s);
176
77#endif /* CXD2820R_PRIV_H */ 177#endif /* CXD2820R_PRIV_H */
diff --git a/drivers/media/dvb/frontends/cxd2820r_t.c b/drivers/media/dvb/frontends/cxd2820r_t.c
index 6732a9843f13..6582564c930c 100644
--- a/drivers/media/dvb/frontends/cxd2820r_t.c
+++ b/drivers/media/dvb/frontends/cxd2820r_t.c
@@ -19,7 +19,9 @@
19 */ 19 */
20 20
21 21
22static int cxd2820r_set_frontend_t(struct dvb_frontend *fe, 22#include "cxd2820r_priv.h"
23
24int cxd2820r_set_frontend_t(struct dvb_frontend *fe,
23 struct dvb_frontend_parameters *p) 25 struct dvb_frontend_parameters *p)
24{ 26{
25 struct cxd2820r_priv *priv = fe->demodulator_priv; 27 struct cxd2820r_priv *priv = fe->demodulator_priv;
@@ -133,7 +135,7 @@ error:
133 return ret; 135 return ret;
134} 136}
135 137
136static int cxd2820r_get_frontend_t(struct dvb_frontend *fe, 138int cxd2820r_get_frontend_t(struct dvb_frontend *fe,
137 struct dvb_frontend_parameters *p) 139 struct dvb_frontend_parameters *p)
138{ 140{
139 struct cxd2820r_priv *priv = fe->demodulator_priv; 141 struct cxd2820r_priv *priv = fe->demodulator_priv;
@@ -251,7 +253,7 @@ error:
251 return ret; 253 return ret;
252} 254}
253 255
254static int cxd2820r_read_ber_t(struct dvb_frontend *fe, u32 *ber) 256int cxd2820r_read_ber_t(struct dvb_frontend *fe, u32 *ber)
255{ 257{
256 struct cxd2820r_priv *priv = fe->demodulator_priv; 258 struct cxd2820r_priv *priv = fe->demodulator_priv;
257 int ret; 259 int ret;
@@ -285,7 +287,7 @@ error:
285 return ret; 287 return ret;
286} 288}
287 289
288static int cxd2820r_read_signal_strength_t(struct dvb_frontend *fe, 290int cxd2820r_read_signal_strength_t(struct dvb_frontend *fe,
289 u16 *strength) 291 u16 *strength)
290{ 292{
291 struct cxd2820r_priv *priv = fe->demodulator_priv; 293 struct cxd2820r_priv *priv = fe->demodulator_priv;
@@ -309,7 +311,7 @@ error:
309 return ret; 311 return ret;
310} 312}
311 313
312static int cxd2820r_read_snr_t(struct dvb_frontend *fe, u16 *snr) 314int cxd2820r_read_snr_t(struct dvb_frontend *fe, u16 *snr)
313{ 315{
314 struct cxd2820r_priv *priv = fe->demodulator_priv; 316 struct cxd2820r_priv *priv = fe->demodulator_priv;
315 int ret; 317 int ret;
@@ -337,14 +339,14 @@ error:
337 return ret; 339 return ret;
338} 340}
339 341
340static int cxd2820r_read_ucblocks_t(struct dvb_frontend *fe, u32 *ucblocks) 342int cxd2820r_read_ucblocks_t(struct dvb_frontend *fe, u32 *ucblocks)
341{ 343{
342 *ucblocks = 0; 344 *ucblocks = 0;
343 /* no way to read ? */ 345 /* no way to read ? */
344 return 0; 346 return 0;
345} 347}
346 348
347static int cxd2820r_read_status_t(struct dvb_frontend *fe, fe_status_t *status) 349int cxd2820r_read_status_t(struct dvb_frontend *fe, fe_status_t *status)
348{ 350{
349 struct cxd2820r_priv *priv = fe->demodulator_priv; 351 struct cxd2820r_priv *priv = fe->demodulator_priv;
350 int ret; 352 int ret;
@@ -391,7 +393,7 @@ error:
391 return ret; 393 return ret;
392} 394}
393 395
394static int cxd2820r_init_t(struct dvb_frontend *fe) 396int cxd2820r_init_t(struct dvb_frontend *fe)
395{ 397{
396 struct cxd2820r_priv *priv = fe->demodulator_priv; 398 struct cxd2820r_priv *priv = fe->demodulator_priv;
397 int ret; 399 int ret;
@@ -406,7 +408,7 @@ error:
406 return ret; 408 return ret;
407} 409}
408 410
409static int cxd2820r_sleep_t(struct dvb_frontend *fe) 411int cxd2820r_sleep_t(struct dvb_frontend *fe)
410{ 412{
411 struct cxd2820r_priv *priv = fe->demodulator_priv; 413 struct cxd2820r_priv *priv = fe->demodulator_priv;
412 int ret, i; 414 int ret, i;
@@ -435,7 +437,7 @@ error:
435 return ret; 437 return ret;
436} 438}
437 439
438static int cxd2820r_get_tune_settings_t(struct dvb_frontend *fe, 440int cxd2820r_get_tune_settings_t(struct dvb_frontend *fe,
439 struct dvb_frontend_tune_settings *s) 441 struct dvb_frontend_tune_settings *s)
440{ 442{
441 s->min_delay_ms = 500; 443 s->min_delay_ms = 500;
diff --git a/drivers/media/dvb/frontends/cxd2820r_t2.c b/drivers/media/dvb/frontends/cxd2820r_t2.c
index 6ec94ea77f15..c47b35c8acf1 100644
--- a/drivers/media/dvb/frontends/cxd2820r_t2.c
+++ b/drivers/media/dvb/frontends/cxd2820r_t2.c
@@ -19,7 +19,9 @@
19 */ 19 */
20 20
21 21
22static int cxd2820r_set_frontend_t2(struct dvb_frontend *fe, 22#include "cxd2820r_priv.h"
23
24int cxd2820r_set_frontend_t2(struct dvb_frontend *fe,
23 struct dvb_frontend_parameters *params) 25 struct dvb_frontend_parameters *params)
24{ 26{
25 struct cxd2820r_priv *priv = fe->demodulator_priv; 27 struct cxd2820r_priv *priv = fe->demodulator_priv;
@@ -148,7 +150,7 @@ error:
148 150
149} 151}
150 152
151static int cxd2820r_get_frontend_t2(struct dvb_frontend *fe, 153int cxd2820r_get_frontend_t2(struct dvb_frontend *fe,
152 struct dvb_frontend_parameters *p) 154 struct dvb_frontend_parameters *p)
153{ 155{
154 struct cxd2820r_priv *priv = fe->demodulator_priv; 156 struct cxd2820r_priv *priv = fe->demodulator_priv;
@@ -264,7 +266,7 @@ error:
264 return ret; 266 return ret;
265} 267}
266 268
267static int cxd2820r_read_status_t2(struct dvb_frontend *fe, fe_status_t *status) 269int cxd2820r_read_status_t2(struct dvb_frontend *fe, fe_status_t *status)
268{ 270{
269 struct cxd2820r_priv *priv = fe->demodulator_priv; 271 struct cxd2820r_priv *priv = fe->demodulator_priv;
270 int ret; 272 int ret;
@@ -293,7 +295,7 @@ error:
293 return ret; 295 return ret;
294} 296}
295 297
296static int cxd2820r_read_ber_t2(struct dvb_frontend *fe, u32 *ber) 298int cxd2820r_read_ber_t2(struct dvb_frontend *fe, u32 *ber)
297{ 299{
298 struct cxd2820r_priv *priv = fe->demodulator_priv; 300 struct cxd2820r_priv *priv = fe->demodulator_priv;
299 int ret; 301 int ret;
@@ -320,7 +322,7 @@ error:
320 return ret; 322 return ret;
321} 323}
322 324
323static int cxd2820r_read_signal_strength_t2(struct dvb_frontend *fe, 325int cxd2820r_read_signal_strength_t2(struct dvb_frontend *fe,
324 u16 *strength) 326 u16 *strength)
325{ 327{
326 struct cxd2820r_priv *priv = fe->demodulator_priv; 328 struct cxd2820r_priv *priv = fe->demodulator_priv;
@@ -344,7 +346,7 @@ error:
344 return ret; 346 return ret;
345} 347}
346 348
347static int cxd2820r_read_snr_t2(struct dvb_frontend *fe, u16 *snr) 349int cxd2820r_read_snr_t2(struct dvb_frontend *fe, u16 *snr)
348{ 350{
349 struct cxd2820r_priv *priv = fe->demodulator_priv; 351 struct cxd2820r_priv *priv = fe->demodulator_priv;
350 int ret; 352 int ret;
@@ -372,14 +374,14 @@ error:
372 return ret; 374 return ret;
373} 375}
374 376
375static int cxd2820r_read_ucblocks_t2(struct dvb_frontend *fe, u32 *ucblocks) 377int cxd2820r_read_ucblocks_t2(struct dvb_frontend *fe, u32 *ucblocks)
376{ 378{
377 *ucblocks = 0; 379 *ucblocks = 0;
378 /* no way to read ? */ 380 /* no way to read ? */
379 return 0; 381 return 0;
380} 382}
381 383
382static int cxd2820r_sleep_t2(struct dvb_frontend *fe) 384int cxd2820r_sleep_t2(struct dvb_frontend *fe)
383{ 385{
384 struct cxd2820r_priv *priv = fe->demodulator_priv; 386 struct cxd2820r_priv *priv = fe->demodulator_priv;
385 int ret, i; 387 int ret, i;
@@ -409,7 +411,7 @@ error:
409 return ret; 411 return ret;
410} 412}
411 413
412static int cxd2820r_get_tune_settings_t2(struct dvb_frontend *fe, 414int cxd2820r_get_tune_settings_t2(struct dvb_frontend *fe,
413 struct dvb_frontend_tune_settings *s) 415 struct dvb_frontend_tune_settings *s)
414{ 416{
415 s->min_delay_ms = 1500; 417 s->min_delay_ms = 1500;