From f2c135556015f2934dfa2d5d03335a86412f30d0 Mon Sep 17 00:00:00 2001
From: Alexandre Abadie <alexandre.abadie@inria.fr>
Date: Mon, 15 Oct 2018 15:00:04 +0200
Subject: [PATCH] drivers/adxl345: move scale factor macro to internal implem

---
 drivers/adxl345/adxl345.c                | 2 ++
 drivers/adxl345/include/adxl345_params.h | 2 --
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/drivers/adxl345/adxl345.c b/drivers/adxl345/adxl345.c
index 60dd4c5d05..183fbb1ff4 100644
--- a/drivers/adxl345/adxl345.c
+++ b/drivers/adxl345/adxl345.c
@@ -34,6 +34,8 @@
 #define ADXL345_BUS                 (dev->params->i2c)
 #define ADXL345_ADDR                (dev->params->addr)
 
+#define ADXL345_PARAM_SCALE_FACTOR  (4)
+
 int adxl345_init(adxl345_t *dev, const adxl345_params_t* params)
 {
     uint8_t reg;
diff --git a/drivers/adxl345/include/adxl345_params.h b/drivers/adxl345/include/adxl345_params.h
index 8f42b3139a..b465fa2562 100644
--- a/drivers/adxl345/include/adxl345_params.h
+++ b/drivers/adxl345/include/adxl345_params.h
@@ -54,8 +54,6 @@ extern "C" {
 #define ADXL345_PARAM_OFFSET        { 0, 0, 0 }
 #endif
 
-#define ADXL345_PARAM_SCALE_FACTOR  (4)
-
 #ifndef ADXL345_PARAMS
 #define ADXL345_PARAMS              { .i2c    = ADXL345_PARAM_I2C,       \
                                       .addr   = ADXL345_PARAM_ADDR,      \
-- 
GitLab