From 723cfe0da7b609ad94d1e33766cc41bf6670c5ef Mon Sep 17 00:00:00 2001 From: David Pinho Date: Sat, 20 Apr 2024 14:22:30 +0100 Subject: [PATCH] make mpuIntExtiHandler() static (#13520) (#13549) Function was made public in e126f1 for SPI case but seems unused outside the module. Make it static for all preprocessor cases and remove declaration. --- src/main/drivers/accgyro/accgyro_mpu.c | 2 +- src/main/drivers/accgyro/accgyro_mpu.h | 1 - 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/src/main/drivers/accgyro/accgyro_mpu.c b/src/main/drivers/accgyro/accgyro_mpu.c index 7ccb622932..ff7b0d8fd3 100644 --- a/src/main/drivers/accgyro/accgyro_mpu.c +++ b/src/main/drivers/accgyro/accgyro_mpu.c @@ -133,7 +133,7 @@ busStatus_e mpuIntCallback(uint32_t arg) return BUS_READY; } -void mpuIntExtiHandler(extiCallbackRec_t *cb) +static void mpuIntExtiHandler(extiCallbackRec_t *cb) { gyroDev_t *gyro = container_of(cb, gyroDev_t, exti); diff --git a/src/main/drivers/accgyro/accgyro_mpu.h b/src/main/drivers/accgyro/accgyro_mpu.h index aac3826ff9..eebb76e8f2 100644 --- a/src/main/drivers/accgyro/accgyro_mpu.h +++ b/src/main/drivers/accgyro/accgyro_mpu.h @@ -233,4 +233,3 @@ bool mpuAccRead(struct accDev_s *acc); bool mpuAccReadSPI(struct accDev_s *acc); busStatus_e mpuIntCallback(uint32_t arg); -void mpuIntExtiHandler(extiCallbackRec_t *cb);