diff options
author | Olli Salonen <olli.salonen@iki.fi> | 2014-07-18 01:41:12 -0400 |
---|---|---|
committer | Mauro Carvalho Chehab <m.chehab@samsung.com> | 2014-07-21 20:27:35 -0400 |
commit | 6cc8a35dcf6bceb4c6db38ae7862d826b3afb6a2 (patch) | |
tree | f91143dd5c33e76f38cecc30ae71a21f21a6dedd /drivers/media/tuners/si2157.c | |
parent | 635a90cf9385721dcb9c7f5c59a2873ef0279c8b (diff) |
[media] si2157: Use name si2157_ops instead of si2157_tuner_ops
The struct prototype is defined at the beginning of the code as
"si2157_ops" but the real struct is called "si2157_tuner_ops".
This is causing the name to be empty on this info msg: si2157 16-0060:
si2157: found a '' in cold state
[crope@iki.fi: commit msg from Luis email reply]
Signed-off-by: Olli Salonen <olli.salonen@iki.fi>
Cc: Luis Alves <ljalvs@gmail.com>
Signed-off-by: Antti Palosaari <crope@iki.fi>
Signed-off-by: Mauro Carvalho Chehab <m.chehab@samsung.com>
Diffstat (limited to 'drivers/media/tuners/si2157.c')
-rw-r--r-- | drivers/media/tuners/si2157.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/media/tuners/si2157.c b/drivers/media/tuners/si2157.c index 329004fbec76..4730f69cac01 100644 --- a/drivers/media/tuners/si2157.c +++ b/drivers/media/tuners/si2157.c | |||
@@ -277,7 +277,7 @@ err: | |||
277 | return ret; | 277 | return ret; |
278 | } | 278 | } |
279 | 279 | ||
280 | static const struct dvb_tuner_ops si2157_tuner_ops = { | 280 | static const struct dvb_tuner_ops si2157_ops = { |
281 | .info = { | 281 | .info = { |
282 | .name = "Silicon Labs Si2157/Si2158", | 282 | .name = "Silicon Labs Si2157/Si2158", |
283 | .frequency_min = 110000000, | 283 | .frequency_min = 110000000, |
@@ -317,7 +317,7 @@ static int si2157_probe(struct i2c_client *client, | |||
317 | goto err; | 317 | goto err; |
318 | 318 | ||
319 | fe->tuner_priv = s; | 319 | fe->tuner_priv = s; |
320 | memcpy(&fe->ops.tuner_ops, &si2157_tuner_ops, | 320 | memcpy(&fe->ops.tuner_ops, &si2157_ops, |
321 | sizeof(struct dvb_tuner_ops)); | 321 | sizeof(struct dvb_tuner_ops)); |
322 | 322 | ||
323 | i2c_set_clientdata(client, s); | 323 | i2c_set_clientdata(client, s); |