summaryrefslogtreecommitdiff
path: root/drivers/media/test-drivers/vidtv/vidtv_tuner.c
diff options
context:
space:
mode:
authorMauro Carvalho Chehab <mchehab+huawei@kernel.org>2020-09-12 11:58:55 +0300
committerMauro Carvalho Chehab <mchehab+huawei@kernel.org>2020-09-14 16:47:51 +0300
commit9cfb4d36c27cc6986503ea41faa90b3175f31d99 (patch)
tree792321fdc0f6d12a990f7672355a24bb57513ce6 /drivers/media/test-drivers/vidtv/vidtv_tuner.c
parentc9f968fac9cfa5af1251d30be9bbac38dd1973a6 (diff)
downloadlinux-9cfb4d36c27cc6986503ea41faa90b3175f31d99.tar.xz
media: vidtv: prefer using dev_foo() instead of pr_foo()
It is better to use the higher level dev_foo() than pr_foo() for printks. Change them at vidtv at the more trivial places. Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
Diffstat (limited to 'drivers/media/test-drivers/vidtv/vidtv_tuner.c')
-rw-r--r--drivers/media/test-drivers/vidtv/vidtv_tuner.c17
1 files changed, 9 insertions, 8 deletions
diff --git a/drivers/media/test-drivers/vidtv/vidtv_tuner.c b/drivers/media/test-drivers/vidtv/vidtv_tuner.c
index c8e64bab0379..39e848ae5836 100644
--- a/drivers/media/test-drivers/vidtv/vidtv_tuner.c
+++ b/drivers/media/test-drivers/vidtv/vidtv_tuner.c
@@ -10,8 +10,6 @@
* Copyright (C) 2020 Daniel W. S. Almeida
*/
-#define pr_fmt(fmt) KBUILD_MODNAME ":%s, %d: " fmt, __func__, __LINE__
-
#include <linux/errno.h>
#include <linux/i2c.h>
#include <linux/module.h>
@@ -149,9 +147,10 @@ static s32 vidtv_tuner_check_frequency_shift(struct dvb_frontend *fe)
break;
default:
- pr_warn("%s: unsupported delivery system: %u\n",
- __func__,
- c->delivery_system);
+ dev_warn(fe->dvb->device,
+ "%s: unsupported delivery system: %u\n",
+ __func__,
+ c->delivery_system);
return -EINVAL;
}
@@ -179,6 +178,7 @@ vidtv_tuner_get_signal_strength(struct dvb_frontend *fe, u16 *strength)
{
struct dtv_frontend_properties *c = &fe->dtv_property_cache;
const struct vidtv_tuner_cnr_to_qual_s *cnr2qual = NULL;
+ struct device *dev = fe->dvb->device;
u32 array_size = 0;
s32 shift;
u32 i;
@@ -208,9 +208,10 @@ vidtv_tuner_get_signal_strength(struct dvb_frontend *fe, u16 *strength)
break;
default:
- pr_warn_ratelimited("%s: unsupported delivery system: %u\n",
- __func__,
- c->delivery_system);
+ dev_warn_ratelimited(dev,
+ "%s: unsupported delivery system: %u\n",
+ __func__,
+ c->delivery_system);
return -EINVAL;
}