diff options
author | Elyes HAOUAS <ehaouas@noos.fr> | 2016-09-05 19:55:34 +0200 |
---|---|---|
committer | Patrick Georgi <pgeorgi@google.com> | 2016-09-07 13:55:05 +0200 |
commit | b933109594b21c23af7233a97ba9dd57a56cbee9 (patch) | |
tree | 5d95d76ff7eb387d86c4358be7ea3d153d1e7002 /src/ec/quanta | |
parent | 112ab9183754a81c8100fcc37593ef4905a9d3a3 (diff) |
src/ec: Improve code formatting
Change-Id: I93b71ca577c973046d1651d92665168b329eda1b
Signed-off-by: Elyes HAOUAS <ehaouas@noos.fr>
Reviewed-on: https://review.coreboot.org/16503
Tested-by: build bot (Jenkins)
Reviewed-by: Alexander Couzens <lynxis@fe80.eu>
Reviewed-by: Omar Pakker
Diffstat (limited to 'src/ec/quanta')
-rw-r--r-- | src/ec/quanta/ene_kb3940q/ec.c | 2 | ||||
-rw-r--r-- | src/ec/quanta/it8518/ec.c | 6 |
2 files changed, 4 insertions, 4 deletions
diff --git a/src/ec/quanta/ene_kb3940q/ec.c b/src/ec/quanta/ene_kb3940q/ec.c index 5e4aa47afa..83768b12ca 100644 --- a/src/ec/quanta/ene_kb3940q/ec.c +++ b/src/ec/quanta/ene_kb3940q/ec.c @@ -154,7 +154,7 @@ static struct device_operations ops = { }; static struct pnp_info pnp_dev_info[] = { - { &ops, 0, 0, { 0, 0 }, } + { &ops, 0, 0, { 0, 0 }, } }; static void enable_dev(struct device *dev) diff --git a/src/ec/quanta/it8518/ec.c b/src/ec/quanta/it8518/ec.c index af0849c600..643c934c40 100644 --- a/src/ec/quanta/it8518/ec.c +++ b/src/ec/quanta/it8518/ec.c @@ -131,10 +131,10 @@ u8 ec_it8518_get_event(void) { u8 cmd = 0; u8 status = inb(EC_SC); - if (status & SCI_EVT) { + if (status & SCI_EVT) { ec_write_cmd(QR_EC); cmd = ec_read_ob(); - } else if ( status & SMI_EVT) { + } else if (status & SMI_EVT) { ec_kbc_write_cmd(EC_KBD_SMI_EVENT); cmd = ec_kbc_read_ob(); } @@ -167,7 +167,7 @@ static struct device_operations ops = { }; static struct pnp_info pnp_dev_info[] = { - { &ops, 0, 0, { 0, 0 }, } + { &ops, 0, 0, { 0, 0 }, } }; static void enable_dev(struct device *dev) |