Commit d8b40181 authored by Martin Kelly's avatar Martin Kelly Committed by Jonathan Cameron

iio: imu: inv_mpu6050: minor wording fixes

Just some minor grammar/spelling fixes of things I noticed while reading
the code.
Signed-off-by: default avatarMartin Kelly <mkelly@xevo.com>
Signed-off-by: default avatarJonathan Cameron <Jonathan.Cameron@huawei.com>
parent edddddd9
...@@ -177,7 +177,7 @@ int inv_mpu6050_switch_engine(struct inv_mpu6050_state *st, bool en, u32 mask) ...@@ -177,7 +177,7 @@ int inv_mpu6050_switch_engine(struct inv_mpu6050_state *st, bool en, u32 mask)
return result; return result;
if (en) { if (en) {
/* Wait for output stabilize */ /* Wait for output to stabilize */
msleep(INV_MPU6050_TEMP_UP_TIME); msleep(INV_MPU6050_TEMP_UP_TIME);
if (mask == INV_MPU6050_BIT_PWR_GYRO_STBY) { if (mask == INV_MPU6050_BIT_PWR_GYRO_STBY) {
/* switch internal clock to PLL */ /* switch internal clock to PLL */
......
...@@ -53,7 +53,7 @@ static int inv_mpu6050_deselect_bypass(struct i2c_mux_core *muxc, u32 chan_id) ...@@ -53,7 +53,7 @@ static int inv_mpu6050_deselect_bypass(struct i2c_mux_core *muxc, u32 chan_id)
mutex_lock(&st->lock); mutex_lock(&st->lock);
/* It doesn't really mattter, if any of the calls fails */ /* It doesn't really matter if any of the calls fail */
regmap_write(st->map, st->reg->int_pin_cfg, st->irq_mask); regmap_write(st->map, st->reg->int_pin_cfg, st->irq_mask);
inv_mpu6050_set_power_itg(st, false); inv_mpu6050_set_power_itg(st, false);
......
...@@ -156,7 +156,7 @@ irqreturn_t inv_mpu6050_read_fifo(int irq, void *p) ...@@ -156,7 +156,7 @@ irqreturn_t inv_mpu6050_read_fifo(int irq, void *p)
bytes_per_datum += INV_MPU6050_BYTES_PER_3AXIS_SENSOR; bytes_per_datum += INV_MPU6050_BYTES_PER_3AXIS_SENSOR;
/* /*
* read fifo_count register to know how many bytes inside FIFO * read fifo_count register to know how many bytes are inside the FIFO
* right now * right now
*/ */
result = regmap_bulk_read(st->map, st->reg->fifo_count_h, data, result = regmap_bulk_read(st->map, st->reg->fifo_count_h, data,
...@@ -166,7 +166,7 @@ irqreturn_t inv_mpu6050_read_fifo(int irq, void *p) ...@@ -166,7 +166,7 @@ irqreturn_t inv_mpu6050_read_fifo(int irq, void *p)
fifo_count = be16_to_cpup((__be16 *)(&data[0])); fifo_count = be16_to_cpup((__be16 *)(&data[0]));
if (fifo_count < bytes_per_datum) if (fifo_count < bytes_per_datum)
goto end_session; goto end_session;
/* fifo count can't be odd number, if it is odd, reset fifo*/ /* fifo count can't be an odd number. If it is odd, reset the FIFO. */
if (fifo_count & 1) if (fifo_count & 1)
goto flush_fifo; goto flush_fifo;
if (fifo_count > INV_MPU6050_FIFO_THRESHOLD) if (fifo_count > INV_MPU6050_FIFO_THRESHOLD)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment