media: fix typos and repeated words in comments
Subsystems (18)
cover media: fix typos and repeated words in comments
This corrects 3 misspellings and repeated words in comments. Each is a separate patch so that any one of them can be dropped without touching the rest.
Nothing outside comments changes. Every touched C file was checked by dropping its comments, replacing each string literal with a placeholder and collapsing whitespace; what remained was identical before and after, so the compiled code cannot differ.
The mistakes were found with scripts/checkpatch.pl against the list in scripts/spelling.txt. The scanning, the edits and the changelogs were produced with Cursor running the claude-opus-5 model, from a request to find and fix spelling mistakes across the tree, and every correction was then re-checked by the comparison described above. Words that name an identifier were left alone deliberately, even when they read as typos, because correcting the prose would make the comment disagree with the code it describes.
Tested by building x86_64 defconfig at v7.3-rc1-269-gbc35965f6940, which is clean. Nothing else was built, so any patch touching code that x86_64 defconfig does not compile has been read but not compiled.
Hemanth Selam (3):
media: fix typos in comments
media: fix repeated words in comments
media: pci: fix repeated word in log message
drivers/media/dvb-frontends/drxd_map_firm.h | 4 ++-- drivers/media/i2c/adv7175.c | 2 +- drivers/media/i2c/ccs/ccs-data.h | 4 ++-- drivers/media/i2c/hi847.c | 2 +- drivers/media/i2c/ov772x.c | 2 +- drivers/media/i2c/wm8739.c | 2 +- drivers/media/pci/cx18/cx23418.h | 2 +- drivers/media/pci/saa7146/mxb.c | 4 ++-- drivers/media/pci/saa7164/saa7164-core.c | 2 +- drivers/media/platform/mediatek/mdp/mtk_mdp_ipi.h | 2 +- drivers/media/platform/mediatek/vcodec/decoder/vdec_ipi_msg.h | 4 ++-- drivers/media/platform/renesas/rcar_drif.c | 2 +- drivers/media/platform/renesas/vsp1/vsp1_dl.c | 2 +- drivers/media/radio/si4713/si4713.c | 2 +- drivers/media/usb/dvb-usb/dib0700_core.c | 2 +- drivers/media/usb/gspca/ov519.c | 2 +- drivers/media/usb/gspca/w996Xcf.c | 2 +- .../atomisp/pci/isp/kernels/s3a/s3a_1.0/ia_css_s3a_types.h | 4 ++-- drivers/staging/media/av7110/av7110.c | 2 +- 19 files changed, 24 insertions(+), 24 deletions(-)
Signature · 1 line
2.48.1
PATCH 1/3 media: fix typos in comments
Fix typos in comments, reported by scripts/checkpatch.pl using the misspelling list in scripts/spelling.txt. Only touches comments, no code changes.
--- drivers/media/dvb-frontends/drxd_map_firm.h | 4 ++-- drivers/media/i2c/ccs/ccs-data.h | 4 ++-- drivers/media/i2c/hi847.c | 2 +- drivers/media/i2c/ov772x.c | 2 +- drivers/media/i2c/wm8739.c | 2 +- drivers/media/pci/cx18/cx23418.h | 2 +- drivers/media/pci/saa7146/mxb.c | 4 ++-- drivers/media/platform/mediatek/mdp/mtk_mdp_ipi.h | 2 +- drivers/media/platform/mediatek/vcodec/decoder/vdec_ipi_msg.h | 4 ++-- drivers/media/platform/renesas/rcar_drif.c | 2 +- drivers/media/radio/si4713/si4713.c | 2 +- drivers/media/usb/dvb-usb/dib0700_core.c | 2 +- drivers/media/usb/gspca/w996Xcf.c | 2 +- .../atomisp/pci/isp/kernels/s3a/s3a_1.0/ia_css_s3a_types.h | 4 ++-- drivers/staging/media/av7110/av7110.c | 2 +- 15 files changed, 20 insertions(+), 20 deletions(-)
drivers/media/dvb-frontends/drxd_map_firm.h +2 -2
@@ -10,8 +10,8 @@/* * Note: originally, this file contained 12000+ lines of data -* Probably a few lines for every firwmare assembler instruction. However, -* only a few defines were actually used. So, removed all uneeded lines. +* Probably a few lines for every firmware assembler instruction. However, +* only a few defines were actually used. So, removed all unneeded lines. * If ever needed, the other lines can be easily obtained via git history. */
drivers/media/i2c/ccs/ccs-data.h +2 -2
@@ -160,7 +160,7 @@ struct ccs_pdaf_pix_loc_pixel_desc_group {* @main_offset_y: Start Y coordinate of PDAF pixel blocks * @global_pdaf_type: PDAF pattern type * @block_width: Width of a block in pixels -* @block_height: Heigth of a block in pixels +* @block_height: Height of a block in pixels * @num_block_desc_groups: Number of block descriptor groups * @block_desc_groups: Block descriptor groups * @num_pixel_desc_grups: Number of pixel descriptor groups
@@ -197,7 +197,7 @@ struct ccs_pdaf_pix_loc {* @module_rules: Rules for the module * @sensor_pdaf: PDAF data for the sensor * @module_pdaf: PDAF data for the module -* @license_length: Lenght of the license data +* @license_length: Length of the license data * @license: License data * @end: Whether or not there's an end block * @backing: Raw data, pointed to from elsewhere so keep it around
drivers/media/i2c/hi847.c +1 -1
@@ -2187,7 +2187,7 @@ struct hi847 {/* Current mode */ const struct hi847_mode *cur_mode; -/* To serialize asynchronus callbacks */ +/* To serialize asynchronous callbacks */ struct mutex mutex; };
drivers/media/i2c/ov772x.c +1 -1
@@ -122,7 +122,7 @@#define LC_COEFB 0x4B/* Lens B channel compensation coefficient */ #define LC_COEFR 0x4C/* Lens R channel compensation coefficient */ -#define FIXGAIN 0x4D/* Analog fix gain amplifer */ +#define FIXGAIN 0x4D/* Analog fix gain amplifier */ #define AREF0 0x4E/* Sensor reference control */ #define AREF1 0x4F/* Sensor reference current control */ #define AREF2 0x50/* Analog reference control */
drivers/media/i2c/wm8739.c +1 -1
@@ -217,7 +217,7 @@ static int wm8739_probe(struct i2c_client *client)/* reset */ wm8739_write (sd,R15 ,0x00 ); -/* filter setting, high path, offet clear */ +/* filter setting, high path, offset clear */ wm8739_write (sd,R5 ,0x000 );/* ADC, OSC, Power Off mode Disable */ wm8739_write (sd,R6 ,0x000 );
drivers/media/pci/cx18/cx23418.h +1 -1
@@ -24,7 +24,7 @@#define CX18_CREATE_TASK (MGR_CMD_MASK | 0x0001)/* Description: This command destroys an instance of a task -IN[0] - Task handle. Hanlde of the task to destroy +IN[0] - Task handle. Handle of the task to destroy ReturnCode - One of the ERR_SYS_... */ #define CX18_DESTROY_TASK (MGR_CMD_MASK | 0x0002)
drivers/media/pci/saa7146/mxb.c +2 -2
@@ -37,7 +37,7 @@/* global variable */ static int mxb_num; -/* initial frequence the tuner will be tuned to. +/* initial frequency the tuner will be tuned to. in verden (lower saxony, germany) 4148 is a channel called "phoenix" */ static int freq =4148 ;
@@ -429,7 +429,7 @@ static int mxb_init_done(struct saa7146_dev* dev)/* some stuff is done via direct write to the registers */ /* this is ugly, but because of the fact that this is completely -hardware dependend, it should be done directly... */ +hardware dependent, it should be done directly... */ saa7146_write (dev,DD1_STREAM_B ,0x00000000 );saa7146_write (dev,DD1_INIT ,0x02000200 );saa7146_write (dev,MC2 , (MASK_09 |MASK_25 |MASK_10 |MASK_26 ));
drivers/media/platform/mediatek/mdp/mtk_mdp_ipi.h +1 -1
@@ -56,7 +56,7 @@ struct mdp_ipi_comm {* @ipi_id : IPI_MDP * @ap_inst : AP mtk_mdp_vpu address * @vpu_inst_addr : VPU MDP instance address -* @status : VPU exeuction result +* @status : VPU execution result */ struct mdp_ipi_comm_ack {uint32_t msg_id;
drivers/media/platform/mediatek/vcodec/decoder/vdec_ipi_msg.h +2 -2
@@ -53,7 +53,7 @@ struct vdec_ap_ipi_cmd {/** * struct vdec_vpu_ipi_ack - generic VPU to AP ipi command format * @msg_id : vdec_ipi_msgid -* @status : VPU exeuction result +* @status : VPU execution result * @ap_inst_addr : AP video decoder instance address */ struct vdec_vpu_ipi_ack {
@@ -98,7 +98,7 @@ struct vdec_ap_ipi_dec_start {/** * struct vdec_vpu_ipi_init_ack - for VPU_IPIMSG_DEC_INIT_ACK * @msg_id : VPU_IPIMSG_DEC_INIT_ACK -* @status : VPU exeuction result +* @status : VPU execution result * @ap_inst_addr : AP vcodec_vpu_inst instance address * @vpu_inst_addr : VPU decoder instance address * @vdec_abi_version: ABI version of the firmware. Kernel can use it to
drivers/media/platform/renesas/rcar_drif.c +1 -1
@@ -464,7 +464,7 @@ rcar_drif_get_fbuf(struct rcar_drif_sdr *sdr) rcar_drif_frame_buf, list);if (!fbuf) {/* -* App is late in enqueing buffers. Samples lost & there will +* App is late in enqueuing buffers. Samples lost & there will * be a gap in sequence number when app recovers */ rdrif_dbg (sdr,"\napp late: prod %u\n" , sdr->produced);
drivers/media/radio/si4713/si4713.c +1 -1
@@ -667,7 +667,7 @@ static int si4713_tx_tune_measure(struct si4713_device *sdev, u16 frequency,/* * si4713_tx_tune_status- Returns the status of the tx_tune_freq, tx_tune_mea or * tx_tune_power commands. This command return the current -* frequency, output voltage in dBuV, the antenna tunning +* frequency, output voltage in dBuV, the antenna tuning * capacitance value and the received noise level. The * command also clears the stcint interrupt bit when the * first bit of its arguments is high.
drivers/media/usb/dvb-usb/dib0700_core.c +1 -1
@@ -560,7 +560,7 @@ int dib0700_download_firmware(struct usb_device *udev, const struct firmware *fw fw_version = (buf[8 ] <<24 ) | (buf[9 ] <<16 ) | (buf[10 ] <<8 ) | buf[11 ];/* set the buffer size - DVB-USB is allocating URB buffers -* only after the firwmare download was successful */ +* only after the firmware download was successful */ for (i =0 ; i < dib0700_device_count; i++) {for (adap_num =0 ; adap_num < dib0700_devices[i].num_adapters; adap_num++) {
drivers/media/usb/gspca/w996Xcf.c +1 -1
@@ -407,7 +407,7 @@ static void w9968cf_set_crop_window(struct sd *sd)if (sd->sensor ==SEN_OV7620 ) {/* -* Sigh, this is dependend on the clock / framerate changes +* Sigh, this is dependent on the clock / framerate changes * made by the frequency control, sick. * * Note we cannot use v4l2_ctrl_g_ctrl here, as we get called
drivers/staging/media/atomisp/pci/isp/kernels/s3a/s3a_1.0/ia_css_s3a_types.h +2 -2
@@ -102,8 +102,8 @@ struct ia_css_3a_grid_info {* awb_lg_*: Thresholds to check the saturated bayer pixels for AWB. * Condition of effective pixel for AWB level gate check: * bayer(sensor) <= awb_lg_high_raw && -* bayer(when AWB statisitcs is calculated) >= awb_lg_low && -* bayer(when AWB statisitcs is calculated) <= awb_lg_high +* bayer(when AWB statistics is calculated) >= awb_lg_low && +* bayer(when AWB statistics is calculated) <= awb_lg_high * af_fir*: Coefficients of high pass filter to calculate AF statistics. * * ISP block: S3A1(ae_y_* for AE/AF, awb_lg_* for AWB)
drivers/staging/media/av7110/av7110.c +1 -1
@@ -2347,7 +2347,7 @@ static int av7110_attach(struct saa7146_dev *dev,/* RESET SAA7146 */ saa7146_write (dev,MC1 ,MASK_31 ); -/* autodetection success seems to be time-dependend after reset */ +/* autodetection success seems to be time-dependent after reset */ /* Fix VSYNC level */ saa7146_setgpio (dev,3 ,SAA7146_GPIO_OUTLO );
Signature · 1 line
2.48.1
PATCH 2/3 media: fix repeated words in comments
In reply to Hemanth SelamDrop words accidentally written twice, reported by checkpatch.pl as a possible repeated word. Only touches comments, no code changes.
--- drivers/media/i2c/adv7175.c | 2 +- drivers/media/platform/renesas/vsp1/vsp1_dl.c | 2 +- drivers/media/usb/gspca/ov519.c | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-)
drivers/media/i2c/adv7175.c +1 -1
@@ -209,7 +209,7 @@ static int adv7175_s_std_output(struct v4l2_subdev *sd, v4l2_std_id std)/* This is an attempt to convert * SECAM->PAL (typically it does not work * due to genlock: when decoder is in SECAM -* and encoder in in PAL the subcarrier can +* and encoder in PAL the subcarrier can * not be synchronized with horizontal * quency) */ adv7175_write_block (sd, init_pal,sizeof (init_pal));
drivers/media/platform/renesas/vsp1/vsp1_dl.c +1 -1
@@ -649,7 +649,7 @@ static void __vsp1_dl_list_put(struct vsp1_dl_list *dl) dl->post_cmd =NULL ;/* -* body0 is reused as as an optimisation as presently every display list +* body0 is reused as an optimisation as presently every display list * has at least one body, thus we reinitialise the entries list. */ dl->body0->num_entries =0 ;
drivers/media/usb/gspca/ov519.c +1 -1
@@ -13,7 +13,7 @@* Copyright (c) 1999-2006 Mark W. McClelland * Support for OV519, OV8610 Copyright (c) 2003 Joerg Heckenbach * Many improvements by Bret Wallach <[email protected]> -* Color fixes by by Orion Sky Lawlor <[email protected]> (2/26/2000) +* Color fixes by Orion Sky Lawlor <[email protected]> (2/26/2000) * OV7620 fixes by Charl P. Botha <[email protected]> * Changes by Claudio Matsuoka <[email protected]> *
Signature · 1 line
2.48.1
Laurent Pinchart
maintainerRe: [PATCH 2/3] media: fix repeated words in comments
Quoted 4 lines · Hemanth Selam
Drop words accidentally written twice, reported by checkpatch.pl as a possible repeated word. Only touches comments, no code changes.
Assisted-by Cursor:claude-opus-5
This is not a good use of reviewer time. NAK.
Quoted 46 lines
Signed-off-by Hemanth Selam <[email protected]>--- drivers/media/i2c/adv7175.c | 2 +- drivers/media/platform/renesas/vsp1/vsp1_dl.c | 2 +- drivers/media/usb/gspca/ov519.c | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-)drivers/media/i2c/adv7175.c +1
-1@@ -209,7 +209,7 @@ static int adv7175_s_std_output(struct v4l2_subdev *sd, v4l2_std_id std)/* This is an attempt to convert * SECAM->PAL (typically it does not work * due to genlock: when decoder is in SECAM -* and encoder in in PAL the subcarrier can +* and encoder in PAL the subcarrier can * not be synchronized with horizontal * quency) */ adv7175_write_block (sd, init_pal,sizeof (init_pal));drivers/media/platform/renesas/vsp1/vsp1_dl.c +1
-1@@ -649,7 +649,7 @@ static void __vsp1_dl_list_put(struct vsp1_dl_list *dl) dl->post_cmd =NULL ;/* -* body0 is reused as as an optimisation as presently every display list +* body0 is reused as an optimisation as presently every display list * has at least one body, thus we reinitialise the entries list. */ dl->body0->num_entries =0 ;drivers/media/usb/gspca/ov519.c +1
-1@@ -13,7 +13,7 @@* Copyright (c) 1999-2006 Mark W. McClelland * Support for OV519, OV8610 Copyright (c) 2003 Joerg Heckenbach * Many improvements by Bret Wallach <[email protected]> -* Color fixes by by Orion Sky Lawlor <[email protected]> (2/26/2000) +* Color fixes by Orion Sky Lawlor <[email protected]> (2/26/2000) * OV7620 fixes by Charl P. Botha <[email protected]> * Changes by Claudio Matsuoka <[email protected]> *
Signature · 3 lines
Regards, Laurent Pinchart
Re: [PATCH 2/3] media: fix repeated words in comments
Quoted 7 lines · Laurent Pinchart
Quoted 4 lines · Hemanth Selam
Drop words accidentally written twice, reported by checkpatch.pl as a possible repeated word. Only touches comments, no code changes.
Assisted-by Cursor:claude-opus-5This is not a good use of reviewer time. NAK.
Actually, I'll take this patch.
Laurent, feel free to delegate patches fixing typos/grammar to me. I hate typos etc. in code, they actually make the code harder to read. Patches fixing that take very little time to review, so I'm fine doing that.
Regards,
Hans
Quoted 48 lines
Quoted 47 lines
Signed-off-by Hemanth Selam <[email protected]>--- drivers/media/i2c/adv7175.c | 2 +- drivers/media/platform/renesas/vsp1/vsp1_dl.c | 2 +- drivers/media/usb/gspca/ov519.c | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-)drivers/media/i2c/adv7175.c +1
-1@@ -209,7 +209,7 @@ static int adv7175_s_std_output(struct v4l2_subdev *sd, v4l2_std_id std)/* This is an attempt to convert * SECAM->PAL (typically it does not work * due to genlock: when decoder is in SECAM -* and encoder in in PAL the subcarrier can +* and encoder in PAL the subcarrier can * not be synchronized with horizontal * quency) */ adv7175_write_block (sd, init_pal,sizeof (init_pal));drivers/media/platform/renesas/vsp1/vsp1_dl.c +1
-1@@ -649,7 +649,7 @@ static void __vsp1_dl_list_put(struct vsp1_dl_list *dl) dl->post_cmd =NULL ;/* -* body0 is reused as as an optimisation as presently every display list +* body0 is reused as an optimisation as presently every display list * has at least one body, thus we reinitialise the entries list. */ dl->body0->num_entries =0 ;drivers/media/usb/gspca/ov519.c +1
-1@@ -13,7 +13,7 @@* Copyright (c) 1999-2006 Mark W. McClelland * Support for OV519, OV8610 Copyright (c) 2003 Joerg Heckenbach * Many improvements by Bret Wallach <[email protected]> -* Color fixes by by Orion Sky Lawlor <[email protected]> (2/26/2000) +* Color fixes by Orion Sky Lawlor <[email protected]> (2/26/2000) * OV7620 fixes by Charl P. Botha <[email protected]> * Changes by Claudio Matsuoka <[email protected]> *
Laurent Pinchart
maintainerRe: [PATCH 2/3] media: fix repeated words in comments
Quoted 7 lines · Hans Verkuil
Quoted 6 lines · Laurent Pinchart
Quoted 4 lines · Hemanth Selam
Drop words accidentally written twice, reported by checkpatch.pl as a possible repeated word. Only touches comments, no code changes.
Assisted-by Cursor:claude-opus-5
Quoted 7 lines
Quoted 1 line
This is not a good use of reviewer time. NAK.
Actually, I'll take this patch.
Laurent, feel free to delegate patches fixing typos/grammar to me. I hate typos etc. in code, they actually make the code harder to read. Patches fixing that take very little time to review, so I'm fine doing that.
I don't welcome people who use LLMs to generate noise with barely any value, just for the sake of having their name in the kernel git log. We have enough important patches to review. This kind of submission should be discouraged. It would be different if the typo fixes were part of a human-written series that adds real value.
Quoted 46 lines
Quoted 46 lines
Quoted 46 lines
Signed-off-by Hemanth Selam <[email protected]>--- drivers/media/i2c/adv7175.c | 2 +- drivers/media/platform/renesas/vsp1/vsp1_dl.c | 2 +- drivers/media/usb/gspca/ov519.c | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-)drivers/media/i2c/adv7175.c +1
-1@@ -209,7 +209,7 @@ static int adv7175_s_std_output(struct v4l2_subdev *sd, v4l2_std_id std)/* This is an attempt to convert * SECAM->PAL (typically it does not work * due to genlock: when decoder is in SECAM -* and encoder in in PAL the subcarrier can +* and encoder in PAL the subcarrier can * not be synchronized with horizontal * quency) */ adv7175_write_block (sd, init_pal,sizeof (init_pal));drivers/media/platform/renesas/vsp1/vsp1_dl.c +1
-1@@ -649,7 +649,7 @@ static void __vsp1_dl_list_put(struct vsp1_dl_list *dl) dl->post_cmd =NULL ;/* -* body0 is reused as as an optimisation as presently every display list +* body0 is reused as an optimisation as presently every display list * has at least one body, thus we reinitialise the entries list. */ dl->body0->num_entries =0 ;drivers/media/usb/gspca/ov519.c +1
-1@@ -13,7 +13,7 @@* Copyright (c) 1999-2006 Mark W. McClelland * Support for OV519, OV8610 Copyright (c) 2003 Joerg Heckenbach * Many improvements by Bret Wallach <[email protected]> -* Color fixes by by Orion Sky Lawlor <[email protected]> (2/26/2000) +* Color fixes by Orion Sky Lawlor <[email protected]> (2/26/2000) * OV7620 fixes by Charl P. Botha <[email protected]> * Changes by Claudio Matsuoka <[email protected]> *
Signature · 3 lines
Regards, Laurent Pinchart
PATCH 3/3 media: pci: fix repeated word in log message
In reply to Hemanth SelamDrop the word written twice, reported by checkpatch.pl as a possible repeated word.
Only the message text changes, no code changes.
--- drivers/media/pci/saa7164/saa7164-core.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/media/pci/saa7164/saa7164-core.c +1 -1
@@ -856,7 +856,7 @@ static void saa7164_get_descriptors(struct saa7164_dev *dev)saa7164_dump_hwdesc (dev);if (dev->intfdesc.bLength !=sizeof (struct tmComResInterfaceDescr )) { -printk (KERN_ERR "struct struct tmComResInterfaceDescr is mangled\n" ); +printk (KERN_ERR "struct tmComResInterfaceDescr is mangled\n" );printk (KERN_ERR "Need %x got %d\n" , dev->intfdesc.bLength, (u32 )sizeof (struct tmComResInterfaceDescr )); }else
Signature · 1 line
2.48.1