summaryrefslogtreecommitdiffstats
path: root/platform.h
diff options
context:
space:
mode:
authorThomas Heijligen <thomas.heijligen@secunet.com>2022-04-12 14:37:50 +0200
committerNico Huber <nico.h@gmx.de>2022-04-13 11:08:35 +0000
commitc4569441704da6ea7824c7cf063c1ebd2f226590 (patch)
tree218eae6c77032c0c1c255123c23037fcb3775a01 /platform.h
parent999bbb32ae6e9b9a339442615a61b4505d7ed1d9 (diff)
downloadflashrom-c4569441704da6ea7824c7cf063c1ebd2f226590.tar.gz
flashrom-c4569441704da6ea7824c7cf063c1ebd2f226590.tar.bz2
flashrom-c4569441704da6ea7824c7cf063c1ebd2f226590.zip
platform.h: remove const from forward declarations
A `const` on the parameter itself is irrelevant to the caller. Change-Id: Iea26d75719ebb718203dbba883ac88f459c68c0a Signed-off-by: Thomas Heijligen <thomas.heijligen@secunet.com> Reviewed-on: https://review.coreboot.org/c/flashrom/+/63585 Reviewed-by: Angel Pons <th3fanbus@gmail.com> Reviewed-by: Nico Huber <nico.h@gmx.de> Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Diffstat (limited to 'platform.h')
-rw-r--r--platform.h32
1 files changed, 16 insertions, 16 deletions
diff --git a/platform.h b/platform.h
index adb2e7335..4f2a4c174 100644
--- a/platform.h
+++ b/platform.h
@@ -77,27 +77,27 @@ static inline uint64_t swap64(const uint64_t value)
uint##bits##_t name##bits (const uint##bits##_t value) { return swap##bits (value); }
/* convert cpu native endian to little endian */
-uint8_t cpu_to_le8 (const uint8_t value);
-uint16_t cpu_to_le16(const uint16_t value);
-uint32_t cpu_to_le32(const uint32_t value);
-uint64_t cpu_to_le64(const uint64_t value);
+uint8_t cpu_to_le8 (uint8_t value);
+uint16_t cpu_to_le16(uint16_t value);
+uint32_t cpu_to_le32(uint32_t value);
+uint64_t cpu_to_le64(uint64_t value);
/* convert cpu native endian to big endian */
-uint8_t cpu_to_be8 (const uint8_t value);
-uint16_t cpu_to_be16(const uint16_t value);
-uint32_t cpu_to_be32(const uint32_t value);
-uint64_t cpu_to_be64(const uint64_t value);
+uint8_t cpu_to_be8 (uint8_t value);
+uint16_t cpu_to_be16(uint16_t value);
+uint32_t cpu_to_be32(uint32_t value);
+uint64_t cpu_to_be64(uint64_t value);
/* convert little endian to cpu native endian */
-uint8_t le_to_cpu8 (const uint8_t value);
-uint16_t le_to_cpu16(const uint16_t value);
-uint32_t le_to_cpu32(const uint32_t value);
-uint64_t le_to_cpu64(const uint64_t value);
+uint8_t le_to_cpu8 (uint8_t value);
+uint16_t le_to_cpu16(uint16_t value);
+uint32_t le_to_cpu32(uint32_t value);
+uint64_t le_to_cpu64(uint64_t value);
/* convert big endian to cpu native endian */
-uint8_t be_to_cpu8 (const uint8_t value);
-uint16_t be_to_cpu16(const uint16_t value);
-uint32_t be_to_cpu32(const uint32_t value);
-uint64_t be_to_cpu64(const uint64_t value);
+uint8_t be_to_cpu8 (uint8_t value);
+uint16_t be_to_cpu16(uint16_t value);
+uint32_t be_to_cpu32(uint32_t value);
+uint64_t be_to_cpu64(uint64_t value);
#endif /* !__PLATFORM_H__ */