Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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 <topofeverest8848@gmail.com>
Link: https://lore.kernel.org/r/20240507052512.7296-1-topofeverest8848@gmail.com
Reviewed-by: Hans de Goede <hdegoede@redhat.com>
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>

authored by

Roshan Khatri and committed by
Hans Verkuil
5d5f67b3 41edaef5

+13 -11
+13 -11
drivers/staging/media/atomisp/pci/sh_css_sp.c
··· 1022 1022 */ 1023 1023 if (binary->info->sp.pipeline.mode == IA_CSS_BINARY_MODE_PREVIEW && 1024 1024 (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 + */ 1027 1029 sh_css_sp_stage.frames.out[0].info.padded_width 1028 1030 <<= binary->vf_downscale_log2; 1029 1031 sh_css_sp_stage.frames.out[0].info.res.width ··· 1327 1325 host2sp_command) 1328 1326 / sizeof(int); 1329 1327 enum host2sp_commands last_cmd = host2sp_cmd_error; 1330 - (void)HIVE_ADDR_host_sp_com; /* Suppres warnings in CRUN */ 1328 + (void)HIVE_ADDR_host_sp_com; /* Suppress warnings in CRUN */ 1331 1329 1332 1330 /* Previous command must be handled by SP (by design) */ 1333 1331 last_cmd = load_sp_array_uint(host_sp_com, offset); ··· 1345 1343 unsigned int HIVE_ADDR_host_sp_com = sh_css_sp_fw.info.sp.host_sp_com; 1346 1344 unsigned int offset = (unsigned int)offsetof(struct host_sp_communication, host2sp_command) 1347 1345 / sizeof(int); 1348 - (void)HIVE_ADDR_host_sp_com; /* Suppres warnings in CRUN */ 1346 + (void)HIVE_ADDR_host_sp_com; /* Suppress warnings in CRUN */ 1349 1347 return (enum host2sp_commands)load_sp_array_uint(host_sp_com, offset); 1350 1348 } 1351 1349 ··· 1353 1351 * Frame data is no longer part of the sp_stage structure but part of a 1354 1352 * separate structure. The aim is to make the sp_data struct static 1355 1353 * (it defines a pipeline) and that the dynamic (per frame) data is stored 1356 - * separetly. 1354 + * separately. 1357 1355 * 1358 1356 * This function must be called first every where were you start constructing 1359 1357 * a new pipeline by defining one or more stages with use of variable ··· 1366 1364 /* Clean table */ 1367 1365 unsigned int HIVE_ADDR_host_sp_com = sh_css_sp_fw.info.sp.host_sp_com; 1368 1366 1369 - (void)HIVE_ADDR_host_sp_com; /* Suppres warnings in CRUN */ 1367 + (void)HIVE_ADDR_host_sp_com; /* Suppress warnings in CRUN */ 1370 1368 /* 1371 1369 * rvanimme: don't clean it to save static frame info line ref_in 1372 1370 * ref_out, and tnr_frames. Once this static data is in a ··· 1546 1544 * - different assert for Linux and Windows 1547 1545 */ 1548 1546 1549 - (void)HIVE_ADDR_host_sp_com; /* Suppres warnings in CRUN */ 1547 + (void)HIVE_ADDR_host_sp_com; /* Suppress warnings in CRUN */ 1550 1548 1551 1549 IA_CSS_LOG("or_mask=%x, and_mask=%x", or_mask, and_mask); 1552 1550 event_irq_mask.or_mask = (uint16_t)or_mask; ··· 1575 1573 struct sh_css_event_irq_mask event_irq_mask; 1576 1574 unsigned int pipe_num; 1577 1575 1578 - (void)HIVE_ADDR_host_sp_com; /* Suppres warnings in CRUN */ 1576 + (void)HIVE_ADDR_host_sp_com; /* Suppress warnings in CRUN */ 1579 1577 1580 1578 IA_CSS_ENTER_LEAVE(""); 1581 1579 ··· 1625 1623 if (sp_running) 1626 1624 return; 1627 1625 1628 - (void)HIVE_ADDR_sp_sw_state; /* Suppres warnings in CRUN */ 1626 + (void)HIVE_ADDR_sp_sw_state; /* Suppress warnings in CRUN */ 1629 1627 1630 1628 /* no longer here, sp started immediately */ 1631 1629 /*ia_css_debug_pipe_graph_dump_epilogue();*/ ··· 1666 1664 { 1667 1665 const struct ia_css_fw_info *fw = &sh_css_sp_fw; 1668 1666 unsigned int HIVE_ADDR_ia_css_ispctrl_sp_isp_started = fw->info.sp.isp_started; 1669 - (void)HIVE_ADDR_ia_css_ispctrl_sp_isp_started; /* Suppres warnings in CRUN */ 1667 + (void)HIVE_ADDR_ia_css_ispctrl_sp_isp_started; /* Suppress warnings in CRUN */ 1670 1668 1671 1669 return (bool)load_sp_uint(ia_css_ispctrl_sp_isp_started); 1672 1670 } ··· 1721 1719 sw_reg = 1722 1720 sh_css_sp_group.debug.dma_sw_reg; 1723 1721 1724 - /* get the offest of the target bit */ 1722 + /* get the offset of the target bit */ 1725 1723 bit_offset = (8 * request_type) + channel_id; 1726 1724 1727 1725 /* clear the value of the target bit */