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: common: fix spelling mistakes in comments

Fix spelling mistakes in comments.

- exepects -> expects
- fuction -> function
- theoritical -> theoretical
- appopriate -> appropriate
- iio -> IIO

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
96f46405 5088fc74

+5 -5
+1 -1
drivers/iio/common/cros_ec_sensors/cros_ec_sensors.c
··· 106 106 switch (st->core.type) { 107 107 case MOTIONSENSE_TYPE_ACCEL: 108 108 /* 109 - * EC returns data in g, iio exepects m/s^2. 109 + * EC returns data in g, IIO expects m/s^2. 110 110 * Do not use IIO_G_TO_M_S_2 to avoid precision loss. 111 111 */ 112 112 *val = div_s64(val64 * 980665, 10);
+1 -1
drivers/iio/common/hid-sensors/hid-sensor-attributes.c
··· 346 346 EXPORT_SYMBOL_NS(hid_sensor_write_raw_hyst_rel_value, "IIO_HID"); 347 347 348 348 /* 349 - * This fuction applies the unit exponent to the scale. 349 + * This function applies the unit exponent to the scale. 350 350 * For example: 351 351 * 9.806650000 ->exp:2-> val0[980]val1[665000000] 352 352 * 9.000806000 ->exp:2-> val0[900]val1[80600000]
+2 -2
drivers/iio/common/inv_sensors/inv_sensors_timestamp.c
··· 154 154 valid = inv_update_chip_period(ts, period); 155 155 } 156 156 157 - /* no previous data, compute theoritical value from interrupt */ 157 + /* no previous data, compute theoretical value from interrupt */ 158 158 if (ts->timestamp == 0) { 159 159 /* elapsed time: sensor period * sensor samples number */ 160 160 interval = (int64_t)ts->period * (int64_t)sample_nb; ··· 185 185 186 186 /* 187 187 * After ODR change the time interval with the previous sample is 188 - * undertermined (depends when the change occures). So we compute the 188 + * undertermined (depends when the change occurs). So we compute the 189 189 * timestamp from the current interrupt using the new FIFO period, the 190 190 * total number of samples and the current sample numero. 191 191 */
+1 -1
drivers/iio/common/ms_sensors/ms_sensors_i2c.c
··· 96 96 * 97 97 * Generic ADC conversion & read function for Measurement Specialties 98 98 * devices. 99 - * The function will issue conversion command, sleep appopriate delay, and 99 + * The function will issue conversion command, sleep appropriate delay, and 100 100 * issue command to read ADC. 101 101 * 102 102 * Return: 0 on success, negative errno otherwise.