[media] si2157: Use name si2157_ops instead of si2157_tuner_ops
authorOlli Salonen <olli.salonen@iki.fi>
Fri, 18 Jul 2014 05:41:12 +0000 (02:41 -0300)
committerMauro Carvalho Chehab <m.chehab@samsung.com>
Tue, 22 Jul 2014 00:27:35 +0000 (21:27 -0300)
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>
drivers/media/tuners/si2157.c

index 329004fbec76cddfbdf9e6392365ded607df6e90..4730f69cac01cf1891211cea346fd55e0bce42ba 100644 (file)
@@ -277,7 +277,7 @@ err:
        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,
@@ -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);