sensors/mpu60x0: fix build warning about data type
This commit is contained in:
parent
8d7c1541c5
commit
56c6943311
@ -395,7 +395,7 @@ static int __mpu_write_reg_spi(FAR struct mpu_dev_s *dev,
|
|||||||
/* __mpu_read_reg(), but for i2c-connected devices. */
|
/* __mpu_read_reg(), but for i2c-connected devices. */
|
||||||
|
|
||||||
static int __mpu_read_reg_i2c(FAR struct mpu_dev_s *dev,
|
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)
|
FAR uint8_t *buf, uint8_t len)
|
||||||
{
|
{
|
||||||
int ret;
|
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,
|
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)
|
FAR const uint8_t *buf, uint8_t len)
|
||||||
{
|
{
|
||||||
int ret;
|
int ret;
|
||||||
@ -870,7 +870,7 @@ static ssize_t mpu_write(FAR struct file *filep, FAR const char *buf,
|
|||||||
|
|
||||||
UNUSED(inode);
|
UNUSED(inode);
|
||||||
UNUSED(dev);
|
UNUSED(dev);
|
||||||
snerr("ERROR: %p %p %d\n", inode, dev, len);
|
snerr("ERROR: %p %p %zu\n", inode, dev, len);
|
||||||
|
|
||||||
return len;
|
return len;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user