Commit 106eb4d5 authored by Mamta Shukla's avatar Mamta Shukla Committed by Greg Kroah-Hartman

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: default avatarMamta Shukla <mamtashukla555@gmail.com>
Acked-by: default avatarJulia Lawall <julia.lawall@lip6.fr>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 0cbe40eb
...@@ -695,21 +695,21 @@ static int ipipe_get_gamma_params(struct vpfe_ipipe_device *ipipe, void *param) ...@@ -695,21 +695,21 @@ static int ipipe_get_gamma_params(struct vpfe_ipipe_device *ipipe, void *param)
if (!gamma->bypass_r) { if (!gamma->bypass_r) {
dev_err(dev, dev_err(dev,
"ipipe_get_gamma_params: table ptr empty for R\n"); "%s: table ptr empty for R\n", __func__);
return -EINVAL; return -EINVAL;
} }
memcpy(gamma_param->table_r, gamma->table_r, memcpy(gamma_param->table_r, gamma->table_r,
(table_size * sizeof(struct vpfe_ipipe_gamma_entry))); (table_size * sizeof(struct vpfe_ipipe_gamma_entry)));
if (!gamma->bypass_g) { 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; return -EINVAL;
} }
memcpy(gamma_param->table_g, gamma->table_g, memcpy(gamma_param->table_g, gamma->table_g,
(table_size * sizeof(struct vpfe_ipipe_gamma_entry))); (table_size * sizeof(struct vpfe_ipipe_gamma_entry)));
if (!gamma->bypass_b) { 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; return -EINVAL;
} }
memcpy(gamma_param->table_b, gamma->table_b, memcpy(gamma_param->table_b, gamma->table_b,
......
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