Skip to content

Commit

Permalink
[media] si2157: Use name si2157_ops instead of si2157_tuner_ops
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Olli Salonen authored and Mauro Carvalho Chehab committed Jul 22, 2014
1 parent 635a90c commit 6cc8a35
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions drivers/media/tuners/si2157.c
Original file line number Diff line number Diff line change
Expand Up @@ -277,7 +277,7 @@ static int si2157_set_params(struct dvb_frontend *fe)
return ret;
}

static const struct dvb_tuner_ops si2157_tuner_ops = {
static const struct dvb_tuner_ops si2157_ops = {
.info = {
.name = "Silicon Labs Si2157/Si2158",
.frequency_min = 110000000,
Expand Down Expand Up @@ -317,7 +317,7 @@ static int si2157_probe(struct i2c_client *client,
goto err;

fe->tuner_priv = s;
memcpy(&fe->ops.tuner_ops, &si2157_tuner_ops,
memcpy(&fe->ops.tuner_ops, &si2157_ops,
sizeof(struct dvb_tuner_ops));

i2c_set_clientdata(client, s);
Expand Down

0 comments on commit 6cc8a35

Please sign in to comment.