Commit 4636a85c authored by Mauro Carvalho Chehab's avatar Mauro Carvalho Chehab
Browse files

media: atomisp: fix several typos


Running checkpatch.pl codespell logic found several typos at atomisp
driver.

Fix them using --fix-inline.
Signed-off-by: default avatarMauro Carvalho Chehab <mchehab+huawei@kernel.org>
parent fd3218f5
......@@ -717,7 +717,7 @@ static int gc0310_init(struct v4l2_subdev *sd)
pr_info("%s S\n", __func__);
mutex_lock(&dev->input_lock);
/* set inital registers */
/* set initial registers */
ret = gc0310_write_reg_array(client, gc0310_reset_register);
/* restore settings */
......
......@@ -343,7 +343,7 @@ static const struct gc0310_reg gc0310_reset_register[] = {
/////////////////////////////////////////////////
{GC0310_8BIT, 0xfe, 0x01},
{GC0310_8BIT, 0x45, 0xa4}, // 0xf7
{GC0310_8BIT, 0x46, 0xf0}, // 0xff //f0//sun vaule th
{GC0310_8BIT, 0x46, 0xf0}, // 0xff //f0//sun value th
{GC0310_8BIT, 0x48, 0x03}, //sun mode
{GC0310_8BIT, 0x4f, 0x60}, //sun_clamp
{GC0310_8BIT, 0xfe, 0x00},
......
......@@ -275,10 +275,10 @@ struct mt9m114_device {
unsigned int agc;
unsigned int awb;
unsigned int aec;
/* extention SENSOR version 2 */
/* extension SENSOR version 2 */
unsigned int cie_profile;
/* extention SENSOR version 3 */
/* extension SENSOR version 3 */
unsigned int flicker_freq;
/* extension SENSOR version 4 */
......
......@@ -4261,7 +4261,7 @@ int atomisp_set_parameters(struct video_device *vdev,
#endif
if (arg->per_frame_setting && !atomisp_is_vf_pipe(pipe)) {
/*
* Per-frame setting enabled, we allocate a new paramter
* Per-frame setting enabled, we allocate a new parameter
* buffer to cache the parameters and only when frame buffers
* are ready, the parameters will be set to CSS.
* per-frame setting only works for the main output frame.
......
......@@ -2574,7 +2574,7 @@ static void __configure_preview_pp_input(struct atomisp_sub_device *asd,
*
* Rule for Bayer Downscaling: support factor 2, 1.5 and 1.25
* Rule for YUV Decimation: support factor 2, 4
* Rule for YUV Downscaling: arbitary value below 2
* Rule for YUV Downscaling: arbitrary value below 2
*
* General rule of factor distribution among these stages:
* 1: try to do Bayer downscaling first if not in online mode.
......
......@@ -67,7 +67,7 @@ static int csi2_enum_mbus_code(struct v4l2_subdev *sd,
* @fh : V4L2 subdev file handle
* @pad: pad num
* @fmt: pointer to v4l2 format structure
* return -EINVAL or zero on sucess
* return -EINVAL or zero on success
*/
static int csi2_get_format(struct v4l2_subdev *sd,
struct v4l2_subdev_pad_config *cfg,
......
......@@ -270,7 +270,7 @@ int atomisp_q_video_buffers_to_css(struct atomisp_sub_device *asd,
* Because the camera halv3 can't ensure to set zoom
* region to per_frame setting and global setting at
* same time and only set zoom region to pre_frame
* setting now.so when the pre_frame setting inculde
* setting now.so when the pre_frame setting include
* zoom region,I will set it to global setting.
*/
if (param->params.update_flag.dz_config &&
......
......@@ -239,7 +239,7 @@ struct atomisp_device {
*/
struct atomisp_sub_device *asd;
/*
* this will be assiged dyanamically.
* this will be assigned dyanamically.
* For Merr/BTY(ISP2400), 2 streams are supported.
*/
unsigned int num_of_streams;
......
......@@ -2492,7 +2492,7 @@ static int atomisp_g_ext_ctrls(struct file *file, void *fh,
struct v4l2_control ctrl;
int i, ret = 0;
/* input_lock is not need for the Camera releated IOCTLs
/* input_lock is not need for the Camera related IOCTLs
* The input_lock downgrade the FPS of 3A*/
ret = atomisp_camera_g_ext_ctrls(file, fh, c);
if (ret != -EINVAL)
......@@ -2618,7 +2618,7 @@ static int atomisp_s_ext_ctrls(struct file *file, void *fh,
struct v4l2_control ctrl;
int i, ret = 0;
/* input_lock is not need for the Camera releated IOCTLs
/* input_lock is not need for the Camera related IOCTLs
* The input_lock downgrade the FPS of 3A*/
ret = atomisp_camera_s_ext_ctrls(file, fh, c);
if (ret != -EINVAL)
......
......@@ -1002,7 +1002,7 @@ static const struct v4l2_ctrl_config ctrl_enable_raw_buffer_lock = {
/*
* Control to disable digital zoom of the whole stream
*
* When it is true, pipe configuation enable_dz will be set to false.
* When it is true, pipe configuration enable_dz will be set to false.
* This can help get a better performance by disabling pp binary.
*
* Note: Make sure set this configuration before creating stream.
......
......@@ -365,7 +365,7 @@ extern uint32_t ia_css_circbuf_peek_from_start(
* but new elements should be added at the end to existing
* cb element array which if of max_size >= new size
*
* @return true on succesfully increasing the size
* @return true on successfully increasing the size
* false on failure
*/
extern bool ia_css_circbuf_increase_size(
......
......@@ -63,7 +63,7 @@
#define _HRT_CSS_RECEIVER_2400_DATA_FORMAT_ID_GEN_SH8 15 /* 00 1111 Generic Short Packet Code 8 */
#define _HRT_CSS_RECEIVER_2400_DATA_FORMAT_ID_YUV420_8_CSPS 28 /* 01 1100 YUV420 8-bit (Chroma Shifted Pixel Sampling) */
#define _HRT_CSS_RECEIVER_2400_DATA_FORMAT_ID_YUV420_10_CSPS 29 /* 01 1101 YUV420 10-bit (Chroma Shifted Pixel Sampling) */
/* used reseved mipi positions for these */
/* used reserved mipi positions for these */
#define _HRT_CSS_RECEIVER_2400_DATA_FORMAT_ID_RAW16 46
#define _HRT_CSS_RECEIVER_2400_DATA_FORMAT_ID_RAW18 47
#define _HRT_CSS_RECEIVER_2400_DATA_FORMAT_ID_RAW18_2 37
......
......@@ -68,7 +68,7 @@
/* */
#define _PXG_SYNG_PAUSE_CYCLES 0
/* Subblock ID's */
#define _PXG_DISBALE_IDX 0
#define _PXG_DISABLE_IDX 0
#define _PXG_PRBS_IDX 0
#define _PXG_TPG_IDX 1
#define _PXG_SYNG_IDX 2
......
......@@ -63,7 +63,7 @@
#define _HRT_CSS_RECEIVER_2400_DATA_FORMAT_ID_GEN_SH8 15 /* 00 1111 Generic Short Packet Code 8 */
#define _HRT_CSS_RECEIVER_2400_DATA_FORMAT_ID_YUV420_8_CSPS 28 /* 01 1100 YUV420 8-bit (Chroma Shifted Pixel Sampling) */
#define _HRT_CSS_RECEIVER_2400_DATA_FORMAT_ID_YUV420_10_CSPS 29 /* 01 1101 YUV420 10-bit (Chroma Shifted Pixel Sampling) */
/* used reseved mipi positions for these */
/* used reserved mipi positions for these */
#define _HRT_CSS_RECEIVER_2400_DATA_FORMAT_ID_RAW16 46
#define _HRT_CSS_RECEIVER_2400_DATA_FORMAT_ID_RAW18 47
#define _HRT_CSS_RECEIVER_2400_DATA_FORMAT_ID_RAW18_2 37
......
......@@ -63,7 +63,7 @@
#define _HRT_CSS_RECEIVER_2400_DATA_FORMAT_ID_GEN_SH8 15 /* 00 1111 Generic Short Packet Code 8 */
#define _HRT_CSS_RECEIVER_2400_DATA_FORMAT_ID_YUV420_8_CSPS 28 /* 01 1100 YUV420 8-bit (Chroma Shifted Pixel Sampling) */
#define _HRT_CSS_RECEIVER_2400_DATA_FORMAT_ID_YUV420_10_CSPS 29 /* 01 1101 YUV420 10-bit (Chroma Shifted Pixel Sampling) */
/* used reseved mipi positions for these */
/* used reserved mipi positions for these */
#define _HRT_CSS_RECEIVER_2400_DATA_FORMAT_ID_RAW16 46
#define _HRT_CSS_RECEIVER_2400_DATA_FORMAT_ID_RAW18 47
#define _HRT_CSS_RECEIVER_2400_DATA_FORMAT_ID_RAW18_2 37
......
......@@ -32,8 +32,8 @@
* The DMA port definition for the input system
* 2401 DMA is the duplication of the DMA port
* definition for the CSS system DMA. It is duplicated
* here just as the temporal step before the device libary
* is available. The device libary is suppose to provide
* here just as the temporal step before the device library
* is available. The device library is suppose to provide
* the capability of reusing the control interface of the
* same device prototypes. The refactor team will work on
* this, right?
......@@ -55,8 +55,8 @@ struct isys2401_dma_port_cfg_s {
* The DMA device definition for the input system
* 2401 DMA is the duplicattion of the DMA device
* definition for the CSS system DMA. It is duplicated
* here just as the temporal step before the device libary
* is available. The device libary is suppose to provide
* here just as the temporal step before the device library
* is available. The device library is suppose to provide
* the capability of reusing the control interface of the
* same device prototypes. The refactor team will work on
* this, right?
......
......@@ -451,7 +451,7 @@ enum ia_css_isp_memories {
N_IA_CSS_MEMORIES
};
#define IA_CSS_NUM_MEMORIES 9
/* For driver compatability */
/* For driver compatibility */
#define N_IA_CSS_ISP_MEMORIES IA_CSS_NUM_MEMORIES
#define IA_CSS_NUM_ISP_MEMORIES IA_CSS_NUM_MEMORIES
......
......@@ -63,7 +63,7 @@
#define _HRT_CSS_RECEIVER_2400_DATA_FORMAT_ID_GEN_SH8 15 /* 00 1111 Generic Short Packet Code 8 */
#define _HRT_CSS_RECEIVER_2400_DATA_FORMAT_ID_YUV420_8_CSPS 28 /* 01 1100 YUV420 8-bit (Chroma Shifted Pixel Sampling) */
#define _HRT_CSS_RECEIVER_2400_DATA_FORMAT_ID_YUV420_10_CSPS 29 /* 01 1101 YUV420 10-bit (Chroma Shifted Pixel Sampling) */
/* used reseved mipi positions for these */
/* used reserved mipi positions for these */
#define _HRT_CSS_RECEIVER_2400_DATA_FORMAT_ID_RAW16 46
#define _HRT_CSS_RECEIVER_2400_DATA_FORMAT_ID_RAW18 47
#define _HRT_CSS_RECEIVER_2400_DATA_FORMAT_ID_RAW18_2 37
......
......@@ -317,7 +317,7 @@ enum ia_css_isp_memories {
N_IA_CSS_MEMORIES
};
#define IA_CSS_NUM_MEMORIES 9
/* For driver compatability */
/* For driver compatibility */
#define N_IA_CSS_ISP_MEMORIES IA_CSS_NUM_MEMORIES
#define IA_CSS_NUM_ISP_MEMORIES IA_CSS_NUM_MEMORIES
......
......@@ -88,7 +88,7 @@
#ifndef PIPE_GENERATION
/* Deprecated OP___assert, this is still used in ~1000 places
* in the code. This will be removed over time.
* The implemenation for the pipe generation tool is in see support.isp.h */
* The implementation for the pipe generation tool is in see support.isp.h */
#define OP___assert(cnd) assert(cnd)
static inline void compile_time_assert (unsigned cond)
......
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