Skip to content

Commit b17d13e

Browse files
Yossi LevyYossi Levy
authored andcommitted
Documnent changes and adding const to get_type method
1 parent 9590441 commit b17d13e

34 files changed

+43
-36
lines changed

components/storage/blockdevice/COMPONENT_DATAFLASH/DataFlashBlockDevice.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -527,7 +527,7 @@ bd_size_t DataFlashBlockDevice::size() const
527527
return device_size;
528528
}
529529

530-
const char *DataFlashBlockDevice::get_type()
530+
const char *DataFlashBlockDevice::get_type() const
531531
{
532532
return "DATAFLASH";
533533
}

components/storage/blockdevice/COMPONENT_DATAFLASH/DataFlashBlockDevice.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -157,7 +157,7 @@ class DataFlashBlockDevice : public mbed::BlockDevice {
157157
*
158158
* @return A string represent the BlockDevice class type.
159159
*/
160-
virtual const char *get_type();
160+
virtual const char *get_type() const;
161161

162162
private:
163163
// Master side hardware

components/storage/blockdevice/COMPONENT_FLASHIAP/FlashIAPBlockDevice.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -248,7 +248,7 @@ bd_size_t FlashIAPBlockDevice::size() const
248248
return _size;
249249
}
250250

251-
const char *FlashIAPBlockDevice::get_type()
251+
const char *FlashIAPBlockDevice::get_type() const
252252
{
253253
return "FLASHIAP";
254254
}

components/storage/blockdevice/COMPONENT_FLASHIAP/FlashIAPBlockDevice.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,7 @@ class FlashIAPBlockDevice : public mbed::BlockDevice {
125125
*
126126
* @return A string represent the BlockDevice class type.
127127
*/
128-
virtual const char *get_type();
128+
virtual const char *get_type() const;
129129

130130
private:
131131
// Device configuration

components/storage/blockdevice/COMPONENT_QSPIF/QSPIFBlockDevice.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -477,7 +477,7 @@ bd_size_t QSPIFBlockDevice::get_erase_size() const
477477
return _min_common_erase_size;
478478
}
479479

480-
const char *QSPIFBlockDevice::get_type()
480+
const char *QSPIFBlockDevice::get_type() const
481481
{
482482
return "QSPIF";
483483
}

components/storage/blockdevice/COMPONENT_QSPIF/QSPIFBlockDevice.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -215,7 +215,7 @@ class QSPIFBlockDevice : public mbed::BlockDevice {
215215
*
216216
* @return A string represent the BlockDevice class type.
217217
*/
218-
virtual const char *get_type();
218+
virtual const char *get_type() const;
219219

220220
private:
221221
// Internal functions

components/storage/blockdevice/COMPONENT_RSPIF/SPIFReducedBlockDevice.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -344,7 +344,7 @@ bd_size_t SPIFReducedBlockDevice::size() const
344344
return _size;
345345
}
346346

347-
const char *SPIFReducedBlockDevice::get_type()
347+
const char *SPIFReducedBlockDevice::get_type() const
348348
{
349349
return "SPIFR";
350350
}

components/storage/blockdevice/COMPONENT_RSPIF/SPIFReducedBlockDevice.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -159,7 +159,7 @@ class SPIFReducedBlockDevice : public mbed::BlockDevice {
159159
*
160160
* @return A string represent the BlockDevice class type.
161161
*/
162-
virtual const char *get_type();
162+
virtual const char *get_type() const;
163163

164164
private:
165165
// Master side hardware

components/storage/blockdevice/COMPONENT_SD/SDBlockDevice.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -632,7 +632,7 @@ bd_size_t SDBlockDevice::size() const
632632
return _block_size * _sectors;
633633
}
634634

635-
const char *SDBlockDevice::get_type()
635+
const char *SDBlockDevice::get_type() const
636636
{
637637
return "SD";
638638
}

components/storage/blockdevice/COMPONENT_SD/SDBlockDevice.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,7 @@ class SDBlockDevice : public mbed::BlockDevice {
120120
*
121121
* @return A string represent the BlockDevice class type.
122122
*/
123-
virtual const char *get_type();
123+
virtual const char *get_type() const;
124124

125125
private:
126126
/* Commands : Listed below are commands supported

0 commit comments

Comments
 (0)