aboutsummaryrefslogtreecommitdiffstats
path: root/drivers
diff options
context:
space:
mode:
authorMauro Carvalho Chehab <mchehab@s-opensource.com>2018-03-09 10:53:29 -0500
committerMauro Carvalho Chehab <mchehab+samsung@kernel.org>2018-05-04 11:06:48 -0400
commitff093612b03527bd67c7f6070609df61e8603712 (patch)
treebabff8623acfba622237db497bbbfc2e3de4f743 /drivers
parentmedia: lgdt330x: use pr_foo() macros (diff)
downloadlinux-dev-ff093612b03527bd67c7f6070609df61e8603712.tar.xz
linux-dev-ff093612b03527bd67c7f6070609df61e8603712.zip
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: Mauro Carvalho Chehab <mchehab@s-opensource.com> Signed-off-by: Mauro Carvalho Chehab <mchehab+samsung@kernel.org>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/media/dvb-frontends/lgdt330x.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/drivers/media/dvb-frontends/lgdt330x.c b/drivers/media/dvb-frontends/lgdt330x.c
index a3139eb69c93..1e52831cb603 100644
--- a/drivers/media/dvb-frontends/lgdt330x.c
+++ b/drivers/media/dvb-frontends/lgdt330x.c
@@ -299,7 +299,7 @@ static int lgdt330x_init(struct dvb_frontend *fe)
printk(KERN_WARNING "Only LGDT3302 and LGDT3303 are supported chips.\n");
err = -ENODEV;
}
- dprintk("entered as %s\n", chip_name);
+ dprintk("Initialized the %s chip\n", chip_name);
if (err < 0)
return err;
return lgdt330x_sw_reset(state);
@@ -817,6 +817,9 @@ struct dvb_frontend *lgdt330x_attach(const struct lgdt330x_config *config,
state->current_frequency = -1;
state->current_modulation = -1;
+ pr_info("Demod loaded for LGDT330%s chip\n",
+ config->demod_chip == LGDT3302 ? "2" : "3");
+
return &state->frontend;
error: