summaryrefslogtreecommitdiffstats
path: root/drivers/staging/media/davinci_vpfe
diff options
context:
space:
mode:
authorMamta Shukla <mamtashukla555@gmail.com>2018-10-07 03:58:19 +0530
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2018-10-09 14:59:58 +0200
commit106eb4d5f5be0fe4efbff0cadcbb4655c1cf44d5 (patch)
treee025fd428ae2164f153f59d3da6eaa9f77466640 /drivers/staging/media/davinci_vpfe
parent0cbe40eb2ba3cdd94eaaf6cf8227dd740d7719ef (diff)
downloadtalos-op-linux-106eb4d5f5be0fe4efbff0cadcbb4655c1cf44d5.tar.gz
talos-op-linux-106eb4d5f5be0fe4efbff0cadcbb4655c1cf44d5.zip
staging: media: davinci_vpfe: Use __func__ instead of function name
Access current function name using __func__. Use %s and __func__ instead of function name. Use of predefined identifier __func__ prevents typo error in function name in print calls. Issue found with checkpatch.pl Signed-off-by: Mamta Shukla <mamtashukla555@gmail.com> Acked-by: Julia Lawall <julia.lawall@lip6.fr> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/staging/media/davinci_vpfe')
-rw-r--r--drivers/staging/media/davinci_vpfe/dm365_ipipe.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/staging/media/davinci_vpfe/dm365_ipipe.c b/drivers/staging/media/davinci_vpfe/dm365_ipipe.c
index 95942768639c..4d09e8141fed 100644
--- a/drivers/staging/media/davinci_vpfe/dm365_ipipe.c
+++ b/drivers/staging/media/davinci_vpfe/dm365_ipipe.c
@@ -695,21 +695,21 @@ static int ipipe_get_gamma_params(struct vpfe_ipipe_device *ipipe, void *param)
if (!gamma->bypass_r) {
dev_err(dev,
- "ipipe_get_gamma_params: table ptr empty for R\n");
+ "%s: table ptr empty for R\n", __func__);
return -EINVAL;
}
memcpy(gamma_param->table_r, gamma->table_r,
(table_size * sizeof(struct vpfe_ipipe_gamma_entry)));
if (!gamma->bypass_g) {
- dev_err(dev, "ipipe_get_gamma_params: table ptr empty for G\n");
+ dev_err(dev, "%s: table ptr empty for G\n", __func__);
return -EINVAL;
}
memcpy(gamma_param->table_g, gamma->table_g,
(table_size * sizeof(struct vpfe_ipipe_gamma_entry)));
if (!gamma->bypass_b) {
- dev_err(dev, "ipipe_get_gamma_params: table ptr empty for B\n");
+ dev_err(dev, "%s: table ptr empty for B\n", __func__);
return -EINVAL;
}
memcpy(gamma_param->table_b, gamma->table_b,
OpenPOWER on IntegriCloud