From 774d71f2cf7bce27a01424fad360cbadebf20459 Mon Sep 17 00:00:00 2001 From: Zachary T Welch Date: Fri, 13 Nov 2009 07:39:09 -0800 Subject: [PATCH] str7x_mem_layout_t -> struct str7x_mem_layout Remove misleading typedef and redundant suffix from struct str7x_mem_layout. --- src/flash/str7x.c | 4 ++-- src/flash/str7x.h | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/flash/str7x.c b/src/flash/str7x.c index 5e1c9cb1..84a246a4 100644 --- a/src/flash/str7x.c +++ b/src/flash/str7x.c @@ -29,7 +29,7 @@ #include "binarybuffer.h" -str7x_mem_layout_t mem_layout_str7bank0[] = { +struct str7x_mem_layout mem_layout_str7bank0[] = { {0x00000000, 0x02000, 0x01}, {0x00002000, 0x02000, 0x02}, {0x00004000, 0x02000, 0x04}, @@ -40,7 +40,7 @@ str7x_mem_layout_t mem_layout_str7bank0[] = { {0x00030000, 0x10000, 0x80} }; -str7x_mem_layout_t mem_layout_str7bank1[] = { +struct str7x_mem_layout mem_layout_str7bank1[] = { {0x00000000, 0x02000, 0x10000}, {0x00002000, 0x02000, 0x20000} }; diff --git a/src/flash/str7x.h b/src/flash/str7x.h index 838d46c2..ef2d2e33 100644 --- a/src/flash/str7x.h +++ b/src/flash/str7x.h @@ -101,10 +101,10 @@ enum str7x_status_codes #define FLASH_ERER 0x00000002 #define FLASH_ERR 0x00000001 -typedef struct str7x_mem_layout_s { +struct str7x_mem_layout { uint32_t sector_start; uint32_t sector_size; uint32_t sector_bit; -} str7x_mem_layout_t; +}; #endif /* STR7X_H */ -- 2.39.5