summaryrefslogtreecommitdiff
path: root/src/superio/fintek/f81803a
diff options
context:
space:
mode:
authorElyes HAOUAS <ehaouas@noos.fr>2020-03-30 16:44:54 +0200
committerFelix Held <felix-coreboot@felixheld.de>2020-03-31 18:59:08 +0000
commit8dcadc9189d538dfcc0d8247bcd027afd5697244 (patch)
treef8163fe7eeb54c7c4d1ff6c771b473d7864e71c1 /src/superio/fintek/f81803a
parent3e666898cd99f4e15a39e360bb594d499e738b2d (diff)
superio/fintek: Improve code formatting
Change-Id: I5ae2a2da1994fcc587540586d7404ebf18eb2ca0 Signed-off-by: Elyes HAOUAS <ehaouas@noos.fr> Reviewed-on: https://review.coreboot.org/c/coreboot/+/39928 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Angel Pons <th3fanbus@gmail.com>
Diffstat (limited to 'src/superio/fintek/f81803a')
-rw-r--r--src/superio/fintek/f81803a/acpi/superio.asl4
-rw-r--r--src/superio/fintek/f81803a/f81803a.h2
-rw-r--r--src/superio/fintek/f81803a/fan_control.c2
3 files changed, 4 insertions, 4 deletions
diff --git a/src/superio/fintek/f81803a/acpi/superio.asl b/src/superio/fintek/f81803a/acpi/superio.asl
index 0887d6a9db..30654583a2 100644
--- a/src/superio/fintek/f81803a/acpi/superio.asl
+++ b/src/superio/fintek/f81803a/acpi/superio.asl
@@ -237,13 +237,13 @@ Device(SUPERIO_DEV) {
{
Offset(0x00), /*Control Reg 5 */
, 7,
- PSIN, 1 /* PSIN_FLAG */
+ PSIN, 1 /* PSIN_FLAG */
}
/* routine to clear PSIN_FLAG in ACPI_CONTROL_REG_5 of SIO */
Method(CPSI, 0, Serialized)
{
- /* DBG0("SIO CPSI")*/
+ /* DBG0("SIO CPSI") */
ENTER_CONFIG_MODE(SUPERIO_PME_LDN)
Store(1, PSIN)
EXIT_CONFIG_MODE()
diff --git a/src/superio/fintek/f81803a/f81803a.h b/src/superio/fintek/f81803a/f81803a.h
index fdf9ecf504..9cd720f000 100644
--- a/src/superio/fintek/f81803a/f81803a.h
+++ b/src/superio/fintek/f81803a/f81803a.h
@@ -19,7 +19,7 @@
#define F81803A_WDT 0x07 /* Watch Dog Timer */
#define F81803A_PME 0x0a /* Power Management Events (PME) */
-/* Global Control Registers */
+/* Global Control Registers */
#define CLOCK_SELECT_REG 0x26
#define FUNC_PROG_SELECT (1<<3)
#define PORT_SELECT_REG 0x27
diff --git a/src/superio/fintek/f81803a/fan_control.c b/src/superio/fintek/f81803a/fan_control.c
index 3b01a64e4f..2143f2e8d0 100644
--- a/src/superio/fintek/f81803a/fan_control.c
+++ b/src/superio/fintek/f81803a/fan_control.c
@@ -128,7 +128,7 @@ static int check_value_seq(u8 *values, u8 count)
u8 current_value, i;
for (i = 0; i < count; i++) {
current_value = values[i];
- if (current_value > CPU_DAMAGE_TEMP)
+ if (current_value > CPU_DAMAGE_TEMP)
return STATUS_INVALID_VALUE;
if (current_value >= last_value)
return STATUS_INVALID_ORDER;