From 8664ca3cba11aa55c95e538d7d2add4a7820eac8 Mon Sep 17 00:00:00 2001 From: smlng Date: Mon, 26 Jun 2017 16:03:47 +0200 Subject: [PATCH] drivers, adxl345: fix constness in adxl345_init --- drivers/adxl345/adxl345.c | 2 +- drivers/include/adxl345.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/adxl345/adxl345.c b/drivers/adxl345/adxl345.c index 54343f827c..5239e65dbd 100644 --- a/drivers/adxl345/adxl345.c +++ b/drivers/adxl345/adxl345.c @@ -34,7 +34,7 @@ #define BUS (dev->i2c) #define ADDR (dev->addr) -int adxl345_init(adxl345_t *dev, adxl345_params_t* params) +int adxl345_init(adxl345_t *dev, const adxl345_params_t* params) { uint8_t reg; diff --git a/drivers/include/adxl345.h b/drivers/include/adxl345.h index 3684e5b892..a0dddd6b16 100644 --- a/drivers/include/adxl345.h +++ b/drivers/include/adxl345.h @@ -168,7 +168,7 @@ typedef struct { * @return ADXL345_NOI2C if initialization of I2C bus failed * @return ADXL345_NODEV if accelerometer test failed */ -int adxl345_init(adxl345_t *dev, adxl345_params_t* params); +int adxl345_init(adxl345_t *dev, const adxl345_params_t* params); /** * @brief Read accelerometer's data *