Skip to content

Commit b5b2fbc

Browse files
committed
feat(fatfs/diskio): Remove const from PARTITION VolToPart
Closes #14148
1 parent 8a0e310 commit b5b2fbc

File tree

3 files changed

+5
-4
lines changed

3 files changed

+5
-4
lines changed

components/fatfs/diskio/diskio.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
/*-----------------------------------------------------------------------*/
22
/* Low level disk I/O module skeleton for FatFs (C)ChaN, 2016 */
3-
/* ESP-IDF port Copyright 2016 Espressif Systems (Shanghai) PTE LTD */
3+
/* ESP-IDF port Copyright 2016-2025 Espressif Systems (Shanghai) PTE LTD */
44
/*-----------------------------------------------------------------------*/
55
/* If a working storage control module is available, it should be */
66
/* attached to the FatFs via a glue function rather than modifying it. */
7-
/* This is an example of glue functions to attach various existing */
7+
/* This is an example of glue functions to attach various existing */
88
/* storage control modules to the FatFs module with a defined API. */
99
/*-----------------------------------------------------------------------*/
1010

@@ -19,7 +19,7 @@
1919
static ff_diskio_impl_t * s_impls[FF_VOLUMES] = { NULL };
2020

2121
#if FF_MULTI_PARTITION /* Multiple partition configuration */
22-
const PARTITION VolToPart[FF_VOLUMES] = {
22+
PARTITION VolToPart[FF_VOLUMES] = {
2323
{0, 0}, /* Logical drive 0 ==> Physical drive 0, auto detection */
2424
#if FF_VOLUMES > 1
2525
{1, 0}, /* Logical drive 1 ==> Physical drive 1, auto detection */

components/fatfs/src/ff.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,7 @@ typedef struct {
116116
BYTE pd; /* Physical drive number */
117117
BYTE pt; /* Partition: 0:Auto detect, 1-4:Forced partition) */
118118
} PARTITION;
119-
extern const PARTITION VolToPart[]; /* Volume - Partition mapping table */
119+
extern PARTITION VolToPart[]; /* Volume - Partition mapping table */
120120
#endif
121121

122122
#if FF_STR_VOLUME_ID

examples/peripherals/usb/device/tusb_msc/main/tusb_msc_main.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@
2222
#include "tinyusb.h"
2323
#include "tusb_msc_storage.h"
2424
#ifdef CONFIG_EXAMPLE_STORAGE_MEDIA_SDMMC
25+
#include "sdmmc_cmd.h"
2526
#include "diskio_impl.h"
2627
#include "diskio_sdmmc.h"
2728
#if CONFIG_EXAMPLE_SD_PWR_CTRL_LDO_INTERNAL_IO

0 commit comments

Comments
 (0)