Commit ff093612 authored by Mauro Carvalho Chehab's avatar Mauro Carvalho Chehab Committed by Mauro Carvalho Chehab

media: lgdt330x: print info when device gets probed

It is useful to know if the driver load succeded. So,
add a printk info there.

While here, improve the .init debug printed message.
Signed-off-by: default avatarMauro Carvalho Chehab <mchehab@s-opensource.com>
Signed-off-by: default avatarMauro Carvalho Chehab <mchehab+samsung@kernel.org>
parent 6752c797
...@@ -299,7 +299,7 @@ static int lgdt330x_init(struct dvb_frontend *fe) ...@@ -299,7 +299,7 @@ static int lgdt330x_init(struct dvb_frontend *fe)
printk(KERN_WARNING "Only LGDT3302 and LGDT3303 are supported chips.\n"); printk(KERN_WARNING "Only LGDT3302 and LGDT3303 are supported chips.\n");
err = -ENODEV; err = -ENODEV;
} }
dprintk("entered as %s\n", chip_name); dprintk("Initialized the %s chip\n", chip_name);
if (err < 0) if (err < 0)
return err; return err;
return lgdt330x_sw_reset(state); return lgdt330x_sw_reset(state);
...@@ -817,6 +817,9 @@ struct dvb_frontend *lgdt330x_attach(const struct lgdt330x_config *config, ...@@ -817,6 +817,9 @@ struct dvb_frontend *lgdt330x_attach(const struct lgdt330x_config *config,
state->current_frequency = -1; state->current_frequency = -1;
state->current_modulation = -1; state->current_modulation = -1;
pr_info("Demod loaded for LGDT330%s chip\n",
config->demod_chip == LGDT3302 ? "2" : "3");
return &state->frontend; return &state->frontend;
error: error:
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment