Commit 552b07b5 authored by Laurent Pinchart's avatar Laurent Pinchart Committed by Mauro Carvalho Chehab

media: ti-vpe: cal: Use dev_* print macros

Use the dev_* print macros instead of the v4l2_* print macros. This
prepares for a common print infrastructure that will also support the
cal_camerarx instances.
Signed-off-by: default avatarLaurent Pinchart <laurent.pinchart@ideasonboard.com>
Reviewed-by: default avatarTomi Valkeinen <tomi.valkeinen@ti.com>
Signed-off-by: default avatarHans Verkuil <hverkuil-cisco@xs4all.nl>
Signed-off-by: default avatarMauro Carvalho Chehab <mchehab+huawei@kernel.org>
parent d01a7fea
......@@ -54,18 +54,22 @@ module_param(debug, uint, 0644);
MODULE_PARM_DESC(debug, "activates debug info");
#define cal_dbg(level, cal, fmt, arg...) \
v4l2_dbg(level, debug, &cal->v4l2_dev, fmt, ##arg)
do { \
if (debug >= (level)) \
dev_printk(KERN_DEBUG, &(cal)->pdev->dev, \
fmt, ##arg); \
} while (0)
#define cal_info(cal, fmt, arg...) \
v4l2_info(&cal->v4l2_dev, fmt, ##arg)
dev_info(&(cal)->pdev->dev, fmt, ##arg)
#define cal_err(cal, fmt, arg...) \
v4l2_err(&cal->v4l2_dev, fmt, ##arg)
dev_err(&(cal)->pdev->dev, fmt, ##arg)
#define ctx_dbg(level, ctx, fmt, arg...) \
v4l2_dbg(level, debug, &ctx->v4l2_dev, fmt, ##arg)
cal_dbg(level, (ctx)->cal, "ctx%u: " fmt, (ctx)->csi2_port, ##arg)
#define ctx_info(ctx, fmt, arg...) \
v4l2_info(&ctx->v4l2_dev, fmt, ##arg)
cal_info((ctx)->cal, "ctx%u: " fmt, (ctx)->csi2_port, ##arg)
#define ctx_err(ctx, fmt, arg...) \
v4l2_err(&ctx->v4l2_dev, fmt, ##arg)
cal_err((ctx)->cal, "ctx%u: " fmt, (ctx)->csi2_port, ##arg)
#define CAL_NUM_CONTEXT 2
......
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