summaryrefslogtreecommitdiff
path: root/common
diff options
context:
space:
mode:
authorTom Hughes <tomhughes@chromium.org>2021-10-18 17:34:12 +0000
committerCommit Bot <commit-bot@chromium.org>2021-10-18 22:00:46 +0000
commit0ce1c0db7c906943d22c58c50d2182e87f46de8c (patch)
treee9640d87062ec8b4f7b2810047ee554bcf1f34ed /common
parent705fd9970f12bce63f8caa9371f633488e6432ee (diff)
downloadchrome-ec-0ce1c0db7c906943d22c58c50d2182e87f46de8c.tar.gz
tree: Files should end with single newline
One of the checks that runs as part of "repo upload" looks for a single newline at the end of each file. I'm getting warnings about this when I touch files that do not follow this, even though I didn't add the extra newlines. This commit fixes all files by running the following: for f in $(find . -name '*.[ch]'); do printf '%s\n' "$(cat ${f})" > ${f}; done BRANCH=none BUG=b:172020503 TEST=./util/compare_build.sh -b all -j 120 => MATCH Signed-off-by: Tom Hughes <tomhughes@chromium.org> Change-Id: Ia3ece5b64b549d21ca11708791368002bb6e9b0e Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3229797 Reviewed-by: Aseda Aboagye <aaboagye@chromium.org>
Diffstat (limited to 'common')
-rw-r--r--common/backlight_lid.c2
-rw-r--r--common/bluetooth_le.c1
-rw-r--r--common/btle_ll.c1
-rw-r--r--common/chipset.c1
-rw-r--r--common/gesture.c1
-rw-r--r--common/host_command_controller.c1
-rw-r--r--common/host_command_pd.c1
-rw-r--r--common/i2c_wedge.c1
-rw-r--r--common/init_rom.c1
-rw-r--r--common/keyboard_8042.c1
-rw-r--r--common/led_policy_std.c1
-rw-r--r--common/motion_lid.c1
-rw-r--r--common/power_button.c1
-rw-r--r--common/printf.c1
-rw-r--r--common/spi_commands.c1
-rw-r--r--common/virtual_battery.c1
16 files changed, 0 insertions, 17 deletions
diff --git a/common/backlight_lid.c b/common/backlight_lid.c
index 3b857df592..f0dd3b2e24 100644
--- a/common/backlight_lid.c
+++ b/common/backlight_lid.c
@@ -81,5 +81,3 @@ switch_command_enable_backlight(struct host_cmd_handler_args *args)
DECLARE_HOST_COMMAND(EC_CMD_SWITCH_ENABLE_BKLIGHT,
switch_command_enable_backlight,
EC_VER_MASK(0));
-
-
diff --git a/common/bluetooth_le.c b/common/bluetooth_le.c
index 2e68893223..c148ef8285 100644
--- a/common/bluetooth_le.c
+++ b/common/bluetooth_le.c
@@ -195,4 +195,3 @@ void dump_ble_packet(struct ble_pdu *ble_p)
mem_dump(ble_p->payload, ble_p->header.data.length);
}
}
-
diff --git a/common/btle_ll.c b/common/btle_ll.c
index 20ede4d4a0..d57eb3bfd3 100644
--- a/common/btle_ll.c
+++ b/common/btle_ll.c
@@ -858,4 +858,3 @@ void bluetooth_ll_task(void)
}
}
}
-
diff --git a/common/chipset.c b/common/chipset.c
index 6275b12b85..61478f184a 100644
--- a/common/chipset.c
+++ b/common/chipset.c
@@ -126,4 +126,3 @@ get_ap_reset_stats(struct ap_reset_log_entry *reset_log_entries,
}
#endif /* !CONFIG_AP_RESET_LOG */
-
diff --git a/common/gesture.c b/common/gesture.c
index 88d79448a5..0ccd358d54 100644
--- a/common/gesture.c
+++ b/common/gesture.c
@@ -332,4 +332,3 @@ static int command_tap_info(int argc, char **argv)
DECLARE_CONSOLE_COMMAND(tapinfo, command_tap_info,
"debug on/off",
"Print tap information");
-
diff --git a/common/host_command_controller.c b/common/host_command_controller.c
index 0d221e44e3..c602213e29 100644
--- a/common/host_command_controller.c
+++ b/common/host_command_controller.c
@@ -227,4 +227,3 @@ static int command_pd_mcu(int argc, char **argv)
DECLARE_CONSOLE_COMMAND(pdcmd, command_pd_mcu,
"cmd ver [params]",
"Send PD host command");
-
diff --git a/common/host_command_pd.c b/common/host_command_pd.c
index f9b67c8b8d..7d82249d21 100644
--- a/common/host_command_pd.c
+++ b/common/host_command_pd.c
@@ -226,4 +226,3 @@ void pd_command_task(void *u)
pd_exchange_status(ec_state);
}
}
-
diff --git a/common/i2c_wedge.c b/common/i2c_wedge.c
index 48bcac090c..fc0a5132b7 100644
--- a/common/i2c_wedge.c
+++ b/common/i2c_wedge.c
@@ -338,4 +338,3 @@ static int command_i2c_unwedge(int argc, char **argv)
DECLARE_CONSOLE_COMMAND(i2cunwedge, command_i2c_unwedge,
"",
"Unwedge host I2C bus");
-
diff --git a/common/init_rom.c b/common/init_rom.c
index 320849c008..2cee57f922 100644
--- a/common/init_rom.c
+++ b/common/init_rom.c
@@ -66,4 +66,3 @@ int init_rom_copy(int offset, int size, char *data)
{
return crec_flash_read(offset, size, data);
}
-
diff --git a/common/keyboard_8042.c b/common/keyboard_8042.c
index 699eaa6687..5e89dd3959 100644
--- a/common/keyboard_8042.c
+++ b/common/keyboard_8042.c
@@ -1325,4 +1325,3 @@ DECLARE_HOOK(HOOK_POWER_BUTTON_CHANGE, keyboard_power_button,
HOOK_PRIO_DEFAULT);
#endif /* CONFIG_POWER_BUTTON && !CONFIG_MKBP_INPUT_DEVICES */
-
diff --git a/common/led_policy_std.c b/common/led_policy_std.c
index e9fe4568a2..b18dc1bc27 100644
--- a/common/led_policy_std.c
+++ b/common/led_policy_std.c
@@ -199,4 +199,3 @@ static void led_second(void)
std_led_set_battery();
}
DECLARE_HOOK(HOOK_SECOND, led_second, HOOK_PRIO_DEFAULT);
-
diff --git a/common/motion_lid.c b/common/motion_lid.c
index eb0297aefa..4e76bebb66 100644
--- a/common/motion_lid.c
+++ b/common/motion_lid.c
@@ -565,4 +565,3 @@ enum ec_status host_cmd_motion_lid(struct host_cmd_handler_args *args)
return EC_RES_SUCCESS;
}
-
diff --git a/common/power_button.c b/common/power_button.c
index 1ac3893492..a24b073fa7 100644
--- a/common/power_button.c
+++ b/common/power_button.c
@@ -224,4 +224,3 @@ static int command_powerbtn(int argc, char **argv)
DECLARE_CONSOLE_COMMAND(powerbtn, command_powerbtn,
"[msec]",
"Simulate power button press");
-
diff --git a/common/printf.c b/common/printf.c
index be06d34dd8..e302708a9b 100644
--- a/common/printf.c
+++ b/common/printf.c
@@ -518,4 +518,3 @@ int crec_vsnprintf(char *str, size_t size, const char *format, va_list args)
return (rv == EC_SUCCESS) ? (ctx.str - str) : -rv;
}
-
diff --git a/common/spi_commands.c b/common/spi_commands.c
index 1a70a5be82..45c2f3ce70 100644
--- a/common/spi_commands.c
+++ b/common/spi_commands.c
@@ -68,4 +68,3 @@ static int command_spixfer(int argc, char **argv)
DECLARE_CONSOLE_COMMAND(spixfer, command_spixfer,
"rlen/w id offset [value | len]",
"Read write spi. id is spi_devices array index");
-
diff --git a/common/virtual_battery.c b/common/virtual_battery.c
index 0f0167556c..7c40ffb492 100644
--- a/common/virtual_battery.c
+++ b/common/virtual_battery.c
@@ -356,4 +356,3 @@ int virtual_battery_operation(const uint8_t *batt_cmd_head,
}
return EC_SUCCESS;
}
-