@@ -442,22 +442,22 @@ static inline u8 dw_mci_exynos_move_next_clksmpl(struct dw_mci *host)
442
442
return sample ;
443
443
}
444
444
445
- static s8 dw_mci_exynos_get_best_clksmpl (u8 candiates )
445
+ static s8 dw_mci_exynos_get_best_clksmpl (u8 candidates )
446
446
{
447
447
const u8 iter = 8 ;
448
448
u8 __c ;
449
449
s8 i , loc = -1 ;
450
450
451
451
for (i = 0 ; i < iter ; i ++ ) {
452
- __c = ror8 (candiates , i );
452
+ __c = ror8 (candidates , i );
453
453
if ((__c & 0xc7 ) == 0xc7 ) {
454
454
loc = i ;
455
455
goto out ;
456
456
}
457
457
}
458
458
459
459
for (i = 0 ; i < iter ; i ++ ) {
460
- __c = ror8 (candiates , i );
460
+ __c = ror8 (candidates , i );
461
461
if ((__c & 0x83 ) == 0x83 ) {
462
462
loc = i ;
463
463
goto out ;
@@ -466,11 +466,11 @@ static s8 dw_mci_exynos_get_best_clksmpl(u8 candiates)
466
466
467
467
/*
468
468
* If there is no cadiates value, then it needs to return -EIO.
469
- * If there are candiates values and don't find bset clk sample value,
470
- * then use a first candiates clock sample value.
469
+ * If there are candidates values and don't find bset clk sample value,
470
+ * then use a first candidates clock sample value.
471
471
*/
472
472
for (i = 0 ; i < iter ; i ++ ) {
473
- __c = ror8 (candiates , i );
473
+ __c = ror8 (candidates , i );
474
474
if ((__c & 0x1 ) == 0x1 ) {
475
475
loc = i ;
476
476
goto out ;
@@ -485,7 +485,7 @@ static int dw_mci_exynos_execute_tuning(struct dw_mci_slot *slot, u32 opcode)
485
485
struct dw_mci * host = slot -> host ;
486
486
struct dw_mci_exynos_priv_data * priv = host -> priv ;
487
487
struct mmc_host * mmc = slot -> mmc ;
488
- u8 start_smpl , smpl , candiates = 0 ;
488
+ u8 start_smpl , smpl , candidates = 0 ;
489
489
s8 found ;
490
490
int ret = 0 ;
491
491
@@ -496,18 +496,18 @@ static int dw_mci_exynos_execute_tuning(struct dw_mci_slot *slot, u32 opcode)
496
496
smpl = dw_mci_exynos_move_next_clksmpl (host );
497
497
498
498
if (!mmc_send_tuning (mmc , opcode , NULL ))
499
- candiates |= (1 << smpl );
499
+ candidates |= (1 << smpl );
500
500
501
501
} while (start_smpl != smpl );
502
502
503
- found = dw_mci_exynos_get_best_clksmpl (candiates );
503
+ found = dw_mci_exynos_get_best_clksmpl (candidates );
504
504
if (found >= 0 ) {
505
505
dw_mci_exynos_set_clksmpl (host , found );
506
506
priv -> tuned_sample = found ;
507
507
} else {
508
508
ret = - EIO ;
509
509
dev_warn (& mmc -> class_dev ,
510
- "There is no candiates value about clksmpl!\n" );
510
+ "There is no candidates value about clksmpl!\n" );
511
511
}
512
512
513
513
return ret ;
0 commit comments