summaryrefslogtreecommitdiff
path: root/driver
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 /driver
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 'driver')
-rw-r--r--driver/als_bh1730.h1
-rw-r--r--driver/battery/bq27541.c1
-rw-r--r--driver/battery/bq27621_g1.c1
-rw-r--r--driver/battery/bq4050.c1
-rw-r--r--driver/mag_lis2mdl.h1
-rw-r--r--driver/mp4245.c1
-rw-r--r--driver/ppc/rt1718s.h1
-rw-r--r--driver/sync.c1
-rw-r--r--driver/sync.h1
-rw-r--r--driver/tcpm/anx7447.c1
-rw-r--r--driver/tcpm/fusb307.c1
-rw-r--r--driver/temp_sensor/adt7481.c1
-rw-r--r--driver/temp_sensor/oti502.c1
-rw-r--r--driver/temp_sensor/tmp411.c1
-rw-r--r--driver/temp_sensor/tmp432.c1
-rw-r--r--driver/touchpad_st.h1
16 files changed, 0 insertions, 16 deletions
diff --git a/driver/als_bh1730.h b/driver/als_bh1730.h
index f49afac76f..f4bbc37a13 100644
--- a/driver/als_bh1730.h
+++ b/driver/als_bh1730.h
@@ -94,4 +94,3 @@ struct bh1730_drv_data_t {
extern const struct accelgyro_drv bh1730_drv;
#endif /* __CROS_EC_ALS_BH1730_H */
-
diff --git a/driver/battery/bq27541.c b/driver/battery/bq27541.c
index b39147092f..b59bfc0b18 100644
--- a/driver/battery/bq27541.c
+++ b/driver/battery/bq27541.c
@@ -429,4 +429,3 @@ int battery_get_avg_voltage(void)
return -EC_ERROR_UNIMPLEMENTED;
}
#endif /* CONFIG_CMD_PWR_AVG */
-
diff --git a/driver/battery/bq27621_g1.c b/driver/battery/bq27621_g1.c
index dbda6f9c65..96b0ed6975 100644
--- a/driver/battery/bq27621_g1.c
+++ b/driver/battery/bq27621_g1.c
@@ -744,4 +744,3 @@ DECLARE_CONSOLE_COMMAND(fgcmdrd, command_fgcmdrd,
"Send a 2-byte cmd to the fg, read back the 2-byte result");
#endif /* CONFIG_CMD_BATDEBUG */
-
diff --git a/driver/battery/bq4050.c b/driver/battery/bq4050.c
index 684ade47e6..32fc858d08 100644
--- a/driver/battery/bq4050.c
+++ b/driver/battery/bq4050.c
@@ -36,4 +36,3 @@ int battery_bq4050_imbalance_mv(void)
}
return (n_cells == 0) ? 0 : max_voltage - min_voltage;
}
-
diff --git a/driver/mag_lis2mdl.h b/driver/mag_lis2mdl.h
index a7c47ec00e..bc823628b3 100644
--- a/driver/mag_lis2mdl.h
+++ b/driver/mag_lis2mdl.h
@@ -89,4 +89,3 @@ void lis2mdl_normalize(const struct motion_sensor_t *s,
extern const struct accelgyro_drv lis2mdl_drv;
#endif /* __CROS_EC_MAG_LIS2MDL_H */
-
diff --git a/driver/mp4245.c b/driver/mp4245.c
index 2b38e5c9e9..60df5affaf 100644
--- a/driver/mp4245.c
+++ b/driver/mp4245.c
@@ -211,4 +211,3 @@ static int command_mp4245(int argc, char **argv)
DECLARE_CONSOLE_COMMAND(mp4245, command_mp4245,
"<info|dump|vbus|ilim>",
"Turn on/off|set vbus.");
-
diff --git a/driver/ppc/rt1718s.h b/driver/ppc/rt1718s.h
index f692bf3dd4..192063d3fc 100644
--- a/driver/ppc/rt1718s.h
+++ b/driver/ppc/rt1718s.h
@@ -14,4 +14,3 @@
extern const struct ppc_drv rt1718s_ppc_drv;
#endif /* defined(__CROS_EC_PPC_RT1718S_H) */
-
diff --git a/driver/sync.c b/driver/sync.c
index c9a2752d63..648156aa6e 100644
--- a/driver/sync.c
+++ b/driver/sync.c
@@ -134,4 +134,3 @@ const struct accelgyro_drv sync_drv = {
.get_data_rate = sync_get_data_rate,
.irq_handler = motion_irq_handler,
};
-
diff --git a/driver/sync.h b/driver/sync.h
index 1f6115a086..bf21987b74 100644
--- a/driver/sync.h
+++ b/driver/sync.h
@@ -15,4 +15,3 @@ extern const struct accelgyro_drv sync_drv;
void sync_interrupt(enum gpio_signal signal);
#endif /* __CROS_EC_VSYNC_H */
-
diff --git a/driver/tcpm/anx7447.c b/driver/tcpm/anx7447.c
index 9a9a3c7971..dde7b7e306 100644
--- a/driver/tcpm/anx7447.c
+++ b/driver/tcpm/anx7447.c
@@ -858,4 +858,3 @@ const struct usb_mux_driver anx7447_usb_mux_driver = {
.get = anx7447_mux_get,
};
#endif /* CONFIG_USB_PD_TCPM_MUX */
-
diff --git a/driver/tcpm/fusb307.c b/driver/tcpm/fusb307.c
index e8804a2661..3569032805 100644
--- a/driver/tcpm/fusb307.c
+++ b/driver/tcpm/fusb307.c
@@ -100,4 +100,3 @@ const struct tcpm_drv fusb307_tcpm_drv = {
#endif
.set_bist_test_mode = &tcpci_set_bist_test_mode,
};
-
diff --git a/driver/temp_sensor/adt7481.c b/driver/temp_sensor/adt7481.c
index cbd32e5cd5..b10404733c 100644
--- a/driver/temp_sensor/adt7481.c
+++ b/driver/temp_sensor/adt7481.c
@@ -349,4 +349,3 @@ int adt7481_set_power(enum adt7481_power_state power_on)
return EC_SUCCESS;
#endif
}
-
diff --git a/driver/temp_sensor/oti502.c b/driver/temp_sensor/oti502.c
index 8a420363e8..b58d1c3e96 100644
--- a/driver/temp_sensor/oti502.c
+++ b/driver/temp_sensor/oti502.c
@@ -64,4 +64,3 @@ static void temp_sensor_poll(void)
}
}
DECLARE_HOOK(HOOK_SECOND, temp_sensor_poll, HOOK_PRIO_TEMP_SENSOR);
-
diff --git a/driver/temp_sensor/tmp411.c b/driver/temp_sensor/tmp411.c
index ef22052da8..ee50d0a894 100644
--- a/driver/temp_sensor/tmp411.c
+++ b/driver/temp_sensor/tmp411.c
@@ -327,4 +327,3 @@ int tmp411_set_power(enum tmp411_power_state power_on)
return EC_SUCCESS;
#endif
}
-
diff --git a/driver/temp_sensor/tmp432.c b/driver/temp_sensor/tmp432.c
index 6260678dcd..4226f51bfd 100644
--- a/driver/temp_sensor/tmp432.c
+++ b/driver/temp_sensor/tmp432.c
@@ -396,4 +396,3 @@ int tmp432_set_power(enum tmp432_power_state power_on)
return EC_SUCCESS;
#endif
}
-
diff --git a/driver/touchpad_st.h b/driver/touchpad_st.h
index a6534f278f..ef0960591b 100644
--- a/driver/touchpad_st.h
+++ b/driver/touchpad_st.h
@@ -271,4 +271,3 @@ enum ST_TP_MODE {
#define ST_TP_MIN_HEATMAP_VERSION 0x12
#endif /* __CROS_EC_TOUCHPAD_ST_H */
-