diff options
Diffstat (limited to 'drivers/media/dvb/frontends/cx24123.c')
-rw-r--r-- | drivers/media/dvb/frontends/cx24123.c | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/drivers/media/dvb/frontends/cx24123.c b/drivers/media/dvb/frontends/cx24123.c index c71422964064..f2f795cba56a 100644 --- a/drivers/media/dvb/frontends/cx24123.c +++ b/drivers/media/dvb/frontends/cx24123.c | |||
@@ -41,7 +41,6 @@ static int debug; | |||
41 | struct cx24123_state | 41 | struct cx24123_state |
42 | { | 42 | { |
43 | struct i2c_adapter* i2c; | 43 | struct i2c_adapter* i2c; |
44 | struct dvb_frontend_ops ops; | ||
45 | const struct cx24123_config* config; | 44 | const struct cx24123_config* config; |
46 | 45 | ||
47 | struct dvb_frontend frontend; | 46 | struct dvb_frontend frontend; |
@@ -429,8 +428,8 @@ static int cx24123_set_symbolrate(struct cx24123_state* state, u32 srate) | |||
429 | u8 pll_mult; | 428 | u8 pll_mult; |
430 | 429 | ||
431 | /* check if symbol rate is within limits */ | 430 | /* check if symbol rate is within limits */ |
432 | if ((srate > state->ops.info.symbol_rate_max) || | 431 | if ((srate > state->frontend.ops.info.symbol_rate_max) || |
433 | (srate < state->ops.info.symbol_rate_min)) | 432 | (srate < state->frontend.ops.info.symbol_rate_min)) |
434 | return -EOPNOTSUPP;; | 433 | return -EOPNOTSUPP;; |
435 | 434 | ||
436 | /* choose the sampling rate high enough for the required operation, | 435 | /* choose the sampling rate high enough for the required operation, |
@@ -950,7 +949,6 @@ struct dvb_frontend* cx24123_attach(const struct cx24123_config* config, | |||
950 | /* setup the state */ | 949 | /* setup the state */ |
951 | state->config = config; | 950 | state->config = config; |
952 | state->i2c = i2c; | 951 | state->i2c = i2c; |
953 | memcpy(&state->ops, &cx24123_ops, sizeof(struct dvb_frontend_ops)); | ||
954 | state->lastber = 0; | 952 | state->lastber = 0; |
955 | state->snr = 0; | 953 | state->snr = 0; |
956 | state->VCAarg = 0; | 954 | state->VCAarg = 0; |
@@ -968,7 +966,7 @@ struct dvb_frontend* cx24123_attach(const struct cx24123_config* config, | |||
968 | } | 966 | } |
969 | 967 | ||
970 | /* create dvb_frontend */ | 968 | /* create dvb_frontend */ |
971 | state->frontend.ops = &state->ops; | 969 | memcpy(&state->frontend.ops, &cx24123_ops, sizeof(struct dvb_frontend_ops)); |
972 | state->frontend.demodulator_priv = state; | 970 | state->frontend.demodulator_priv = state; |
973 | return &state->frontend; | 971 | return &state->frontend; |
974 | 972 | ||