diff options
| author | Ryan <fauxpark@gmail.com> | 2023-01-21 03:21:17 +1100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-01-20 16:21:17 +0000 |
| commit | cf935d97ae479e7a1e1f2f2f248b93e52e4cc69e (patch) | |
| tree | cb7dc41b774171ce7036f963941ce801e868d8cd /drivers | |
| parent | 0f77ae6a20652c11bc252548bd28fd64f5fb6b97 (diff) | |
Fix functions with empty params (#19647)
* Fix functions with empty params
* Found a bunch more
Diffstat (limited to 'drivers')
| -rw-r--r-- | drivers/lcd/hd44780.c | 2 | ||||
| -rw-r--r-- | drivers/sensors/adns9800.c | 2 | ||||
| -rw-r--r-- | drivers/sensors/cirque_pinnacle.c | 2 | ||||
| -rw-r--r-- | drivers/usb2422.c | 8 |
4 files changed, 7 insertions, 7 deletions
diff --git a/drivers/lcd/hd44780.c b/drivers/lcd/hd44780.c index c988ebe56c..ccc50117ab 100644 --- a/drivers/lcd/hd44780.c +++ b/drivers/lcd/hd44780.c | |||
| @@ -158,7 +158,7 @@ void hd44780_on(bool cursor, bool blink) { | |||
| 158 | } | 158 | } |
| 159 | } | 159 | } |
| 160 | 160 | ||
| 161 | void hd44780_off() { | 161 | void hd44780_off(void) { |
| 162 | hd44780_command(HD44780_CMD_DISPLAY); | 162 | hd44780_command(HD44780_CMD_DISPLAY); |
| 163 | } | 163 | } |
| 164 | 164 | ||
diff --git a/drivers/sensors/adns9800.c b/drivers/sensors/adns9800.c index 3633f23e52..083ab34d9f 100644 --- a/drivers/sensors/adns9800.c +++ b/drivers/sensors/adns9800.c | |||
| @@ -99,7 +99,7 @@ uint8_t adns9800_read(uint8_t reg_addr) { | |||
| 99 | return data; | 99 | return data; |
| 100 | } | 100 | } |
| 101 | 101 | ||
| 102 | void adns9800_init() { | 102 | void adns9800_init(void) { |
| 103 | setPinOutput(ADNS9800_CS_PIN); | 103 | setPinOutput(ADNS9800_CS_PIN); |
| 104 | 104 | ||
| 105 | spi_init(); | 105 | spi_init(); |
diff --git a/drivers/sensors/cirque_pinnacle.c b/drivers/sensors/cirque_pinnacle.c index 4aed5fe67a..3131805c20 100644 --- a/drivers/sensors/cirque_pinnacle.c +++ b/drivers/sensors/cirque_pinnacle.c | |||
| @@ -87,7 +87,7 @@ void cirque_pinnacle_scale_data(pinnacle_data_t* coordinates, uint16_t xResoluti | |||
| 87 | } | 87 | } |
| 88 | 88 | ||
| 89 | // Clears Status1 register flags (SW_CC and SW_DR) | 89 | // Clears Status1 register flags (SW_CC and SW_DR) |
| 90 | void cirque_pinnacle_clear_flags() { | 90 | void cirque_pinnacle_clear_flags(void) { |
| 91 | RAP_Write(HOSTREG__STATUS1, HOSTREG__STATUS1_DEFVAL & ~(HOSTREG__STATUS1__COMMAND_COMPLETE | HOSTREG__STATUS1__DATA_READY)); | 91 | RAP_Write(HOSTREG__STATUS1, HOSTREG__STATUS1_DEFVAL & ~(HOSTREG__STATUS1__COMMAND_COMPLETE | HOSTREG__STATUS1__DATA_READY)); |
| 92 | wait_us(50); | 92 | wait_us(50); |
| 93 | } | 93 | } |
diff --git a/drivers/usb2422.c b/drivers/usb2422.c index 8ee54b24ee..1d33b5acf8 100644 --- a/drivers/usb2422.c +++ b/drivers/usb2422.c | |||
| @@ -344,7 +344,7 @@ static void USB2422_write_block(void) { | |||
| 344 | 344 | ||
| 345 | // *************************************************************** | 345 | // *************************************************************** |
| 346 | 346 | ||
| 347 | void USB2422_init() { | 347 | void USB2422_init(void) { |
| 348 | #ifdef USB2422_RESET_PIN | 348 | #ifdef USB2422_RESET_PIN |
| 349 | setPinOutput(USB2422_RESET_PIN); | 349 | setPinOutput(USB2422_RESET_PIN); |
| 350 | #endif | 350 | #endif |
| @@ -355,7 +355,7 @@ void USB2422_init() { | |||
| 355 | i2c_init(); // IC2 clk must be high at USB2422 reset release time to signal SMB configuration | 355 | i2c_init(); // IC2 clk must be high at USB2422 reset release time to signal SMB configuration |
| 356 | } | 356 | } |
| 357 | 357 | ||
| 358 | void USB2422_configure() { | 358 | void USB2422_configure(void) { |
| 359 | static const char SERNAME[] = "Unavailable"; | 359 | static const char SERNAME[] = "Unavailable"; |
| 360 | 360 | ||
| 361 | memset(&config, 0, sizeof(Usb2422_t)); | 361 | memset(&config, 0, sizeof(Usb2422_t)); |
| @@ -385,7 +385,7 @@ void USB2422_configure() { | |||
| 385 | USB2422_write_block(); | 385 | USB2422_write_block(); |
| 386 | } | 386 | } |
| 387 | 387 | ||
| 388 | void USB2422_reset() { | 388 | void USB2422_reset(void) { |
| 389 | #ifdef USB2422_RESET_PIN | 389 | #ifdef USB2422_RESET_PIN |
| 390 | writePinLow(USB2422_RESET_PIN); | 390 | writePinLow(USB2422_RESET_PIN); |
| 391 | wait_us(2); | 391 | wait_us(2); |
| @@ -393,7 +393,7 @@ void USB2422_reset() { | |||
| 393 | #endif | 393 | #endif |
| 394 | } | 394 | } |
| 395 | 395 | ||
| 396 | bool USB2422_active() { | 396 | bool USB2422_active(void) { |
| 397 | #ifdef USB2422_ACTIVE_PIN | 397 | #ifdef USB2422_ACTIVE_PIN |
| 398 | return readPin(USB2422_ACTIVE_PIN); | 398 | return readPin(USB2422_ACTIVE_PIN); |
| 399 | #else | 399 | #else |
