[coreboot-gerrit] Patch set updated for coreboot: mainboard/lenovo/x220: Clean up code

Jan Tatje gerrit at coreboot.org
Mon Jun 6 20:38:44 CEST 2016


Jan Tatje just uploaded a new patch set to gerrit, which you can find at https://review.coreboot.org/15071

-gerrit

commit 7dd8c833ffe3ea83ced8ac55a23c45f857014aa3
Author: Jan Tatje <jan at jnt.io>
Date:   Sat Jun 4 19:29:03 2016 +0200

    mainboard/lenovo/x220: Clean up code
    
    thermal.h still has references to X230 in include guard since it
    seems to have been copied from that port. Code formatting changes
    in romstage.c.
    
    Change-Id: Id8bd931bed127036e8bb4ab604d9d6145f767e56
    signed-off-by: Jan Tatje <jan at jnt.io>
---
 src/mainboard/lenovo/x220/romstage.c | 6 ++++--
 src/mainboard/lenovo/x220/thermal.h  | 4 ++--
 2 files changed, 6 insertions(+), 4 deletions(-)

diff --git a/src/mainboard/lenovo/x220/romstage.c b/src/mainboard/lenovo/x220/romstage.c
index 27998d9..71ed1a8 100644
--- a/src/mainboard/lenovo/x220/romstage.c
+++ b/src/mainboard/lenovo/x220/romstage.c
@@ -75,12 +75,14 @@ const struct southbridge_usb_port mainboard_usb_ports[] = {
 	{ 1, 1, 6 },
 };
 
-void mainboard_get_spd(spd_raw_data *spd) {
+void mainboard_get_spd(spd_raw_data *spd)
+{
 	read_spd (&spd[0], 0x50);
 	read_spd (&spd[2], 0x51);
 }
 
-void mainboard_early_init(int s3resume) {
+void mainboard_early_init(int s3resume)
+{
 }
 
 void mainboard_config_superio(void)
diff --git a/src/mainboard/lenovo/x220/thermal.h b/src/mainboard/lenovo/x220/thermal.h
index 199c27e..82df303 100644
--- a/src/mainboard/lenovo/x220/thermal.h
+++ b/src/mainboard/lenovo/x220/thermal.h
@@ -14,8 +14,8 @@
  * GNU General Public License for more details.
  */
 
-#ifndef X230_THERMAL_H
-#define X230_THERMAL_H
+#ifndef X220_THERMAL_H
+#define X220_THERMAL_H
 
 	/* Temperature which OS will shutdown at */
 	#define CRITICAL_TEMPERATURE	100



More information about the coreboot-gerrit mailing list