Skip to content

Commit 5d5f67b

Browse files
roshank8848Hans Verkuil
authored andcommitted
media: atomisp: Fix spelling mistakes in sh_css_sp.c
Codespell reported misspelled fields,suppress,separately and offset in file sh_css_sp.c. This patch fixes the misspellings. Signed-off-by: Roshan Khatri <[email protected]> Link: https://lore.kernel.org/r/[email protected] Reviewed-by: Hans de Goede <[email protected]> Signed-off-by: Hans de Goede <[email protected]> Signed-off-by: Hans Verkuil <[email protected]>
1 parent 41edaef commit 5d5f67b

File tree

1 file changed

+13
-11
lines changed

1 file changed

+13
-11
lines changed

drivers/staging/media/atomisp/pci/sh_css_sp.c

Lines changed: 13 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1022,8 +1022,10 @@ sh_css_sp_init_stage(struct ia_css_binary *binary,
10221022
*/
10231023
if (binary->info->sp.pipeline.mode == IA_CSS_BINARY_MODE_PREVIEW &&
10241024
(binary->vf_downscale_log2 > 0)) {
1025-
/* TODO: Remove this after preview output decimation is fixed
1026-
* by configuring out&vf info fiels properly */
1025+
/*
1026+
* TODO: Remove this after preview output decimation is fixed
1027+
* by configuring out&vf info fields properly.
1028+
*/
10271029
sh_css_sp_stage.frames.out[0].info.padded_width
10281030
<<= binary->vf_downscale_log2;
10291031
sh_css_sp_stage.frames.out[0].info.res.width
@@ -1325,7 +1327,7 @@ bool sh_css_write_host2sp_command(enum host2sp_commands host2sp_command)
13251327
host2sp_command)
13261328
/ sizeof(int);
13271329
enum host2sp_commands last_cmd = host2sp_cmd_error;
1328-
(void)HIVE_ADDR_host_sp_com; /* Suppres warnings in CRUN */
1330+
(void)HIVE_ADDR_host_sp_com; /* Suppress warnings in CRUN */
13291331

13301332
/* Previous command must be handled by SP (by design) */
13311333
last_cmd = load_sp_array_uint(host_sp_com, offset);
@@ -1343,15 +1345,15 @@ sh_css_read_host2sp_command(void)
13431345
unsigned int HIVE_ADDR_host_sp_com = sh_css_sp_fw.info.sp.host_sp_com;
13441346
unsigned int offset = (unsigned int)offsetof(struct host_sp_communication, host2sp_command)
13451347
/ sizeof(int);
1346-
(void)HIVE_ADDR_host_sp_com; /* Suppres warnings in CRUN */
1348+
(void)HIVE_ADDR_host_sp_com; /* Suppress warnings in CRUN */
13471349
return (enum host2sp_commands)load_sp_array_uint(host_sp_com, offset);
13481350
}
13491351

13501352
/*
13511353
* Frame data is no longer part of the sp_stage structure but part of a
13521354
* separate structure. The aim is to make the sp_data struct static
13531355
* (it defines a pipeline) and that the dynamic (per frame) data is stored
1354-
* separetly.
1356+
* separately.
13551357
*
13561358
* This function must be called first every where were you start constructing
13571359
* a new pipeline by defining one or more stages with use of variable
@@ -1364,7 +1366,7 @@ sh_css_init_host2sp_frame_data(void)
13641366
/* Clean table */
13651367
unsigned int HIVE_ADDR_host_sp_com = sh_css_sp_fw.info.sp.host_sp_com;
13661368

1367-
(void)HIVE_ADDR_host_sp_com; /* Suppres warnings in CRUN */
1369+
(void)HIVE_ADDR_host_sp_com; /* Suppress warnings in CRUN */
13681370
/*
13691371
* rvanimme: don't clean it to save static frame info line ref_in
13701372
* ref_out, and tnr_frames. Once this static data is in a
@@ -1544,7 +1546,7 @@ ia_css_pipe_set_irq_mask(struct ia_css_pipe *pipe,
15441546
* - different assert for Linux and Windows
15451547
*/
15461548

1547-
(void)HIVE_ADDR_host_sp_com; /* Suppres warnings in CRUN */
1549+
(void)HIVE_ADDR_host_sp_com; /* Suppress warnings in CRUN */
15481550

15491551
IA_CSS_LOG("or_mask=%x, and_mask=%x", or_mask, and_mask);
15501552
event_irq_mask.or_mask = (uint16_t)or_mask;
@@ -1573,7 +1575,7 @@ ia_css_event_get_irq_mask(const struct ia_css_pipe *pipe,
15731575
struct sh_css_event_irq_mask event_irq_mask;
15741576
unsigned int pipe_num;
15751577

1576-
(void)HIVE_ADDR_host_sp_com; /* Suppres warnings in CRUN */
1578+
(void)HIVE_ADDR_host_sp_com; /* Suppress warnings in CRUN */
15771579

15781580
IA_CSS_ENTER_LEAVE("");
15791581

@@ -1623,7 +1625,7 @@ sh_css_sp_start_isp(void)
16231625
if (sp_running)
16241626
return;
16251627

1626-
(void)HIVE_ADDR_sp_sw_state; /* Suppres warnings in CRUN */
1628+
(void)HIVE_ADDR_sp_sw_state; /* Suppress warnings in CRUN */
16271629

16281630
/* no longer here, sp started immediately */
16291631
/*ia_css_debug_pipe_graph_dump_epilogue();*/
@@ -1664,7 +1666,7 @@ ia_css_isp_has_started(void)
16641666
{
16651667
const struct ia_css_fw_info *fw = &sh_css_sp_fw;
16661668
unsigned int HIVE_ADDR_ia_css_ispctrl_sp_isp_started = fw->info.sp.isp_started;
1667-
(void)HIVE_ADDR_ia_css_ispctrl_sp_isp_started; /* Suppres warnings in CRUN */
1669+
(void)HIVE_ADDR_ia_css_ispctrl_sp_isp_started; /* Suppress warnings in CRUN */
16681670

16691671
return (bool)load_sp_uint(ia_css_ispctrl_sp_isp_started);
16701672
}
@@ -1719,7 +1721,7 @@ sh_css_sp_set_dma_sw_reg(int dma_id,
17191721
sw_reg =
17201722
sh_css_sp_group.debug.dma_sw_reg;
17211723

1722-
/* get the offest of the target bit */
1724+
/* get the offset of the target bit */
17231725
bit_offset = (8 * request_type) + channel_id;
17241726

17251727
/* clear the value of the target bit */

0 commit comments

Comments
 (0)