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

EDAC: Fix typos in comments

Fix the following typos:

'Alocate' ==> 'Allocate',
'specifed' ==> 'specified',
'Technlogy' ==> 'Technology',
'Brnach' ==> 'Branch',
'branchs' ==> 'branches'.

Signed-off-by: Yan Zhen <yanzhen@vivo.com>
Signed-off-by: Borislav Petkov (AMD) <bp@alien8.de>
Link: https://lore.kernel.org/r/20240930074023.618110-1-yanzhen@vivo.com

authored by

Yan Zhen and committed by
Borislav Petkov (AMD)
586e62fe fac04efc

+8 -8
+1 -1
drivers/edac/edac_mc.c
··· 214 214 unsigned int row, chn; 215 215 216 216 /* 217 - * Alocate and fill the csrow/channels structs 217 + * Allocate and fill the csrow/channels structs 218 218 */ 219 219 mci->csrows = kcalloc(tot_csrows, sizeof(*mci->csrows), GFP_KERNEL); 220 220 if (!mci->csrows)
+3 -3
drivers/edac/edac_mc_sysfs.c
··· 422 422 return nr_pages; 423 423 } 424 424 425 - /* Create a CSROW object under specifed edac_mc_device */ 425 + /* Create a CSROW object under specified edac_mc_device */ 426 426 static int edac_create_csrow_object(struct mem_ctl_info *mci, 427 427 struct csrow_info *csrow, int index) 428 428 { ··· 449 449 return 0; 450 450 } 451 451 452 - /* Create a CSROW object under specifed edac_mc_device */ 452 + /* Create a CSROW object under specified edac_mc_device */ 453 453 static int edac_create_csrow_objects(struct mem_ctl_info *mci) 454 454 { 455 455 int err, i; ··· 636 636 */ 637 637 } 638 638 639 - /* Create a DIMM object under specifed memory controller device */ 639 + /* Create a DIMM object under specified memory controller device */ 640 640 static int edac_create_dimm_object(struct mem_ctl_info *mci, 641 641 struct dimm_info *dimm) 642 642 {
+4 -4
drivers/edac/i5000_edac.c
··· 338 338 339 339 u16 mir0, mir1, mir2; 340 340 341 - u16 b0_mtr[NUM_MTRS]; /* Memory Technlogy Reg */ 341 + u16 b0_mtr[NUM_MTRS]; /* Memory Technology Reg */ 342 342 u16 b0_ambpresent0; /* Branch 0, Channel 0 */ 343 - u16 b0_ambpresent1; /* Brnach 0, Channel 1 */ 343 + u16 b0_ambpresent1; /* Branch 0, Channel 1 */ 344 344 345 - u16 b1_mtr[NUM_MTRS]; /* Memory Technlogy Reg */ 345 + u16 b1_mtr[NUM_MTRS]; /* Memory Technology Reg */ 346 346 u16 b1_ambpresent0; /* Branch 1, Channel 8 */ 347 347 u16 b1_ambpresent1; /* Branch 1, Channel 1 */ 348 348 ··· 1210 1210 &pvt->b0_ambpresent1); 1211 1211 edac_dbg(2, "\t\tAMB-Branch 0-present1 0x%x:\n", pvt->b0_ambpresent1); 1212 1212 1213 - /* Only if we have 2 branchs (4 channels) */ 1213 + /* Only if we have 2 branches (4 channels) */ 1214 1214 if (pvt->maxch < CHANNELS_PER_BRANCH) { 1215 1215 pvt->b1_ambpresent0 = 0; 1216 1216 pvt->b1_ambpresent1 = 0;