diff options
| author | Joel Challis <git@zvecr.com> | 2025-07-07 16:15:50 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-07-07 16:15:50 +0100 |
| commit | 7827f9fbe369bd9ad6c30c88f36ab53dafbb719d (patch) | |
| tree | 8acee69b130c7d0dcbafe606340a9905da0a0c8c /drivers | |
| parent | d9f2d8d241be9ca96a5c7c7fde8de1308a7c5f14 (diff) | |
Compilation fixes for `-fno-common` (#25436)
Diffstat (limited to 'drivers')
| -rw-r--r-- | drivers/sensors/adns5050.h | 2 | ||||
| -rw-r--r-- | drivers/sensors/adns9800.h | 2 | ||||
| -rw-r--r-- | drivers/sensors/analog_joystick.h | 2 | ||||
| -rw-r--r-- | drivers/sensors/azoteq_iqs5xx.h | 2 | ||||
| -rw-r--r-- | drivers/sensors/cirque_pinnacle.h | 2 | ||||
| -rw-r--r-- | drivers/sensors/paw3204.h | 2 | ||||
| -rw-r--r-- | drivers/sensors/pimoroni_trackball.h | 2 | ||||
| -rw-r--r-- | drivers/sensors/pmw3320.h | 2 | ||||
| -rw-r--r-- | drivers/sensors/pmw33xx_common.h | 2 |
9 files changed, 9 insertions, 9 deletions
diff --git a/drivers/sensors/adns5050.h b/drivers/sensors/adns5050.h index 004c54f560..648b49e387 100644 --- a/drivers/sensors/adns5050.h +++ b/drivers/sensors/adns5050.h | |||
| @@ -70,7 +70,7 @@ typedef struct { | |||
| 70 | int8_t dy; | 70 | int8_t dy; |
| 71 | } report_adns5050_t; | 71 | } report_adns5050_t; |
| 72 | 72 | ||
| 73 | const pointing_device_driver_t adns5050_pointing_device_driver; | 73 | extern const pointing_device_driver_t adns5050_pointing_device_driver; |
| 74 | 74 | ||
| 75 | // A bunch of functions to implement the ADNS5050-specific serial protocol. | 75 | // A bunch of functions to implement the ADNS5050-specific serial protocol. |
| 76 | // Note that the "serial.h" driver is insufficient, because it does not | 76 | // Note that the "serial.h" driver is insufficient, because it does not |
diff --git a/drivers/sensors/adns9800.h b/drivers/sensors/adns9800.h index 797aaf3cd0..ea854e8675 100644 --- a/drivers/sensors/adns9800.h +++ b/drivers/sensors/adns9800.h | |||
| @@ -61,7 +61,7 @@ typedef struct { | |||
| 61 | int16_t y; | 61 | int16_t y; |
| 62 | } report_adns9800_t; | 62 | } report_adns9800_t; |
| 63 | 63 | ||
| 64 | const pointing_device_driver_t adns9800_pointing_device_driver; | 64 | extern const pointing_device_driver_t adns9800_pointing_device_driver; |
| 65 | 65 | ||
| 66 | bool adns9800_init(void); | 66 | bool adns9800_init(void); |
| 67 | config_adns9800_t adns9800_get_config(void); | 67 | config_adns9800_t adns9800_get_config(void); |
diff --git a/drivers/sensors/analog_joystick.h b/drivers/sensors/analog_joystick.h index 4838f502f1..f8cc315533 100644 --- a/drivers/sensors/analog_joystick.h +++ b/drivers/sensors/analog_joystick.h | |||
| @@ -43,7 +43,7 @@ | |||
| 43 | # define ANALOG_JOYSTICK_SPEED_MAX 2 | 43 | # define ANALOG_JOYSTICK_SPEED_MAX 2 |
| 44 | #endif | 44 | #endif |
| 45 | 45 | ||
| 46 | const pointing_device_driver_t analog_joystick_pointing_device_driver; | 46 | extern const pointing_device_driver_t analog_joystick_pointing_device_driver; |
| 47 | 47 | ||
| 48 | typedef struct { | 48 | typedef struct { |
| 49 | int8_t x; | 49 | int8_t x; |
diff --git a/drivers/sensors/azoteq_iqs5xx.h b/drivers/sensors/azoteq_iqs5xx.h index 1a70ac6149..a5866b3d85 100644 --- a/drivers/sensors/azoteq_iqs5xx.h +++ b/drivers/sensors/azoteq_iqs5xx.h | |||
| @@ -178,7 +178,7 @@ typedef struct { | |||
| 178 | # define POINTING_DEVICE_TASK_THROTTLE_MS AZOTEQ_IQS5XX_REPORT_RATE + 1 | 178 | # define POINTING_DEVICE_TASK_THROTTLE_MS AZOTEQ_IQS5XX_REPORT_RATE + 1 |
| 179 | #endif | 179 | #endif |
| 180 | 180 | ||
| 181 | const pointing_device_driver_t azoteq_iqs5xx_pointing_device_driver; | 181 | extern const pointing_device_driver_t azoteq_iqs5xx_pointing_device_driver; |
| 182 | 182 | ||
| 183 | bool azoteq_iqs5xx_init(void); | 183 | bool azoteq_iqs5xx_init(void); |
| 184 | i2c_status_t azoteq_iqs5xx_wake(void); | 184 | i2c_status_t azoteq_iqs5xx_wake(void); |
diff --git a/drivers/sensors/cirque_pinnacle.h b/drivers/sensors/cirque_pinnacle.h index 3541d62463..f71ee8da1f 100644 --- a/drivers/sensors/cirque_pinnacle.h +++ b/drivers/sensors/cirque_pinnacle.h | |||
| @@ -112,7 +112,7 @@ typedef struct { | |||
| 112 | 112 | ||
| 113 | #define cirque_pinnacle_i2c_pointing_device_driver cirque_pinnacle_pointing_device_driver | 113 | #define cirque_pinnacle_i2c_pointing_device_driver cirque_pinnacle_pointing_device_driver |
| 114 | #define cirque_pinnacle_spi_pointing_device_driver cirque_pinnacle_pointing_device_driver | 114 | #define cirque_pinnacle_spi_pointing_device_driver cirque_pinnacle_pointing_device_driver |
| 115 | const pointing_device_driver_t cirque_pinnacle_pointing_device_driver; | 115 | extern const pointing_device_driver_t cirque_pinnacle_pointing_device_driver; |
| 116 | 116 | ||
| 117 | bool cirque_pinnacle_init(void); | 117 | bool cirque_pinnacle_init(void); |
| 118 | void cirque_pinnacle_calibrate(void); | 118 | void cirque_pinnacle_calibrate(void); |
diff --git a/drivers/sensors/paw3204.h b/drivers/sensors/paw3204.h index 11759d64c3..0bf5713548 100644 --- a/drivers/sensors/paw3204.h +++ b/drivers/sensors/paw3204.h | |||
| @@ -41,7 +41,7 @@ typedef struct { | |||
| 41 | bool isMotion; | 41 | bool isMotion; |
| 42 | } report_paw3204_t; | 42 | } report_paw3204_t; |
| 43 | 43 | ||
| 44 | const pointing_device_driver_t paw3204_pointing_device_driver; | 44 | extern const pointing_device_driver_t paw3204_pointing_device_driver; |
| 45 | 45 | ||
| 46 | /** | 46 | /** |
| 47 | * @brief Initializes the sensor so it is in a working state and ready to | 47 | * @brief Initializes the sensor so it is in a working state and ready to |
diff --git a/drivers/sensors/pimoroni_trackball.h b/drivers/sensors/pimoroni_trackball.h index 4b8a2548ae..74ae6d7228 100644 --- a/drivers/sensors/pimoroni_trackball.h +++ b/drivers/sensors/pimoroni_trackball.h | |||
| @@ -50,7 +50,7 @@ typedef struct { | |||
| 50 | uint8_t click; | 50 | uint8_t click; |
| 51 | } pimoroni_data_t; | 51 | } pimoroni_data_t; |
| 52 | 52 | ||
| 53 | const pointing_device_driver_t pimoroni_trackball_pointing_device_driver; | 53 | extern const pointing_device_driver_t pimoroni_trackball_pointing_device_driver; |
| 54 | 54 | ||
| 55 | bool pimoroni_trackball_device_init(void); | 55 | bool pimoroni_trackball_device_init(void); |
| 56 | void pimoroni_trackball_set_rgbw(uint8_t red, uint8_t green, uint8_t blue, uint8_t white); | 56 | void pimoroni_trackball_set_rgbw(uint8_t red, uint8_t green, uint8_t blue, uint8_t white); |
diff --git a/drivers/sensors/pmw3320.h b/drivers/sensors/pmw3320.h index 42fd72a52c..c80eb8e145 100644 --- a/drivers/sensors/pmw3320.h +++ b/drivers/sensors/pmw3320.h | |||
| @@ -55,7 +55,7 @@ typedef struct { | |||
| 55 | int8_t dy; | 55 | int8_t dy; |
| 56 | } report_pmw3320_t; | 56 | } report_pmw3320_t; |
| 57 | 57 | ||
| 58 | const pointing_device_driver_t pmw3320_pointing_device_driver; | 58 | extern const pointing_device_driver_t pmw3320_pointing_device_driver; |
| 59 | 59 | ||
| 60 | // A bunch of functions to implement the PMW3320-specific serial protocol. | 60 | // A bunch of functions to implement the PMW3320-specific serial protocol. |
| 61 | // Mostly taken from ADNS5050 driver. | 61 | // Mostly taken from ADNS5050 driver. |
diff --git a/drivers/sensors/pmw33xx_common.h b/drivers/sensors/pmw33xx_common.h index 8fb10b1b2f..ff890f49a9 100644 --- a/drivers/sensors/pmw33xx_common.h +++ b/drivers/sensors/pmw33xx_common.h | |||
| @@ -106,7 +106,7 @@ STATIC_ASSERT(sizeof((pmw33xx_report_t){0}.motion) == 1, "pmw33xx_report_t.motio | |||
| 106 | 106 | ||
| 107 | #define pmw3360_pointing_device_driver pmw33xx_pointing_device_driver; | 107 | #define pmw3360_pointing_device_driver pmw33xx_pointing_device_driver; |
| 108 | #define pmw3389_pointing_device_driver pmw33xx_pointing_device_driver; | 108 | #define pmw3389_pointing_device_driver pmw33xx_pointing_device_driver; |
| 109 | const pointing_device_driver_t pmw33xx_pointing_device_driver; | 109 | extern const pointing_device_driver_t pmw33xx_pointing_device_driver; |
| 110 | 110 | ||
| 111 | /** | 111 | /** |
| 112 | * @brief Initializes the given sensor so it is in a working state and ready to | 112 | * @brief Initializes the given sensor so it is in a working state and ready to |
