summaryrefslogtreecommitdiff
path: root/common/fmap.c
diff options
context:
space:
mode:
authorRandall Spangler <rspangler@chromium.org>2013-12-17 13:43:17 -0800
committerchrome-internal-fetch <chrome-internal-fetch@google.com>2013-12-19 00:12:28 +0000
commit6ab8e91658f1efc894b648cc0748af8d804915e4 (patch)
treec33da7914793452ecb37084e505230171d4eff9e /common/fmap.c
parente5935f17d1798a1f19c6003e57f140446774484f (diff)
downloadchrome-ec-6ab8e91658f1efc894b648cc0748af8d804915e4.tar.gz
cleanup: Remove checkpatch warnings
This make minor syntactic changes and renames some camel-cased symbols to keep checkpatch from complaining. The goal is to reduce the temptation to use 'repo upload --no-verify'. This is a big furball of find/replace, but no functional changes. BUG=chromium:322144 BRANCH=none TEST=build all boards; pass unit tests Change-Id: I0269b7dd95836ef9a6e33f88c003ab0f24f842a0 Signed-off-by: Randall Spangler <rspangler@chromium.org> Reviewed-on: https://chromium-review.googlesource.com/180495
Diffstat (limited to 'common/fmap.c')
-rw-r--r--common/fmap.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/common/fmap.c b/common/fmap.c
index cac3b61ca2..946299bfb7 100644
--- a/common/fmap.c
+++ b/common/fmap.c
@@ -22,7 +22,7 @@
*/
#define RELATIVE(addr) ((addr) - CONFIG_FLASH_BASE)
-typedef struct _FmapHeader {
+struct fmap_header {
char fmap_signature[FMAP_SIGNATURE_SIZE];
uint8_t fmap_ver_major;
uint8_t fmap_ver_minor;
@@ -30,24 +30,24 @@ typedef struct _FmapHeader {
uint32_t fmap_size;
char fmap_name[FMAP_NAMELEN];
uint16_t fmap_nareas;
-} __packed FmapHeader;
+} __packed;
#define FMAP_AREA_STATIC (1 << 0) /* can be checksummed */
#define FMAP_AREA_COMPRESSED (1 << 1) /* may be compressed */
#define FMAP_AREA_RO (1 << 2) /* writes may fail */
-typedef struct _FmapAreaHeader {
+struct fmap_area_header {
uint32_t area_offset;
uint32_t area_size;
char area_name[FMAP_NAMELEN];
uint16_t area_flags;
-} __packed FmapAreaHeader;
+} __packed;
#define NUM_EC_FMAP_AREAS 7
const struct _ec_fmap {
- FmapHeader header;
- FmapAreaHeader area[NUM_EC_FMAP_AREAS];
+ struct fmap_header header;
+ struct fmap_area_header area[NUM_EC_FMAP_AREAS];
} ec_fmap __attribute__((section(".google"))) = {
/* Header */
{