From 25707cad5cbe3a6955d0fd597f7449818dea4849 Mon Sep 17 00:00:00 2001 From: QMK Bot Date: Mon, 27 Dec 2021 15:08:44 -0800 Subject: [PATCH] Format code according to conventions (#15604) --- drivers/sensors/adns9800.c | 4 +--- drivers/sensors/pmw3360.h | 10 +++++----- 2 files changed, 6 insertions(+), 8 deletions(-) diff --git a/drivers/sensors/adns9800.c b/drivers/sensors/adns9800.c index 995c9e86141..425cf9912f2 100644 --- a/drivers/sensors/adns9800.c +++ b/drivers/sensors/adns9800.c @@ -77,9 +77,7 @@ #define MSB1 0x80 // clang-format on -void adns9800_spi_start(void) { - spi_start(ADNS9800_CS_PIN, false, ADNS9800_SPI_MODE, ADNS9800_SPI_DIVISOR); -} +void adns9800_spi_start(void) { spi_start(ADNS9800_CS_PIN, false, ADNS9800_SPI_MODE, ADNS9800_SPI_DIVISOR); } void adns9800_write(uint8_t reg_addr, uint8_t data) { adns9800_spi_start(); diff --git a/drivers/sensors/pmw3360.h b/drivers/sensors/pmw3360.h index df0c10d643c..b46fc9056e4 100644 --- a/drivers/sensors/pmw3360.h +++ b/drivers/sensors/pmw3360.h @@ -77,10 +77,10 @@ typedef struct { int8_t mdy; } report_pmw3360_t; -bool pmw3360_init(void); -void pmw3360_upload_firmware(void); -bool pmw3360_check_signature(void); -uint16_t pmw3360_get_cpi(void); -void pmw3360_set_cpi(uint16_t cpi); +bool pmw3360_init(void); +void pmw3360_upload_firmware(void); +bool pmw3360_check_signature(void); +uint16_t pmw3360_get_cpi(void); +void pmw3360_set_cpi(uint16_t cpi); /* Reads and clears the current delta values on the sensor */ report_pmw3360_t pmw3360_read_burst(void);