sb/intel/lynxpoint: Drop typedefs of struct types

There's no need to use typedefs for struct types. Get rid of them.

Tested with BUILD_TIMELESS=1, Asrock B85M Pro4 remains identical.

Change-Id: I109bd690500a9f03b9da0fd72044be79abf660d3
Signed-off-by: Angel Pons <th3fanbus@gmail.com>
Reviewed-on: https://review.coreboot.org/c/coreboot/+/59619
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Felix Held <felix-coreboot@felixheld.de>
diff --git a/src/southbridge/intel/lynxpoint/me.c b/src/southbridge/intel/lynxpoint/me.c
index c2f1db2..b56d1d8 100644
--- a/src/southbridge/intel/lynxpoint/me.c
+++ b/src/southbridge/intel/lynxpoint/me.c
@@ -452,7 +452,7 @@
 	}
 }
 
-static void me_print_fw_version(mbp_fw_version_name *vers_name)
+static void me_print_fw_version(struct mbp_fw_version_name *vers_name)
 {
 	if (!vers_name) {
 		printk(BIOS_ERR, "ME: mbp missing version report\n");
@@ -471,7 +471,7 @@
 }
 
 /* Get ME Firmware Capabilities */
-static int mkhi_get_fwcaps(mbp_mefwcaps *cap)
+static int mkhi_get_fwcaps(struct mbp_mefwcaps *cap)
 {
 	u32 rule_id = 0;
 	struct me_fwcaps cap_msg;
@@ -491,9 +491,9 @@
 }
 
 /* Get ME Firmware Capabilities */
-static void me_print_fwcaps(mbp_mefwcaps *cap)
+static void me_print_fwcaps(struct mbp_mefwcaps *cap)
 {
-	mbp_mefwcaps local_caps;
+	struct mbp_mefwcaps local_caps;
 	if (!cap) {
 		cap = &local_caps;
 		printk(BIOS_ERR, "ME: mbp missing fwcaps report\n");
@@ -747,7 +747,7 @@
 }
 
 struct mbp_payload {
-	mbp_header header;
+	struct mbp_header header;
 	u32 data[0];
 };
 
@@ -757,9 +757,9 @@
  * Return -1 to indicate a problem (give up)
  * Return 0 to indicate success (send LOCK+EOP)
  */
-static int intel_me_read_mbp(me_bios_payload *mbp_data, struct device *dev)
+static int intel_me_read_mbp(struct me_bios_payload *mbp_data, struct device *dev)
 {
-	mbp_header mbp_hdr;
+	struct mbp_header mbp_hdr;
 	u32 me2host_pending;
 	struct mei_csr host;
 	struct me_hfs2 hfs2;
@@ -826,7 +826,7 @@
 		}
 	/* Setup the pointers in the me_bios_payload structure. */
 	for (i = 0; i < mbp->header.mbp_size - 1;) {
-		mbp_item_header *item = (void *)&mbp->data[i];
+		struct mbp_item_header *item = (void *)&mbp->data[i];
 
 		switch (MBP_MAKE_IDENT(item->app_id, item->item_id)) {
 		case MBP_IDENT(KERNEL, FW_VER):
@@ -880,7 +880,7 @@
 {
 	struct southbridge_intel_lynxpoint_config *config = dev->chip_info;
 	me_bios_path path = intel_me_path(dev);
-	me_bios_payload mbp_data;
+	struct me_bios_payload mbp_data;
 
 	/* Do initial setup and determine the BIOS path */
 	printk(BIOS_NOTICE, "ME: BIOS path: %s\n", me_bios_path_values[path]);
diff --git a/src/southbridge/intel/lynxpoint/me.h b/src/southbridge/intel/lynxpoint/me.h
index d908e5b..dfc8a564 100644
--- a/src/southbridge/intel/lynxpoint/me.h
+++ b/src/southbridge/intel/lynxpoint/me.h
@@ -353,27 +353,27 @@
 #define MBP_IDENT(appid, item) \
 	MBP_MAKE_IDENT(MBP_APPID_##appid, MBP_##appid##_##item##_ITEM)
 
-typedef  struct {
+struct mbp_header {
 	u32  mbp_size	 : 8;
 	u32  num_entries : 8;
 	u32  rsvd	 : 16;
-} __packed mbp_header;
+} __packed;
 
-typedef struct {
+struct mbp_item_header {
 	u32  app_id  : 8;
 	u32  item_id : 8;
 	u32  length  : 8;
 	u32  rsvd    : 8;
-}  __packed mbp_item_header;
+} __packed;
 
-typedef struct {
+struct mbp_fw_version_name {
 	u32       major_version  : 16;
 	u32       minor_version  : 16;
 	u32       hotfix_version : 16;
 	u32       build_version  : 16;
-} __packed mbp_fw_version_name;
+} __packed;
 
-typedef struct {
+struct mbp_mefwcaps {
 	u32  full_net		: 1;
 	u32  std_net		: 1;
 	u32  manageability	: 1;
@@ -393,19 +393,19 @@
 	u32  reserved_4		: 1;
 	u32  wlan		: 1;
 	u32  reserved_5		: 8;
-} __packed mbp_mefwcaps;
+} __packed;
 
-typedef struct {
+struct mbp_rom_bist_data {
 	u16        device_id;
 	u16        fuse_test_flags;
 	u32        umchid[4];
-}  __packed mbp_rom_bist_data;
+}  __packed;
 
-typedef struct {
+struct mbp_platform_key {
 	u32        key[8];
-} mbp_platform_key;
+};
 
-typedef struct {
+struct mbp_me_firmware_type {
 	u32 mobile:		1;
 	u32 desktop:		1;
 	u32 server:		1;
@@ -417,70 +417,70 @@
 	u32 image_type:		4;
 	u32 brand:		4;
 	u32 rsvd1:		16;
-}  __packed mbp_me_firmware_type;
+} __packed;
 
-typedef struct {
-	mbp_me_firmware_type rule_data;
-	u8                   available;
-} mbp_plat_type;
+struct mbp_plat_type {
+	struct mbp_me_firmware_type rule_data;
+	u8 available;
+};
 
-typedef struct {
+struct icc_address_mask {
 	u16 icc_start_address;
 	u16 mask;
-} __packed icc_address_mask;
+} __packed;
 
-typedef struct {
-	u8        num_icc_profiles;
-	u8        icc_profile_soft_strap;
-	u8        icc_profile_index;
-	u8        reserved;
-	u32       icc_reg_bundles;
-	icc_address_mask icc_address_mask[0];
-} __packed mbp_icc_profile;
+struct mbp_icc_profile {
+	u8  num_icc_profiles;
+	u8  icc_profile_soft_strap;
+	u8  icc_profile_index;
+	u8  reserved;
+	u32 icc_reg_bundles;
+	struct icc_address_mask icc_address_mask[0];
+} __packed;
 
-typedef struct {
+struct tdt_state_flag {
 	u16  lock_state		     : 1;
 	u16  authenticate_module     : 1;
 	u16  s3authentication	     : 1;
 	u16  flash_wear_out          : 1;
 	u16  flash_variable_security : 1;
 	u16  reserved		     : 11;
-} __packed tdt_state_flag;
+} __packed;
 
-typedef struct {
-	u8           state;
-	u8           last_theft_trigger;
-	tdt_state_flag  flags;
-}  __packed mbp_at_state;
+struct mbp_at_state {
+	u8 state;
+	u8 last_theft_trigger;
+	struct tdt_state_flag flags;
+} __packed;
 
-typedef struct {
+struct mbp_plat_time {
 	u32 wake_event_mrst_time_ms;
 	u32 mrst_pltrst_time_ms;
 	u32 pltrst_cpurst_time_ms;
-} __packed mbp_plat_time;
+} __packed;
 
-typedef struct {
+struct mbp_nfc_data {
 	u32 device_type : 2;
 	u32 reserved    : 30;
-} __packed mbp_nfc_data;
+} __packed;
 
-typedef struct {
-	mbp_fw_version_name  *fw_version_name;
-	mbp_mefwcaps         *fw_capabilities;
-	mbp_rom_bist_data    *rom_bist_data;
-	mbp_platform_key     *platform_key;
-	mbp_plat_type        *fw_plat_type;
-	mbp_icc_profile	     *icc_profile;
-	mbp_at_state         *at_state;
-	u32		     *mfsintegrity;
-	mbp_plat_time        *plat_time;
-	mbp_nfc_data         *nfc_data;
-} me_bios_payload;
+struct me_bios_payload {
+	struct mbp_fw_version_name *fw_version_name;
+	struct mbp_mefwcaps        *fw_capabilities;
+	struct mbp_rom_bist_data   *rom_bist_data;
+	struct mbp_platform_key    *platform_key;
+	struct mbp_plat_type       *fw_plat_type;
+	struct mbp_icc_profile     *icc_profile;
+	struct mbp_at_state        *at_state;
+	u32                        *mfsintegrity;
+	struct mbp_plat_time       *plat_time;
+	struct mbp_nfc_data        *nfc_data;
+};
 
 struct me_fwcaps {
 	u32 id;
 	u8 length;
-	mbp_mefwcaps caps_sku;
+	struct mbp_mefwcaps caps_sku;
 	u8 reserved[3];
 } __packed;