Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

iio: magnetometer: fix various spelling mistakes

Fix spelling mistakes in comments.

- follwing -> following
- atleast -> at least
- occured -> occurred
- measurment -> measurement
- rougly -> roughly

Signed-off-by: Shi Hao <i.shihao.999@gmail.com>
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>

authored by

Shi Hao and committed by
Jonathan Cameron
2354338c d5036cd3

+5 -5
+1 -1
drivers/iio/magnetometer/ak8974.c
··· 577 577 /* 578 578 * This explicit cast to (s16) is necessary as the measurement 579 579 * is done in 2's complement with positive and negative values. 580 - * The follwing assignment to *val will then convert the signed 580 + * The following assignment to *val will then convert the signed 581 581 * s16 value to a signed int value. 582 582 */ 583 583 *val = (s16)le16_to_cpu(hw_values[address]);
+3 -3
drivers/iio/magnetometer/ak8975.c
··· 545 545 return ret; 546 546 } 547 547 data->cntl_cache = regval; 548 - /* After mode change wait atleast 100us */ 548 + /* After mode change wait at least 100us */ 549 549 usleep_range(100, 500); 550 550 551 551 return 0; ··· 697 697 return read_status; 698 698 } 699 699 700 - /* Returns 0 if the end of conversion interrupt occured or -ETIME otherwise */ 700 + /* Returns 0 if the end of conversion interrupt occurred or -ETIME otherwise */ 701 701 static int wait_conversion_complete_interrupt(struct ak8975_data *data) 702 702 { 703 703 int ret; ··· 759 759 if (ret < 0) 760 760 goto exit; 761 761 762 - /* Read out ST2 for release lock on measurment data. */ 762 + /* Read out ST2 for release lock on measurement data. */ 763 763 ret = i2c_smbus_read_byte_data(client, data->def->ctrl_regs[ST2]); 764 764 if (ret < 0) { 765 765 dev_err(&client->dev, "Error in reading ST2\n");
+1 -1
drivers/iio/magnetometer/yamaha-yas530.c
··· 1223 1223 * as the values for [x, y1, y2]. The value is +/-31 1224 1224 * but the effect on the raw values is much larger. 1225 1225 * The effect of the offset is to bring the measure 1226 - * rougly to the center. 1226 + * roughly to the center. 1227 1227 */ 1228 1228 ox = 0; 1229 1229 oy1 = 0;