diff --git a/drivers/sensors/mpu60x0.c b/drivers/sensors/mpu60x0.c index 2bc6cb3705..e4b9f624bb 100644 --- a/drivers/sensors/mpu60x0.c +++ b/drivers/sensors/mpu60x0.c @@ -395,7 +395,7 @@ static int __mpu_write_reg_spi(FAR struct mpu_dev_s *dev, /* __mpu_read_reg(), but for i2c-connected devices. */ static int __mpu_read_reg_i2c(FAR struct mpu_dev_s *dev, - enum mpu_regaddr_e reg_addr, + uint8_t reg_addr, FAR uint8_t *buf, uint8_t len) { int ret; @@ -424,7 +424,7 @@ static int __mpu_read_reg_i2c(FAR struct mpu_dev_s *dev, } static int __mpu_write_reg_i2c(FAR struct mpu_dev_s *dev, - enum mpu_regaddr_e reg_addr, + uint8_t reg_addr, FAR const uint8_t *buf, uint8_t len) { int ret; @@ -870,7 +870,7 @@ static ssize_t mpu_write(FAR struct file *filep, FAR const char *buf, UNUSED(inode); UNUSED(dev); - snerr("ERROR: %p %p %d\n", inode, dev, len); + snerr("ERROR: %p %p %zu\n", inode, dev, len); return len; }