summaryrefslogtreecommitdiff
path: root/drivers
diff options
context:
space:
mode:
authorJoel Challis <git@zvecr.com>2025-07-07 16:15:50 +0100
committerGitHub <noreply@github.com>2025-07-07 16:15:50 +0100
commit7827f9fbe369bd9ad6c30c88f36ab53dafbb719d (patch)
tree8acee69b130c7d0dcbafe606340a9905da0a0c8c /drivers
parentd9f2d8d241be9ca96a5c7c7fde8de1308a7c5f14 (diff)
Compilation fixes for `-fno-common` (#25436)
Diffstat (limited to 'drivers')
-rw-r--r--drivers/sensors/adns5050.h2
-rw-r--r--drivers/sensors/adns9800.h2
-rw-r--r--drivers/sensors/analog_joystick.h2
-rw-r--r--drivers/sensors/azoteq_iqs5xx.h2
-rw-r--r--drivers/sensors/cirque_pinnacle.h2
-rw-r--r--drivers/sensors/paw3204.h2
-rw-r--r--drivers/sensors/pimoroni_trackball.h2
-rw-r--r--drivers/sensors/pmw3320.h2
-rw-r--r--drivers/sensors/pmw33xx_common.h2
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
73const pointing_device_driver_t adns5050_pointing_device_driver; 73extern 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
64const pointing_device_driver_t adns9800_pointing_device_driver; 64extern const pointing_device_driver_t adns9800_pointing_device_driver;
65 65
66bool adns9800_init(void); 66bool adns9800_init(void);
67config_adns9800_t adns9800_get_config(void); 67config_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
46const pointing_device_driver_t analog_joystick_pointing_device_driver; 46extern const pointing_device_driver_t analog_joystick_pointing_device_driver;
47 47
48typedef struct { 48typedef 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
181const pointing_device_driver_t azoteq_iqs5xx_pointing_device_driver; 181extern const pointing_device_driver_t azoteq_iqs5xx_pointing_device_driver;
182 182
183bool azoteq_iqs5xx_init(void); 183bool azoteq_iqs5xx_init(void);
184i2c_status_t azoteq_iqs5xx_wake(void); 184i2c_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
115const pointing_device_driver_t cirque_pinnacle_pointing_device_driver; 115extern const pointing_device_driver_t cirque_pinnacle_pointing_device_driver;
116 116
117bool cirque_pinnacle_init(void); 117bool cirque_pinnacle_init(void);
118void cirque_pinnacle_calibrate(void); 118void 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
44const pointing_device_driver_t paw3204_pointing_device_driver; 44extern 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
53const pointing_device_driver_t pimoroni_trackball_pointing_device_driver; 53extern const pointing_device_driver_t pimoroni_trackball_pointing_device_driver;
54 54
55bool pimoroni_trackball_device_init(void); 55bool pimoroni_trackball_device_init(void);
56void pimoroni_trackball_set_rgbw(uint8_t red, uint8_t green, uint8_t blue, uint8_t white); 56void 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
58const pointing_device_driver_t pmw3320_pointing_device_driver; 58extern 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;
109const pointing_device_driver_t pmw33xx_pointing_device_driver; 109extern 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