summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/ec/compal/ene932/ec.c6
-rw-r--r--src/ec/quanta/ene_kb3940q/ec.c4
-rw-r--r--src/ec/quanta/it8518/ec.c4
3 files changed, 7 insertions, 7 deletions
diff --git a/src/ec/compal/ene932/ec.c b/src/ec/compal/ene932/ec.c
index c21672e580..4b69e75972 100644
--- a/src/ec/compal/ene932/ec.c
+++ b/src/ec/compal/ene932/ec.c
@@ -30,7 +30,7 @@
static int kbc_input_buffer_empty(void)
{
u32 timeout;
- for(timeout = KBC_TIMEOUT_IN_MS; timeout && (inb(KBD_STATUS) & KBD_IBF);
+ for (timeout = KBC_TIMEOUT_IN_MS; timeout && (inb(KBD_STATUS) & KBD_IBF);
timeout--) {
mdelay(1);
}
@@ -46,7 +46,7 @@ static int kbc_input_buffer_empty(void)
static int kbc_output_buffer_full(void)
{
u32 timeout;
- for(timeout = KBC_TIMEOUT_IN_MS; timeout && ((inb(KBD_STATUS)
+ for (timeout = KBC_TIMEOUT_IN_MS; timeout && ((inb(KBD_STATUS)
& KBD_OBF) == 0); timeout--) {
mdelay(1);
}
@@ -60,7 +60,7 @@ static int kbc_output_buffer_full(void)
int kbc_cleanup_buffers(void)
{
u32 timeout;
- for(timeout = KBC_TIMEOUT_IN_MS; timeout && (inb(KBD_STATUS)
+ for (timeout = KBC_TIMEOUT_IN_MS; timeout && (inb(KBD_STATUS)
& (KBD_OBF | KBD_IBF)); timeout--) {
mdelay(1);
inb(KBD_DATA);
diff --git a/src/ec/quanta/ene_kb3940q/ec.c b/src/ec/quanta/ene_kb3940q/ec.c
index 8b3f18a839..5e4aa47afa 100644
--- a/src/ec/quanta/ene_kb3940q/ec.c
+++ b/src/ec/quanta/ene_kb3940q/ec.c
@@ -32,7 +32,7 @@
static int ec_input_buffer_empty(u8 status_port)
{
u32 timeout;
- for(timeout = KBC_TIMEOUT_IN_MS; timeout && (inb(status_port) & KBD_IBF);
+ for (timeout = KBC_TIMEOUT_IN_MS; timeout && (inb(status_port) & KBD_IBF);
timeout--) {
mdelay(1);
}
@@ -47,7 +47,7 @@ static int ec_input_buffer_empty(u8 status_port)
static int ec_output_buffer_full(u8 status_port)
{
u32 timeout;
- for(timeout = KBC_TIMEOUT_IN_MS; timeout && ((inb(status_port)
+ for (timeout = KBC_TIMEOUT_IN_MS; timeout && ((inb(status_port)
& KBD_OBF) == 0); timeout--) {
mdelay(1);
}
diff --git a/src/ec/quanta/it8518/ec.c b/src/ec/quanta/it8518/ec.c
index 09a6c045ca..af0849c600 100644
--- a/src/ec/quanta/it8518/ec.c
+++ b/src/ec/quanta/it8518/ec.c
@@ -29,7 +29,7 @@
static int input_buffer_empty(u16 status_reg)
{
u32 timeout;
- for(timeout = KBC_TIMEOUT_IN_MS; timeout && (inb(status_reg) & KBD_IBF);
+ for (timeout = KBC_TIMEOUT_IN_MS; timeout && (inb(status_reg) & KBD_IBF);
timeout--) {
udelay(1000);
}
@@ -45,7 +45,7 @@ static int input_buffer_empty(u16 status_reg)
static int output_buffer_full(u16 status_reg)
{
u32 timeout;
- for(timeout = KBC_TIMEOUT_IN_MS; timeout && ((inb(status_reg)
+ for (timeout = KBC_TIMEOUT_IN_MS; timeout && ((inb(status_reg)
& KBD_OBF) == 0); timeout--) {
udelay(1000);
}