diff options
author | Ahmad Fatoum <a.fatoum@pengutronix.de> | 2023-04-18 11:30:37 +0200 |
---|---|---|
committer | Sascha Hauer <s.hauer@pengutronix.de> | 2023-04-21 08:29:45 +0200 |
commit | e2d068a89d3f7027ba14d9252acd002d90ac267b (patch) | |
tree | a9e01519c9d53177aec5703df71987d4c3ce1606 /drivers | |
parent | 3522c6f7472fa894b6c52e083bd70fb98b1711c1 (diff) | |
download | barebox-e2d068a89d3f7027ba14d9252acd002d90ac267b.tar.gz barebox-e2d068a89d3f7027ba14d9252acd002d90ac267b.tar.xz |
mci: introduce new dedicated enum mmc_bus_width type
To make it clearer that a bus width of 8 is not equal to integer 8,
let's give it a dedicated type. No functional change.
Signed-off-by: Ahmad Fatoum <a.fatoum@pengutronix.de>
Link: https://lore.barebox.org/20230418093040.1865982-2-a.fatoum@pengutronix.de
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/mci/mci-core.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/mci/mci-core.c b/drivers/mci/mci-core.c index f647cae820..2abed00117 100644 --- a/drivers/mci/mci-core.c +++ b/drivers/mci/mci-core.c @@ -864,7 +864,7 @@ static void mci_set_clock(struct mci *mci, unsigned clock) * @param mci MCI instance * @param width New interface bit width (1, 4 or 8) */ -static void mci_set_bus_width(struct mci *mci, unsigned width) +static void mci_set_bus_width(struct mci *mci, enum mci_bus_width width) { struct mci_host *host = mci->host; @@ -1055,7 +1055,7 @@ static void mci_extract_card_dsr_imp_from_csd(struct mci *mci) mci->dsr_imp = UNSTUFF_BITS(mci->csd, 76, 1); } -static int mmc_compare_ext_csds(struct mci *mci, unsigned bus_width) +static int mmc_compare_ext_csds(struct mci *mci, enum mci_bus_width bus_width) { u8 *bw_ext_csd; int err; @@ -1176,7 +1176,7 @@ static int mci_startup_mmc(struct mci *mci) EXT_CSD_BUS_WIDTH_4, EXT_CSD_BUS_WIDTH_8, }; - static unsigned bus_widths[] = { + static enum mci_bus_width bus_widths[] = { MMC_BUS_WIDTH_4, MMC_BUS_WIDTH_8, }; |