Skip to content

Commit c3ed028

Browse files
Colin Ian Kingstorulf
authored andcommitted
mmc: dw_mmc: exynos: Fix spelling mistake "candiates" -> candidates
There are several spelling mistakes in variable names and in a dev_warn message. Fix these. Signed-off-by: Colin Ian King <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Ulf Hansson <[email protected]>
1 parent 88b950c commit c3ed028

File tree

1 file changed

+10
-10
lines changed

1 file changed

+10
-10
lines changed

drivers/mmc/host/dw_mmc-exynos.c

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -442,22 +442,22 @@ static inline u8 dw_mci_exynos_move_next_clksmpl(struct dw_mci *host)
442442
return sample;
443443
}
444444

445-
static s8 dw_mci_exynos_get_best_clksmpl(u8 candiates)
445+
static s8 dw_mci_exynos_get_best_clksmpl(u8 candidates)
446446
{
447447
const u8 iter = 8;
448448
u8 __c;
449449
s8 i, loc = -1;
450450

451451
for (i = 0; i < iter; i++) {
452-
__c = ror8(candiates, i);
452+
__c = ror8(candidates, i);
453453
if ((__c & 0xc7) == 0xc7) {
454454
loc = i;
455455
goto out;
456456
}
457457
}
458458

459459
for (i = 0; i < iter; i++) {
460-
__c = ror8(candiates, i);
460+
__c = ror8(candidates, i);
461461
if ((__c & 0x83) == 0x83) {
462462
loc = i;
463463
goto out;
@@ -466,11 +466,11 @@ static s8 dw_mci_exynos_get_best_clksmpl(u8 candiates)
466466

467467
/*
468468
* 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.
471471
*/
472472
for (i = 0; i < iter; i++) {
473-
__c = ror8(candiates, i);
473+
__c = ror8(candidates, i);
474474
if ((__c & 0x1) == 0x1) {
475475
loc = i;
476476
goto out;
@@ -485,7 +485,7 @@ static int dw_mci_exynos_execute_tuning(struct dw_mci_slot *slot, u32 opcode)
485485
struct dw_mci *host = slot->host;
486486
struct dw_mci_exynos_priv_data *priv = host->priv;
487487
struct mmc_host *mmc = slot->mmc;
488-
u8 start_smpl, smpl, candiates = 0;
488+
u8 start_smpl, smpl, candidates = 0;
489489
s8 found;
490490
int ret = 0;
491491

@@ -496,18 +496,18 @@ static int dw_mci_exynos_execute_tuning(struct dw_mci_slot *slot, u32 opcode)
496496
smpl = dw_mci_exynos_move_next_clksmpl(host);
497497

498498
if (!mmc_send_tuning(mmc, opcode, NULL))
499-
candiates |= (1 << smpl);
499+
candidates |= (1 << smpl);
500500

501501
} while (start_smpl != smpl);
502502

503-
found = dw_mci_exynos_get_best_clksmpl(candiates);
503+
found = dw_mci_exynos_get_best_clksmpl(candidates);
504504
if (found >= 0) {
505505
dw_mci_exynos_set_clksmpl(host, found);
506506
priv->tuned_sample = found;
507507
} else {
508508
ret = -EIO;
509509
dev_warn(&mmc->class_dev,
510-
"There is no candiates value about clksmpl!\n");
510+
"There is no candidates value about clksmpl!\n");
511511
}
512512

513513
return ret;

0 commit comments

Comments
 (0)