summaryrefslogtreecommitdiff
path: root/chip
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 /chip
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 'chip')
-rw-r--r--chip/it83xx/dac_chip.h1
-rw-r--r--chip/lm4/clock.c1
-rw-r--r--chip/mchp/dma_chip.h1
-rw-r--r--chip/mchp/gpio.c1
-rw-r--r--chip/mchp/gpio_chip.h1
-rw-r--r--chip/mchp/gpio_cmds.c1
-rw-r--r--chip/mchp/gpspi.c1
-rw-r--r--chip/mchp/gpspi_chip.h1
-rw-r--r--chip/mchp/lpc.c1
-rw-r--r--chip/mchp/port80.c1
-rw-r--r--chip/mchp/qmspi.c1
-rw-r--r--chip/mchp/qmspi_chip.h1
-rw-r--r--chip/mchp/spi_chip.h1
-rw-r--r--chip/mchp/system.c1
-rw-r--r--chip/mec1322/spi.c1
-rw-r--r--chip/npcx/i2c-npcx5.c1
-rw-r--r--chip/npcx/keyboard_raw.c1
-rw-r--r--chip/npcx/sib.c1
-rw-r--r--chip/npcx/sib_chip.h1
-rw-r--r--chip/npcx/spiflashfw/npcx_monitor.c1
-rw-r--r--chip/nrf51/bluetooth_le.c1
-rw-r--r--chip/nrf51/config_chip.h1
-rw-r--r--chip/nrf51/hwtimer.c1
-rw-r--r--chip/nrf51/i2c.c1
-rw-r--r--chip/nrf51/radio.c1
-rw-r--r--chip/nrf51/radio_test.c1
-rw-r--r--chip/nrf51/registers.h1
-rw-r--r--chip/stm32/clock-stm32g4.c1
-rw-r--r--chip/stm32/config-stm32f09x.h1
-rw-r--r--chip/stm32/dma-stm32f4.c1
-rw-r--r--chip/stm32/i2c-stm32f0.c1
-rw-r--r--chip/stm32/registers-stm32g4.h1
-rw-r--r--chip/stm32/registers-stm32l4.h1
-rw-r--r--chip/stm32/registers-stm32l5.h1
-rw-r--r--chip/stm32/usb_power.c1
-rw-r--r--chip/stm32/usb_power.h1
36 files changed, 0 insertions, 36 deletions
diff --git a/chip/it83xx/dac_chip.h b/chip/it83xx/dac_chip.h
index fa50769c85..12e16eea0a 100644
--- a/chip/it83xx/dac_chip.h
+++ b/chip/it83xx/dac_chip.h
@@ -55,4 +55,3 @@ void dac_set_output_voltage(enum chip_dac_channel ch, int mv);
int dac_get_output_voltage(enum chip_dac_channel ch);
#endif /* __CROS_EC_DAC_CHIP_H */
-
diff --git a/chip/lm4/clock.c b/chip/lm4/clock.c
index 39800c9034..a54a6a88f0 100644
--- a/chip/lm4/clock.c
+++ b/chip/lm4/clock.c
@@ -751,4 +751,3 @@ DECLARE_CONSOLE_COMMAND(dsleep, command_dsleep,
"Give a timeout value for the console in use timeout.\n"
"See also 'sleepmask'.");
#endif /* CONFIG_LOW_POWER_IDLE */
-
diff --git a/chip/mchp/dma_chip.h b/chip/mchp/dma_chip.h
index 4784b2c922..308019f348 100644
--- a/chip/mchp/dma_chip.h
+++ b/chip/mchp/dma_chip.h
@@ -65,4 +65,3 @@ int dma_crc32_start(const uint8_t *mstart, const uint32_t nbytes, int ien);
#endif /* #ifndef _DMA_CHIP_H */
/** @}
*/
-
diff --git a/chip/mchp/gpio.c b/chip/mchp/gpio.c
index 611ced1019..28cb987e23 100644
--- a/chip/mchp/gpio.c
+++ b/chip/mchp/gpio.c
@@ -494,4 +494,3 @@ DECLARE_IRQ(MCHP_IRQ_GIRQ10, __girq_10_interrupt, 1);
DECLARE_IRQ(MCHP_IRQ_GIRQ11, __girq_11_interrupt, 1);
DECLARE_IRQ(MCHP_IRQ_GIRQ12, __girq_12_interrupt, 1);
DECLARE_IRQ(MCHP_IRQ_GIRQ26, __girq_26_interrupt, 1);
-
diff --git a/chip/mchp/gpio_chip.h b/chip/mchp/gpio_chip.h
index 7baaa76fa2..a22ba80a33 100644
--- a/chip/mchp/gpio_chip.h
+++ b/chip/mchp/gpio_chip.h
@@ -35,4 +35,3 @@ void gpio_power_off_by_mask(uint32_t port, uint32_t mask);
#endif /* #ifndef _GPIO_CHIP_H */
/** @}
*/
-
diff --git a/chip/mchp/gpio_cmds.c b/chip/mchp/gpio_cmds.c
index cbf5f4c462..7263909c9c 100644
--- a/chip/mchp/gpio_cmds.c
+++ b/chip/mchp/gpio_cmds.c
@@ -94,4 +94,3 @@ static int cmd_gp_set_config(int argc, char **argv)
DECLARE_CONSOLE_COMMAND(gpsetcfg, cmd_gp_set_config,
"gp_num val",
"Set GPIO config");
-
diff --git a/chip/mchp/gpspi.c b/chip/mchp/gpspi.c
index 5234db8260..c92813b300 100644
--- a/chip/mchp/gpspi.c
+++ b/chip/mchp/gpspi.c
@@ -264,4 +264,3 @@ int gpspi_enable(int hw_port, int enable)
return EC_SUCCESS;
}
-
diff --git a/chip/mchp/gpspi_chip.h b/chip/mchp/gpspi_chip.h
index 529a727e36..e1d83ed6d8 100644
--- a/chip/mchp/gpspi_chip.h
+++ b/chip/mchp/gpspi_chip.h
@@ -32,4 +32,3 @@ int gpspi_enable(int port, int enable);
#endif /* #ifndef _GPSPI_CHIP_H */
/** @}
*/
-
diff --git a/chip/mchp/lpc.c b/chip/mchp/lpc.c
index b5db07b88f..da4f8202e4 100644
--- a/chip/mchp/lpc.c
+++ b/chip/mchp/lpc.c
@@ -1019,4 +1019,3 @@ static int command_lpc(int argc, char **argv)
DECLARE_CONSOLE_COMMAND(lpc, command_lpc, "[sci|smi|wake]",
"Trigger SCI/SMI");
#endif
-
diff --git a/chip/mchp/port80.c b/chip/mchp/port80.c
index ecfd0b5ebb..08cb5b97cd 100644
--- a/chip/mchp/port80.c
+++ b/chip/mchp/port80.c
@@ -79,4 +79,3 @@ void port_80_interrupt(void)
}
DECLARE_IRQ(MCHP_IRQ_PORT80DBG0, port_80_interrupt, 3);
#endif
-
diff --git a/chip/mchp/qmspi.c b/chip/mchp/qmspi.c
index 72eaa91d37..b170d75283 100644
--- a/chip/mchp/qmspi.c
+++ b/chip/mchp/qmspi.c
@@ -697,4 +697,3 @@ int qmspi_enable(int hw_port, int enable)
return EC_SUCCESS;
}
-
diff --git a/chip/mchp/qmspi_chip.h b/chip/mchp/qmspi_chip.h
index 1a1d764267..8d836f22ff 100644
--- a/chip/mchp/qmspi_chip.h
+++ b/chip/mchp/qmspi_chip.h
@@ -64,4 +64,3 @@ uint8_t qmspi_xfr(const struct spi_device_t *spi_device,
#endif /* #ifndef _QMSPI_CHIP_H */
/** @}
*/
-
diff --git a/chip/mchp/spi_chip.h b/chip/mchp/spi_chip.h
index 75973e4a78..8a83968e49 100644
--- a/chip/mchp/spi_chip.h
+++ b/chip/mchp/spi_chip.h
@@ -57,4 +57,3 @@ const void *spi_dma_option(const struct spi_device_t *spi_device,
#endif /* #ifndef _QMSPI_CHIP_H */
/** @}
*/
-
diff --git a/chip/mchp/system.c b/chip/mchp/system.c
index d67314d716..356313fcd2 100644
--- a/chip/mchp/system.c
+++ b/chip/mchp/system.c
@@ -588,4 +588,3 @@ void system_set_image_copy(enum ec_image copy)
MCHP_VBAT_RAM(MCHP_IMAGETYPE_IDX) = (copy == EC_IMAGE_RW) ?
EC_IMAGE_RW : EC_IMAGE_RO;
}
-
diff --git a/chip/mec1322/spi.c b/chip/mec1322/spi.c
index 0c4174cecd..5cc25b8089 100644
--- a/chip/mec1322/spi.c
+++ b/chip/mec1322/spi.c
@@ -175,4 +175,3 @@ int spi_enable(const struct spi_device_t *spi_device, int enable)
return EC_SUCCESS;
}
-
diff --git a/chip/npcx/i2c-npcx5.c b/chip/npcx/i2c-npcx5.c
index 6b78fd53f9..89b5ec8072 100644
--- a/chip/npcx/i2c-npcx5.c
+++ b/chip/npcx/i2c-npcx5.c
@@ -44,4 +44,3 @@ int i2c_is_raw_mode(int port)
else
return 1;
}
-
diff --git a/chip/npcx/keyboard_raw.c b/chip/npcx/keyboard_raw.c
index e6b8cad7bd..8dc11c03ac 100644
--- a/chip/npcx/keyboard_raw.c
+++ b/chip/npcx/keyboard_raw.c
@@ -166,4 +166,3 @@ int keyboard_raw_is_input_low(int port, int id)
{
return (NPCX_PDIN(port) & BIT(id)) == 0;
}
-
diff --git a/chip/npcx/sib.c b/chip/npcx/sib.c
index b8e2e17955..b62946fc96 100644
--- a/chip/npcx/sib.c
+++ b/chip/npcx/sib.c
@@ -188,4 +188,3 @@ uint8_t sib_read_reg(uint8_t io_offset, uint8_t index_value)
return data_value;
}
-
diff --git a/chip/npcx/sib_chip.h b/chip/npcx/sib_chip.h
index 2341f219b4..1687c90925 100644
--- a/chip/npcx/sib_chip.h
+++ b/chip/npcx/sib_chip.h
@@ -20,4 +20,3 @@ void sib_write_reg(uint8_t io_offset, uint8_t index_value,
uint8_t sib_read_reg(uint8_t io_offset, uint8_t index_value);
/* Emulate host to read Keyboard I/O */
uint8_t sib_read_kbc_reg(uint8_t io_offset);
-
diff --git a/chip/npcx/spiflashfw/npcx_monitor.c b/chip/npcx/spiflashfw/npcx_monitor.c
index cd52e7a80f..f22037f8de 100644
--- a/chip/npcx/spiflashfw/npcx_monitor.c
+++ b/chip/npcx/spiflashfw/npcx_monitor.c
@@ -335,4 +335,3 @@ sspi_flash_upload(int spi_offset, int spi_size)
for (;;)
;
}
-
diff --git a/chip/nrf51/bluetooth_le.c b/chip/nrf51/bluetooth_le.c
index 89eb117efd..8a799cb7a9 100644
--- a/chip/nrf51/bluetooth_le.c
+++ b/chip/nrf51/bluetooth_le.c
@@ -534,4 +534,3 @@ static int command_ble_adv_scan(int argc, char **argv)
DECLARE_CONSOLE_COMMAND(ble_scan, command_ble_adv_scan,
"chan [num] [addr0]",
"Scan for [num] BLE packets on channel chan");
-
diff --git a/chip/nrf51/config_chip.h b/chip/nrf51/config_chip.h
index f63fff0fe3..7dbd200c05 100644
--- a/chip/nrf51/config_chip.h
+++ b/chip/nrf51/config_chip.h
@@ -61,4 +61,3 @@
#define GPIO_PIN_MASK(p, m) .port = GPIO_##p, .mask = (m)
#endif /* __CROS_EC_CONFIG_CHIP_H */
-
diff --git a/chip/nrf51/hwtimer.c b/chip/nrf51/hwtimer.c
index 980a889657..2f44df905c 100644
--- a/chip/nrf51/hwtimer.c
+++ b/chip/nrf51/hwtimer.c
@@ -176,4 +176,3 @@ int __hw_clock_source_init(uint32_t start_t)
return NRF51_PERID_TIMER(HWTIMER);
}
-
diff --git a/chip/nrf51/i2c.c b/chip/nrf51/i2c.c
index ff23152c89..419f9e87d6 100644
--- a/chip/nrf51/i2c.c
+++ b/chip/nrf51/i2c.c
@@ -301,4 +301,3 @@ int i2c_get_line_levels(int port)
return (i2c_raw_get_sda(port) ? I2C_LINE_SDA_HIGH : 0) |
(i2c_raw_get_scl(port) ? I2C_LINE_SCL_HIGH : 0);
}
-
diff --git a/chip/nrf51/radio.c b/chip/nrf51/radio.c
index af9d029a0d..74457577e2 100644
--- a/chip/nrf51/radio.c
+++ b/chip/nrf51/radio.c
@@ -56,4 +56,3 @@ int radio_init(enum nrf51_radio_mode_t mode)
return err_code;
}
-
diff --git a/chip/nrf51/radio_test.c b/chip/nrf51/radio_test.c
index 6c20874f4e..422ae590c4 100644
--- a/chip/nrf51/radio_test.c
+++ b/chip/nrf51/radio_test.c
@@ -181,4 +181,3 @@ int ble_test_rx(void)
return EC_SUCCESS;
}
-
diff --git a/chip/nrf51/registers.h b/chip/nrf51/registers.h
index daf014df72..5fbae4f3c2 100644
--- a/chip/nrf51/registers.h
+++ b/chip/nrf51/registers.h
@@ -717,4 +717,3 @@
#define NRF51_LPCOMP_PSEL REG32(NRF51_LPCOMP_BASE + 0x504)
#endif /* __CROS_EC_REGISTERS_H */
-
diff --git a/chip/stm32/clock-stm32g4.c b/chip/stm32/clock-stm32g4.c
index 42a00a0f6a..b0bf56d85f 100644
--- a/chip/stm32/clock-stm32g4.c
+++ b/chip/stm32/clock-stm32g4.c
@@ -291,4 +291,3 @@ int clock_is_module_enabled(enum module_id module)
return !!(STM32_RCC_AHB2ENR & STM32_RCC_AHB2ENR_ADC12EN);
return 0;
}
-
diff --git a/chip/stm32/config-stm32f09x.h b/chip/stm32/config-stm32f09x.h
index 9dc27a1fb2..527e84db1b 100644
--- a/chip/stm32/config-stm32f09x.h
+++ b/chip/stm32/config-stm32f09x.h
@@ -73,4 +73,3 @@
#define WP_BANK_COUNT 31
#define PSTATE_BANK 30
#define PSTATE_BANK_COUNT 1
-
diff --git a/chip/stm32/dma-stm32f4.c b/chip/stm32/dma-stm32f4.c
index 860874de8c..c721065fd3 100644
--- a/chip/stm32/dma-stm32f4.c
+++ b/chip/stm32/dma-stm32f4.c
@@ -331,4 +331,3 @@ DECLARE_DMA_IRQ(2, 6);
DECLARE_DMA_IRQ(2, 7);
#endif /* CONFIG_DMA_DEFAULT_HANDLERS */
-
diff --git a/chip/stm32/i2c-stm32f0.c b/chip/stm32/i2c-stm32f0.c
index cdf5421efc..dacaa80257 100644
--- a/chip/stm32/i2c-stm32f0.c
+++ b/chip/stm32/i2c-stm32f0.c
@@ -650,4 +650,3 @@ void i2c_init(void)
task_enable_irq(IRQ_PERIPHERAL);
#endif
}
-
diff --git a/chip/stm32/registers-stm32g4.h b/chip/stm32/registers-stm32g4.h
index e3a73a0fe9..5ad6194795 100644
--- a/chip/stm32/registers-stm32g4.h
+++ b/chip/stm32/registers-stm32g4.h
@@ -1503,4 +1503,3 @@ enum dmamux1_request {
#define STM32_UNIQUE_ID_LENGTH (3 * 4)
#endif /* !__ASSEMBLER__ */
-
diff --git a/chip/stm32/registers-stm32l4.h b/chip/stm32/registers-stm32l4.h
index 29965fe2ee..156994cc10 100644
--- a/chip/stm32/registers-stm32l4.h
+++ b/chip/stm32/registers-stm32l4.h
@@ -2111,4 +2111,3 @@ typedef volatile struct stm32_dma_regs stm32_dma_regs_t;
#define STM32_DMA_CCR_MEM2MEM BIT(14)
#endif /* !__ASSEMBLER__ */
-
diff --git a/chip/stm32/registers-stm32l5.h b/chip/stm32/registers-stm32l5.h
index 3a31b26ec9..08b3bc67b3 100644
--- a/chip/stm32/registers-stm32l5.h
+++ b/chip/stm32/registers-stm32l5.h
@@ -2421,4 +2421,3 @@ typedef volatile struct stm32_dma_regs stm32_dma_regs_t;
#define STM32_DMA_CCR_MEM2MEM BIT(14)
#endif /* !__ASSEMBLER__ */
-
diff --git a/chip/stm32/usb_power.c b/chip/stm32/usb_power.c
index 24dbff06cd..2950423219 100644
--- a/chip/stm32/usb_power.c
+++ b/chip/stm32/usb_power.c
@@ -730,4 +730,3 @@ void usb_power_deferred_cap(struct usb_power_config const *config)
if (config->state->state == USB_POWER_STATE_CAPTURING)
hook_call_deferred(config->deferred_cap, timeout);
}
-
diff --git a/chip/stm32/usb_power.h b/chip/stm32/usb_power.h
index 68b7f75ca2..51220691b6 100644
--- a/chip/stm32/usb_power.h
+++ b/chip/stm32/usb_power.h
@@ -380,4 +380,3 @@ void usb_power_event(struct usb_power_config const *config,
#endif /* __CROS_EC_USB_DWC_POWER_H */
-