Commit 2ac8015f authored by Xia Jiang's avatar Xia Jiang Committed by Mauro Carvalho Chehab

media: platform: Rename existing functions/defines/variables

Rename existing functions/defines/variables with a  _dec prefix and
without dec_ prefix to prepare for the addition of the jpeg encoder
feature.
Reviewed-by: default avatarTomasz Figa <tfiga@chromium.org>
Signed-off-by: default avatarXia Jiang <xia.jiang@mediatek.com>
Signed-off-by: default avatarHans Verkuil <hverkuil-cisco@xs4all.nl>
Signed-off-by: default avatarMauro Carvalho Chehab <mchehab+huawei@kernel.org>
parent 030a7b5c
...@@ -17,8 +17,8 @@ ...@@ -17,8 +17,8 @@
#define MTK_JPEG_COMP_MAX 3 #define MTK_JPEG_COMP_MAX 3
#define MTK_JPEG_FMT_FLAG_DEC_OUTPUT BIT(0) #define MTK_JPEG_FMT_FLAG_OUTPUT BIT(0)
#define MTK_JPEG_FMT_FLAG_DEC_CAPTURE BIT(1) #define MTK_JPEG_FMT_FLAG_CAPTURE BIT(1)
#define MTK_JPEG_MIN_WIDTH 32U #define MTK_JPEG_MIN_WIDTH 32U
#define MTK_JPEG_MIN_HEIGHT 32U #define MTK_JPEG_MIN_HEIGHT 32U
...@@ -50,8 +50,8 @@ enum mtk_jpeg_ctx_state { ...@@ -50,8 +50,8 @@ enum mtk_jpeg_ctx_state {
* @v4l2_dev: v4l2 device for mem2mem mode * @v4l2_dev: v4l2 device for mem2mem mode
* @m2m_dev: v4l2 mem2mem device data * @m2m_dev: v4l2 mem2mem device data
* @alloc_ctx: videobuf2 memory allocator's context * @alloc_ctx: videobuf2 memory allocator's context
* @dec_vdev: video device node for decoder mem2mem mode * @vdev: video device node for jpeg mem2mem mode
* @dec_reg_base: JPEG registers mapping * @reg_base: JPEG registers mapping
* @clks: clock names * @clks: clock names
* @num_clks: numbers of clock * @num_clks: numbers of clock
* @larb: SMI device * @larb: SMI device
...@@ -65,8 +65,8 @@ struct mtk_jpeg_dev { ...@@ -65,8 +65,8 @@ struct mtk_jpeg_dev {
struct v4l2_device v4l2_dev; struct v4l2_device v4l2_dev;
struct v4l2_m2m_dev *m2m_dev; struct v4l2_m2m_dev *m2m_dev;
void *alloc_ctx; void *alloc_ctx;
struct video_device *dec_vdev; struct video_device *vdev;
void __iomem *dec_reg_base; void __iomem *reg_base;
struct clk_bulk_data *clks; struct clk_bulk_data *clks;
int num_clks; int num_clks;
struct device *larb; struct device *larb;
......
...@@ -3,10 +3,11 @@ ...@@ -3,10 +3,11 @@
* Copyright (c) 2016 MediaTek Inc. * Copyright (c) 2016 MediaTek Inc.
* Author: Ming Hsiu Tsai <minghsiu.tsai@mediatek.com> * Author: Ming Hsiu Tsai <minghsiu.tsai@mediatek.com>
* Rick Chang <rick.chang@mediatek.com> * Rick Chang <rick.chang@mediatek.com>
* Xia Jiang <xia.jiang@mediatek.com>
*/ */
#ifndef _MTK_JPEG_HW_H #ifndef _MTK_JPEG_DEC_HW_H
#define _MTK_JPEG_HW_H #define _MTK_JPEG_DEC_HW_H
#include <media/videobuf2-core.h> #include <media/videobuf2-core.h>
......
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