@@ -276,7 +276,7 @@ FileSystem *_get_filesystem_default(const char *mount)
276
276
#endif
277
277
}
278
278
279
- BlockDevice *_get_blockdevice_FLASHIAP (bd_addr_t & start_address, bd_size_t & size)
279
+ BlockDevice *_get_blockdevice_FLASHIAP (bd_addr_t start_address, bd_size_t size)
280
280
{
281
281
#if COMPONENT_FLASHIAP
282
282
int ret = TDBStore::get_flash_bounds_from_config (&start_address, &size);
@@ -292,7 +292,7 @@ BlockDevice *_get_blockdevice_FLASHIAP(bd_addr_t &start_address, bd_size_t &size
292
292
#endif
293
293
}
294
294
295
- BlockDevice *_get_blockdevice_SPIF (bd_addr_t & start_address, bd_size_t & size)
295
+ BlockDevice *_get_blockdevice_SPIF (bd_addr_t start_address, bd_size_t size)
296
296
{
297
297
#if COMPONENT_SPIF
298
298
@@ -333,7 +333,7 @@ BlockDevice *_get_blockdevice_SPIF(bd_addr_t &start_address, bd_size_t &size)
333
333
#endif
334
334
}
335
335
336
- BlockDevice *_get_blockdevice_QSPIF (bd_addr_t & start_address, bd_size_t & size)
336
+ BlockDevice *_get_blockdevice_QSPIF (bd_addr_t start_address, bd_size_t size)
337
337
{
338
338
#if COMPONENT_QSPIF
339
339
@@ -377,7 +377,7 @@ BlockDevice *_get_blockdevice_QSPIF(bd_addr_t &start_address, bd_size_t &size)
377
377
#endif
378
378
}
379
379
380
- BlockDevice *_get_blockdevice_DATAFLASH (bd_addr_t & start_address, bd_size_t & size)
380
+ BlockDevice *_get_blockdevice_DATAFLASH (bd_addr_t start_address, bd_size_t size)
381
381
{
382
382
#if COMPONENT_DATAFLASH
383
383
@@ -418,7 +418,7 @@ BlockDevice *_get_blockdevice_DATAFLASH(bd_addr_t &start_address, bd_size_t &siz
418
418
#endif
419
419
}
420
420
421
- BlockDevice *_get_blockdevice_SD (bd_addr_t & start_address, bd_size_t & size)
421
+ BlockDevice *_get_blockdevice_SD (bd_addr_t start_address, bd_size_t size)
422
422
{
423
423
#if COMPONENT_SD
424
424
@@ -487,7 +487,7 @@ BlockDevice *_get_blockdevice_SD(bd_addr_t &start_address, bd_size_t &size)
487
487
#endif
488
488
}
489
489
490
- BlockDevice *_get_blockdevice_default (bd_addr_t & start_address, bd_size_t & size)
490
+ BlockDevice *_get_blockdevice_default (bd_addr_t start_address, bd_size_t size)
491
491
{
492
492
#if COMPONENT_QSPIF
493
493
return _get_blockdevice_QSPIF (start_address, size);
@@ -505,7 +505,7 @@ BlockDevice *_get_blockdevice_default(bd_addr_t &start_address, bd_size_t &size)
505
505
506
506
/* Same logic as _get_blockdevice_SD() except block device replaced with from
507
507
* get_other_blockdevice() */
508
- BlockDevice *_get_blockdevice_other (bd_addr_t & start_address, bd_size_t & size)
508
+ BlockDevice *_get_blockdevice_other (bd_addr_t start_address, bd_size_t size)
509
509
{
510
510
bd_addr_t aligned_end_address;
511
511
bd_addr_t aligned_start_address;
@@ -565,21 +565,21 @@ MBED_WEAK BlockDevice *get_other_blockdevice()
565
565
return NULL ;
566
566
}
567
567
568
- int _create_internal_tdb (BlockDevice **internal_bd, KVStore **internal_tdb, bd_size_t * size, bd_addr_t * start_address)
568
+ int _create_internal_tdb (BlockDevice **internal_bd, KVStore **internal_tdb, bd_size_t size, bd_addr_t start_address)
569
569
{
570
570
int ret;
571
571
572
572
// Get the default address and size for the TDBStore
573
- if (* size == 0 && * start_address == 0 ) {
573
+ if (size == 0 && start_address == 0 ) {
574
574
// Calculate the block device size and start address in case default values are used.
575
- ret = TDBStore::get_default_flash_addresses (start_address, size);
575
+ ret = TDBStore::get_default_flash_addresses (& start_address, & size);
576
576
if (ret != MBED_SUCCESS) {
577
577
return MBED_ERROR_FAILED_OPERATION;
578
578
}
579
579
}
580
580
581
581
// Create internal FLASHIAP block device
582
- *internal_bd = GET_BLOCKDEVICE (INTERNAL_BLOCKDEVICE_NAME, * start_address, * size);
582
+ *internal_bd = GET_BLOCKDEVICE (INTERNAL_BLOCKDEVICE_NAME, start_address, size);
583
583
if (*internal_bd == NULL ) {
584
584
tr_error (" KV Config: Fail to get internal BlockDevice." );
585
585
return MBED_ERROR_FAILED_OPERATION ;
@@ -624,7 +624,7 @@ int _storage_config_TDB_INTERNAL()
624
624
bd_size_t internal_size = MBED_CONF_STORAGE_TDB_INTERNAL_INTERNAL_SIZE;
625
625
bd_addr_t internal_start_address = MBED_CONF_STORAGE_TDB_INTERNAL_INTERNAL_BASE_ADDRESS;
626
626
627
- int ret = _create_internal_tdb (&kvstore_config.internal_bd , &kvstore_config.internal_store , & internal_size, & internal_start_address);
627
+ int ret = _create_internal_tdb (&kvstore_config.internal_bd , &kvstore_config.internal_store , internal_size, internal_start_address);
628
628
if (MBED_SUCCESS != ret) {
629
629
tr_error (" KV Config: Fail to create internal TDBStore" );
630
630
return ret;
@@ -669,7 +669,7 @@ int _storage_config_TDB_EXTERNAL()
669
669
bd_size_t internal_rbp_size = MBED_CONF_STORAGE_TDB_EXTERNAL_RBP_INTERNAL_SIZE;
670
670
bd_addr_t internal_start_address = MBED_CONF_STORAGE_TDB_EXTERNAL_INTERNAL_BASE_ADDRESS;
671
671
672
- int ret = _create_internal_tdb (&kvstore_config.internal_bd , &kvstore_config.internal_store , & internal_rbp_size, & internal_start_address);
672
+ int ret = _create_internal_tdb (&kvstore_config.internal_bd , &kvstore_config.internal_store , internal_rbp_size, internal_start_address);
673
673
if (MBED_SUCCESS != ret) {
674
674
tr_error (" KV Config: Fail to create internal TDBStore" );
675
675
return ret;
@@ -813,7 +813,7 @@ int _storage_config_FILESYSTEM()
813
813
bd_size_t internal_rbp_size = MBED_CONF_STORAGE_FILESYSTEM_RBP_INTERNAL_SIZE;
814
814
bd_addr_t internal_start_address = MBED_CONF_STORAGE_FILESYSTEM_INTERNAL_BASE_ADDRESS;
815
815
816
- int ret = _create_internal_tdb (&kvstore_config.internal_bd , &kvstore_config.internal_store , & internal_rbp_size, & internal_start_address);
816
+ int ret = _create_internal_tdb (&kvstore_config.internal_bd , &kvstore_config.internal_store , internal_rbp_size, internal_start_address);
817
817
if (MBED_SUCCESS != ret) {
818
818
tr_error (" KV Config: Fail to create internal TDBStore" );
819
819
return ret;
0 commit comments