1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2024-12-29 04:50:03 +01:00

Merge pull request #7243 from smlng/drivers/adxl345/fix_const

drivers, adxl345: fix constness in adxl345_init
This commit is contained in:
Alexandre Abadie 2017-06-26 16:12:07 +02:00 committed by GitHub
commit e4cc780f71
2 changed files with 2 additions and 2 deletions

View File

@ -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;

View File

@ -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
*