summaryrefslogtreecommitdiff
path: root/src/southbridge/intel/lynxpoint/me.c
diff options
context:
space:
mode:
authorAngel Pons <th3fanbus@gmail.com>2021-11-24 11:58:04 +0100
committerFelix Held <felix-coreboot@felixheld.de>2021-12-18 12:29:40 +0000
commit01c9b98ef2be99c51e6cd62fe3fb6fa9c6ee5e7c (patch)
tree5e634752c71ea62785fd2cb26726d6670f64a945 /src/southbridge/intel/lynxpoint/me.c
parent78ee4889dc3213d14db1074c55ae367a1ffac54a (diff)
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>
Diffstat (limited to 'src/southbridge/intel/lynxpoint/me.c')
-rw-r--r--src/southbridge/intel/lynxpoint/me.c18
1 files changed, 9 insertions, 9 deletions
diff --git a/src/southbridge/intel/lynxpoint/me.c b/src/southbridge/intel/lynxpoint/me.c
index c2f1db2122..b56d1d8871 100644
--- a/src/southbridge/intel/lynxpoint/me.c
+++ b/src/southbridge/intel/lynxpoint/me.c
@@ -452,7 +452,7 @@ static void intel_me_mbp_clear(struct device *dev)
}
}
-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 @@ static inline void print_cap(const char *name, int state)
}
/* 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 @@ static int mkhi_get_fwcaps(mbp_mefwcaps *cap)
}
/* 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 @@ static u32 me_to_host_words_pending(void)
}
struct mbp_payload {
- mbp_header header;
+ struct mbp_header header;
u32 data[0];
};
@@ -757,9 +757,9 @@ struct mbp_payload {
* 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 @@ static int intel_me_read_mbp(me_bios_payload *mbp_data, struct device *dev)
}
/* 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 @@ static void intel_me_init(struct device *dev)
{
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]);