From 5a83c77b8818e64dc6943a46e24e64203dec4be1 Mon Sep 17 00:00:00 2001 From: Yossi Levy Date: Wed, 19 Dec 2018 15:12:27 +0200 Subject: [PATCH] astyle fix --- .../blockdevice/COMPONENT_DATAFLASH/DataFlashBlockDevice.cpp | 2 +- .../blockdevice/COMPONENT_DATAFLASH/DataFlashBlockDevice.h | 2 +- .../blockdevice/COMPONENT_FLASHIAP/FlashIAPBlockDevice.cpp | 2 +- .../blockdevice/COMPONENT_FLASHIAP/FlashIAPBlockDevice.h | 2 +- .../storage/blockdevice/COMPONENT_QSPIF/QSPIFBlockDevice.cpp | 2 +- .../storage/blockdevice/COMPONENT_QSPIF/QSPIFBlockDevice.h | 2 +- .../blockdevice/COMPONENT_RSPIF/SPIFReducedBlockDevice.cpp | 2 +- .../blockdevice/COMPONENT_RSPIF/SPIFReducedBlockDevice.h | 2 +- components/storage/blockdevice/COMPONENT_SD/SDBlockDevice.cpp | 2 +- components/storage/blockdevice/COMPONENT_SD/SDBlockDevice.h | 2 +- .../storage/blockdevice/COMPONENT_SPIF/SPIFBlockDevice.cpp | 2 +- components/storage/blockdevice/COMPONENT_SPIF/SPIFBlockDevice.h | 2 +- features/storage/blockdevice/BlockDevice.h | 2 +- features/storage/blockdevice/BufferedBlockDevice.cpp | 2 +- features/storage/blockdevice/BufferedBlockDevice.h | 2 +- features/storage/blockdevice/ChainingBlockDevice.cpp | 2 +- features/storage/blockdevice/ChainingBlockDevice.h | 2 +- features/storage/blockdevice/ExhaustibleBlockDevice.cpp | 2 +- features/storage/blockdevice/ExhaustibleBlockDevice.h | 2 +- features/storage/blockdevice/FlashSimBlockDevice.cpp | 2 +- features/storage/blockdevice/FlashSimBlockDevice.h | 2 +- features/storage/blockdevice/HeapBlockDevice.cpp | 2 +- features/storage/blockdevice/HeapBlockDevice.h | 2 +- features/storage/blockdevice/MBRBlockDevice.cpp | 2 +- features/storage/blockdevice/MBRBlockDevice.h | 2 +- features/storage/blockdevice/ObservingBlockDevice.cpp | 2 +- features/storage/blockdevice/ObservingBlockDevice.h | 2 +- features/storage/blockdevice/ProfilingBlockDevice.cpp | 2 +- features/storage/blockdevice/ProfilingBlockDevice.h | 2 +- features/storage/blockdevice/ReadOnlyBlockDevice.cpp | 2 +- features/storage/blockdevice/ReadOnlyBlockDevice.h | 2 +- features/storage/blockdevice/SlicingBlockDevice.cpp | 2 +- features/storage/blockdevice/SlicingBlockDevice.h | 2 +- 33 files changed, 33 insertions(+), 33 deletions(-) diff --git a/components/storage/blockdevice/COMPONENT_DATAFLASH/DataFlashBlockDevice.cpp b/components/storage/blockdevice/COMPONENT_DATAFLASH/DataFlashBlockDevice.cpp index fb397bacc8..ddf3153486 100644 --- a/components/storage/blockdevice/COMPONENT_DATAFLASH/DataFlashBlockDevice.cpp +++ b/components/storage/blockdevice/COMPONENT_DATAFLASH/DataFlashBlockDevice.cpp @@ -527,7 +527,7 @@ bd_size_t DataFlashBlockDevice::size() const return device_size; } -const char * DataFlashBlockDevice::get_type() +const char *DataFlashBlockDevice::get_type() { return "DATAFLASH"; } diff --git a/components/storage/blockdevice/COMPONENT_DATAFLASH/DataFlashBlockDevice.h b/components/storage/blockdevice/COMPONENT_DATAFLASH/DataFlashBlockDevice.h index dc76178618..def2770891 100644 --- a/components/storage/blockdevice/COMPONENT_DATAFLASH/DataFlashBlockDevice.h +++ b/components/storage/blockdevice/COMPONENT_DATAFLASH/DataFlashBlockDevice.h @@ -157,7 +157,7 @@ public: * * @return A string represent the BlockDevice class type. */ - virtual const char * get_type(); + virtual const char *get_type(); private: // Master side hardware diff --git a/components/storage/blockdevice/COMPONENT_FLASHIAP/FlashIAPBlockDevice.cpp b/components/storage/blockdevice/COMPONENT_FLASHIAP/FlashIAPBlockDevice.cpp index 5692f3ec1d..ba05aa0d95 100644 --- a/components/storage/blockdevice/COMPONENT_FLASHIAP/FlashIAPBlockDevice.cpp +++ b/components/storage/blockdevice/COMPONENT_FLASHIAP/FlashIAPBlockDevice.cpp @@ -247,7 +247,7 @@ bd_size_t FlashIAPBlockDevice::size() const return _size; } -const char * FlashIAPBlockDevice::get_type() +const char *FlashIAPBlockDevice::get_type() { return "FLASHIAP"; } diff --git a/components/storage/blockdevice/COMPONENT_FLASHIAP/FlashIAPBlockDevice.h b/components/storage/blockdevice/COMPONENT_FLASHIAP/FlashIAPBlockDevice.h index ce79f3551a..66feb0c0bd 100644 --- a/components/storage/blockdevice/COMPONENT_FLASHIAP/FlashIAPBlockDevice.h +++ b/components/storage/blockdevice/COMPONENT_FLASHIAP/FlashIAPBlockDevice.h @@ -125,7 +125,7 @@ public: * * @return A string represent the BlockDevice class type. */ - virtual const char * get_type(); + virtual const char *get_type(); private: // Device configuration diff --git a/components/storage/blockdevice/COMPONENT_QSPIF/QSPIFBlockDevice.cpp b/components/storage/blockdevice/COMPONENT_QSPIF/QSPIFBlockDevice.cpp index 04cf47cdd2..30ada3b46d 100644 --- a/components/storage/blockdevice/COMPONENT_QSPIF/QSPIFBlockDevice.cpp +++ b/components/storage/blockdevice/COMPONENT_QSPIF/QSPIFBlockDevice.cpp @@ -477,7 +477,7 @@ bd_size_t QSPIFBlockDevice::get_erase_size() const return _min_common_erase_size; } -const char * QSPIFBlockDevice::get_type() +const char *QSPIFBlockDevice::get_type() { return "QSPIF"; } diff --git a/components/storage/blockdevice/COMPONENT_QSPIF/QSPIFBlockDevice.h b/components/storage/blockdevice/COMPONENT_QSPIF/QSPIFBlockDevice.h index 5ebd743298..274a8f9480 100644 --- a/components/storage/blockdevice/COMPONENT_QSPIF/QSPIFBlockDevice.h +++ b/components/storage/blockdevice/COMPONENT_QSPIF/QSPIFBlockDevice.h @@ -215,7 +215,7 @@ public: * * @return A string represent the BlockDevice class type. */ - virtual const char * get_type(); + virtual const char *get_type(); private: // Internal functions diff --git a/components/storage/blockdevice/COMPONENT_RSPIF/SPIFReducedBlockDevice.cpp b/components/storage/blockdevice/COMPONENT_RSPIF/SPIFReducedBlockDevice.cpp index 88c3f8198f..319676e42f 100644 --- a/components/storage/blockdevice/COMPONENT_RSPIF/SPIFReducedBlockDevice.cpp +++ b/components/storage/blockdevice/COMPONENT_RSPIF/SPIFReducedBlockDevice.cpp @@ -344,7 +344,7 @@ bd_size_t SPIFReducedBlockDevice::size() const return _size; } -const char * SPIFReducedBlockDevice::get_type() +const char *SPIFReducedBlockDevice::get_type() { return "SPIFR"; } diff --git a/components/storage/blockdevice/COMPONENT_RSPIF/SPIFReducedBlockDevice.h b/components/storage/blockdevice/COMPONENT_RSPIF/SPIFReducedBlockDevice.h index a381abf74e..98597c1a6e 100644 --- a/components/storage/blockdevice/COMPONENT_RSPIF/SPIFReducedBlockDevice.h +++ b/components/storage/blockdevice/COMPONENT_RSPIF/SPIFReducedBlockDevice.h @@ -159,7 +159,7 @@ public: * * @return A string represent the BlockDevice class type. */ - virtual const char * get_type(); + virtual const char *get_type(); private: // Master side hardware diff --git a/components/storage/blockdevice/COMPONENT_SD/SDBlockDevice.cpp b/components/storage/blockdevice/COMPONENT_SD/SDBlockDevice.cpp index 1e542273d1..56cedac345 100644 --- a/components/storage/blockdevice/COMPONENT_SD/SDBlockDevice.cpp +++ b/components/storage/blockdevice/COMPONENT_SD/SDBlockDevice.cpp @@ -632,7 +632,7 @@ bd_size_t SDBlockDevice::size() const return _block_size * _sectors; } -const char * SDBlockDevice::get_type() +const char *SDBlockDevice::get_type() { return "SD"; } diff --git a/components/storage/blockdevice/COMPONENT_SD/SDBlockDevice.h b/components/storage/blockdevice/COMPONENT_SD/SDBlockDevice.h index 0e48de00a2..b6c25eec42 100644 --- a/components/storage/blockdevice/COMPONENT_SD/SDBlockDevice.h +++ b/components/storage/blockdevice/COMPONENT_SD/SDBlockDevice.h @@ -120,7 +120,7 @@ public: * * @return A string represent the BlockDevice class type. */ - virtual const char * get_type(); + virtual const char *get_type(); private: /* Commands : Listed below are commands supported diff --git a/components/storage/blockdevice/COMPONENT_SPIF/SPIFBlockDevice.cpp b/components/storage/blockdevice/COMPONENT_SPIF/SPIFBlockDevice.cpp index 53b27855de..63f35dd2d9 100644 --- a/components/storage/blockdevice/COMPONENT_SPIF/SPIFBlockDevice.cpp +++ b/components/storage/blockdevice/COMPONENT_SPIF/SPIFBlockDevice.cpp @@ -472,7 +472,7 @@ int SPIFBlockDevice::get_erase_value() const return 0xFF; } -const char * SPIFBlockDevice::get_type() +const char *SPIFBlockDevice::get_type() { return "SPIF"; } diff --git a/components/storage/blockdevice/COMPONENT_SPIF/SPIFBlockDevice.h b/components/storage/blockdevice/COMPONENT_SPIF/SPIFBlockDevice.h index 5617ae4419..c455ef7b8b 100644 --- a/components/storage/blockdevice/COMPONENT_SPIF/SPIFBlockDevice.h +++ b/components/storage/blockdevice/COMPONENT_SPIF/SPIFBlockDevice.h @@ -193,7 +193,7 @@ public: * * @return A string represent the BlockDevice class type. */ - virtual const char * get_type(); + virtual const char *get_type(); private: diff --git a/features/storage/blockdevice/BlockDevice.h b/features/storage/blockdevice/BlockDevice.h index 2929f2ca5e..dd83e64c8f 100644 --- a/features/storage/blockdevice/BlockDevice.h +++ b/features/storage/blockdevice/BlockDevice.h @@ -238,7 +238,7 @@ public: * * @return A string represent the BlockDevice class type. */ - virtual const char * get_type() = 0; + virtual const char *get_type() = 0; }; } // namespace mbed diff --git a/features/storage/blockdevice/BufferedBlockDevice.cpp b/features/storage/blockdevice/BufferedBlockDevice.cpp index 87ad7f6eb6..967ff56495 100644 --- a/features/storage/blockdevice/BufferedBlockDevice.cpp +++ b/features/storage/blockdevice/BufferedBlockDevice.cpp @@ -330,7 +330,7 @@ bd_size_t BufferedBlockDevice::size() const return _bd_size; } -const char * BufferedBlockDevice::get_type() +const char *BufferedBlockDevice::get_type() { if (_bd != NULL) { return _bd->get_type(); diff --git a/features/storage/blockdevice/BufferedBlockDevice.h b/features/storage/blockdevice/BufferedBlockDevice.h index 06c26e14ed..f3ea7ebbdf 100644 --- a/features/storage/blockdevice/BufferedBlockDevice.h +++ b/features/storage/blockdevice/BufferedBlockDevice.h @@ -156,7 +156,7 @@ public: * * @return A string represent the BlockDevice class type. */ - virtual const char * get_type(); + virtual const char *get_type(); protected: BlockDevice *_bd; diff --git a/features/storage/blockdevice/ChainingBlockDevice.cpp b/features/storage/blockdevice/ChainingBlockDevice.cpp index 38af4afa82..05bfcaecf7 100644 --- a/features/storage/blockdevice/ChainingBlockDevice.cpp +++ b/features/storage/blockdevice/ChainingBlockDevice.cpp @@ -283,7 +283,7 @@ bd_size_t ChainingBlockDevice::size() const return _size; } -const char * ChainingBlockDevice::get_type() +const char *ChainingBlockDevice::get_type() { return "CHAINING"; } diff --git a/features/storage/blockdevice/ChainingBlockDevice.h b/features/storage/blockdevice/ChainingBlockDevice.h index c76b931761..b85322f307 100644 --- a/features/storage/blockdevice/ChainingBlockDevice.h +++ b/features/storage/blockdevice/ChainingBlockDevice.h @@ -176,7 +176,7 @@ public: * * @return A string represent the BlockDevice class type. */ - virtual const char * get_type(); + virtual const char *get_type(); protected: BlockDevice **_bds; diff --git a/features/storage/blockdevice/ExhaustibleBlockDevice.cpp b/features/storage/blockdevice/ExhaustibleBlockDevice.cpp index 60cb15d2f4..093da6b4d1 100644 --- a/features/storage/blockdevice/ExhaustibleBlockDevice.cpp +++ b/features/storage/blockdevice/ExhaustibleBlockDevice.cpp @@ -194,7 +194,7 @@ bd_size_t ExhaustibleBlockDevice::size() const return _bd->size(); } -const char * ExhaustibleBlockDevice::get_type() +const char *ExhaustibleBlockDevice::get_type() { if (_bd != NULL) { return _bd->get_type(); diff --git a/features/storage/blockdevice/ExhaustibleBlockDevice.h b/features/storage/blockdevice/ExhaustibleBlockDevice.h index 21cd9bfb92..c204d1a78f 100644 --- a/features/storage/blockdevice/ExhaustibleBlockDevice.h +++ b/features/storage/blockdevice/ExhaustibleBlockDevice.h @@ -158,7 +158,7 @@ public: * * @return A string represent the BlockDevice class type. */ - virtual const char * get_type(); + virtual const char *get_type(); private: BlockDevice *_bd; diff --git a/features/storage/blockdevice/FlashSimBlockDevice.cpp b/features/storage/blockdevice/FlashSimBlockDevice.cpp index 930691ae42..1f349e7655 100644 --- a/features/storage/blockdevice/FlashSimBlockDevice.cpp +++ b/features/storage/blockdevice/FlashSimBlockDevice.cpp @@ -212,7 +212,7 @@ int FlashSimBlockDevice::get_erase_value() const return _erase_value; } -const char * FlashSimBlockDevice::get_type() +const char *FlashSimBlockDevice::get_type() { if (_bd != NULL) { return _bd->get_type(); diff --git a/features/storage/blockdevice/FlashSimBlockDevice.h b/features/storage/blockdevice/FlashSimBlockDevice.h index 5ba5ebbb19..20ec9c1286 100644 --- a/features/storage/blockdevice/FlashSimBlockDevice.h +++ b/features/storage/blockdevice/FlashSimBlockDevice.h @@ -140,7 +140,7 @@ public: * * @return A string represent the BlockDevice class type. */ - virtual const char * get_type(); + virtual const char *get_type(); private: uint8_t _erase_value; diff --git a/features/storage/blockdevice/HeapBlockDevice.cpp b/features/storage/blockdevice/HeapBlockDevice.cpp index c54971b9f6..2e7d5e5d54 100644 --- a/features/storage/blockdevice/HeapBlockDevice.cpp +++ b/features/storage/blockdevice/HeapBlockDevice.cpp @@ -183,7 +183,7 @@ int HeapBlockDevice::erase(bd_addr_t addr, bd_size_t size) return 0; } -const char * HeapBlockDevice::get_type() +const char *HeapBlockDevice::get_type() { return "HEAP"; } diff --git a/features/storage/blockdevice/HeapBlockDevice.h b/features/storage/blockdevice/HeapBlockDevice.h index 7f7287b47a..26fc77911a 100644 --- a/features/storage/blockdevice/HeapBlockDevice.h +++ b/features/storage/blockdevice/HeapBlockDevice.h @@ -154,7 +154,7 @@ public: * * @return A string represent the BlockDevice class type. */ - virtual const char * get_type(); + virtual const char *get_type(); private: bd_size_t _read_size; diff --git a/features/storage/blockdevice/MBRBlockDevice.cpp b/features/storage/blockdevice/MBRBlockDevice.cpp index d007ba3f00..cbc7eb1141 100644 --- a/features/storage/blockdevice/MBRBlockDevice.cpp +++ b/features/storage/blockdevice/MBRBlockDevice.cpp @@ -423,7 +423,7 @@ int MBRBlockDevice::get_partition_number() const return _part; } -const char * MBRBlockDevice::get_type() +const char *MBRBlockDevice::get_type() { if (_bd != NULL) { return _bd->get_type(); diff --git a/features/storage/blockdevice/MBRBlockDevice.h b/features/storage/blockdevice/MBRBlockDevice.h index 2b88ae140d..d1a957c525 100644 --- a/features/storage/blockdevice/MBRBlockDevice.h +++ b/features/storage/blockdevice/MBRBlockDevice.h @@ -253,7 +253,7 @@ public: * * @return A string represent the BlockDevice class type. */ - virtual const char * get_type(); + virtual const char *get_type(); protected: BlockDevice *_bd; diff --git a/features/storage/blockdevice/ObservingBlockDevice.cpp b/features/storage/blockdevice/ObservingBlockDevice.cpp index 2da0ab8c65..728afd9e61 100644 --- a/features/storage/blockdevice/ObservingBlockDevice.cpp +++ b/features/storage/blockdevice/ObservingBlockDevice.cpp @@ -111,7 +111,7 @@ bd_size_t ObservingBlockDevice::size() const return _bd->size(); } -const char * ObservingBlockDevice::get_type() +const char *ObservingBlockDevice::get_type() { if (_bd != NULL) { return _bd->get_type(); diff --git a/features/storage/blockdevice/ObservingBlockDevice.h b/features/storage/blockdevice/ObservingBlockDevice.h index ab13d4981a..8173f49d89 100644 --- a/features/storage/blockdevice/ObservingBlockDevice.h +++ b/features/storage/blockdevice/ObservingBlockDevice.h @@ -144,7 +144,7 @@ public: * * @return A string represent the BlockDevice class type. */ - virtual const char * get_type(); + virtual const char *get_type(); private: BlockDevice *_bd; diff --git a/features/storage/blockdevice/ProfilingBlockDevice.cpp b/features/storage/blockdevice/ProfilingBlockDevice.cpp index 9d967f103b..7be719489d 100644 --- a/features/storage/blockdevice/ProfilingBlockDevice.cpp +++ b/features/storage/blockdevice/ProfilingBlockDevice.cpp @@ -121,7 +121,7 @@ bd_size_t ProfilingBlockDevice::get_erase_count() const return _erase_count; } -const char * ProfilingBlockDevice::get_type() +const char *ProfilingBlockDevice::get_type() { if (_bd != NULL) { return _bd->get_type(); diff --git a/features/storage/blockdevice/ProfilingBlockDevice.h b/features/storage/blockdevice/ProfilingBlockDevice.h index a5978a0e0e..2345e0658e 100644 --- a/features/storage/blockdevice/ProfilingBlockDevice.h +++ b/features/storage/blockdevice/ProfilingBlockDevice.h @@ -183,7 +183,7 @@ public: * * @return A string represent the BlockDevice class type. */ - virtual const char * get_type(); + virtual const char *get_type(); private: BlockDevice *_bd; diff --git a/features/storage/blockdevice/ReadOnlyBlockDevice.cpp b/features/storage/blockdevice/ReadOnlyBlockDevice.cpp index 33a46cfd80..2ad374805e 100644 --- a/features/storage/blockdevice/ReadOnlyBlockDevice.cpp +++ b/features/storage/blockdevice/ReadOnlyBlockDevice.cpp @@ -101,7 +101,7 @@ bd_size_t ReadOnlyBlockDevice::size() const return _bd->size(); } -const char * ReadOnlyBlockDevice::get_type() +const char *ReadOnlyBlockDevice::get_type() { if (_bd != NULL) { return _bd->get_type(); diff --git a/features/storage/blockdevice/ReadOnlyBlockDevice.h b/features/storage/blockdevice/ReadOnlyBlockDevice.h index aa95ba9e97..97db366500 100644 --- a/features/storage/blockdevice/ReadOnlyBlockDevice.h +++ b/features/storage/blockdevice/ReadOnlyBlockDevice.h @@ -137,7 +137,7 @@ public: * * @return A string represent the BlockDevice class type. */ - virtual const char * get_type(); + virtual const char *get_type(); private: BlockDevice *_bd; diff --git a/features/storage/blockdevice/SlicingBlockDevice.cpp b/features/storage/blockdevice/SlicingBlockDevice.cpp index 60a916539e..c2988600f8 100644 --- a/features/storage/blockdevice/SlicingBlockDevice.cpp +++ b/features/storage/blockdevice/SlicingBlockDevice.cpp @@ -121,7 +121,7 @@ bd_size_t SlicingBlockDevice::size() const return _stop - _start; } -const char * SlicingBlockDevice::get_type() +const char *SlicingBlockDevice::get_type() { if (_bd != NULL) { return _bd->get_type(); diff --git a/features/storage/blockdevice/SlicingBlockDevice.h b/features/storage/blockdevice/SlicingBlockDevice.h index 848f6688d6..7f1c3e00c7 100644 --- a/features/storage/blockdevice/SlicingBlockDevice.h +++ b/features/storage/blockdevice/SlicingBlockDevice.h @@ -167,7 +167,7 @@ public: * * @return A string represent the BlockDevice class type. */ - virtual const char * get_type(); + virtual const char *get_type(); protected: BlockDevice *_bd;