From 68eec056a981e645e11d20e7d68f9897f7147f54 Mon Sep 17 00:00:00 2001 From: TuxSH Date: Sun, 6 May 2018 15:22:35 +0200 Subject: [PATCH] Fix const-correctness issue in sdmmc.h --- fusee/fusee-primary/src/sdmmc.h | 6 +++--- fusee/fusee-secondary/src/sdmmc.h | 4 ++-- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/fusee/fusee-primary/src/sdmmc.h b/fusee/fusee-primary/src/sdmmc.h index 6757190ba..7f0f483f5 100644 --- a/fusee/fusee-primary/src/sdmmc.h +++ b/fusee/fusee-primary/src/sdmmc.h @@ -1,6 +1,6 @@ /** * Fusée SD/MMC driver for the Switch - * ~ktemkin + * ~ktemkin */ #ifndef __FUSEE_SDMMC_H__ @@ -130,7 +130,7 @@ struct mmc { enum sdmmc_controller controller; /* Controller properties */ - char *name; + const char *name; bool use_dma; unsigned int timeout; enum tegra_named_gpio card_detect_gpio; @@ -145,7 +145,7 @@ struct mmc { /* Per-card-type operations */ int (*card_init)(struct mmc *mmc); int (*establish_relative_address)(struct mmc *mmc); - int (*switch_mode)(struct mmc *mmc, enum sdmmc_switch_access_mode mode, + int (*switch_mode)(struct mmc *mmc, enum sdmmc_switch_access_mode mode, enum sdmmc_switch_field field, uint16_t value, uint32_t timeout); /* Card properties */ diff --git a/fusee/fusee-secondary/src/sdmmc.h b/fusee/fusee-secondary/src/sdmmc.h index d2f979d8c..ac6224c02 100644 --- a/fusee/fusee-secondary/src/sdmmc.h +++ b/fusee/fusee-secondary/src/sdmmc.h @@ -1,6 +1,6 @@ /** * Fusée SD/MMC driver for the Switch - * ~ktemkin + * ~ktemkin */ #ifndef __FUSEE_SDMMC_H__ @@ -79,7 +79,7 @@ struct mmc { enum sdmmc_controller controller; /* Controller properties */ - char *name; + const char *name; unsigned int timeout; enum sdmmc_card_type card_type; bool use_dma;