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

iio: adc: Fix typos in comments across various files

This commit fixes several typographical errors in comments within
the drivers/iio/adc directory. No functional changes are made.

Detected using codespell.

Signed-off-by: Yu Jiaoliang <yujiaoliang@vivo.com>
Link: https://patch.msgid.link/20240926034411.3482986-1-yujiaoliang@vivo.com
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>

authored by

Yu Jiaoliang and committed by
Jonathan Cameron
0b0c0049 aa6b1dd1

+12 -12
+1 -1
drivers/iio/adc/ad7091r-base.h
··· 65 65 struct regulator *vref; 66 66 const struct ad7091r_chip_info *chip_info; 67 67 enum ad7091r_mode mode; 68 - struct mutex lock; /*lock to prevent concurent reads */ 68 + struct mutex lock; /*lock to prevent concurrent reads */ 69 69 __be16 tx_buf __aligned(IIO_DMA_MINALIGN); 70 70 __be16 rx_buf; 71 71 };
+1 -1
drivers/iio/adc/ad7606.h
··· 75 75 * oversampling ratios. 76 76 * @oversampling_num number of elements stored in oversampling_avail array 77 77 * @os_req_reset some devices require a reset to update oversampling 78 - * @init_delay_ms required delay in miliseconds for initialization 78 + * @init_delay_ms required delay in milliseconds for initialization 79 79 * after a restart 80 80 */ 81 81 struct ad7606_chip_info {
+1 -1
drivers/iio/adc/ad7887.c
··· 41 41 }; 42 42 43 43 /** 44 - * struct ad7887_chip_info - chip specifc information 44 + * struct ad7887_chip_info - chip specific information 45 45 * @int_vref_mv: the internal reference voltage 46 46 * @channels: channels specification 47 47 * @num_channels: number of channels
+2 -2
drivers/iio/adc/ad_sigma_delta.c
··· 469 469 /* 470 470 * Data array after transfer will look like (if status is appended): 471 471 * data[] = { [0][sample][sample][sample][status] } 472 - * Keeping the first byte 0 shifts the status postion by 1 byte to the right. 472 + * Keeping the first byte 0 shifts the status position by 1 byte to the right. 473 473 */ 474 474 status_pos = reg_size + 1; 475 475 ··· 656 656 sigma_delta->spi = spi; 657 657 sigma_delta->info = info; 658 658 659 - /* If the field is unset in ad_sigma_delta_info, asume there can only be 1 slot. */ 659 + /* If the field is unset in ad_sigma_delta_info, assume there can only be 1 slot. */ 660 660 if (!info->num_slots) 661 661 sigma_delta->num_slots = 1; 662 662 else
+1 -1
drivers/iio/adc/max34408.c
··· 161 161 return IIO_VAL_INT; 162 162 case IIO_CHAN_INFO_SCALE: 163 163 /* 164 - * calcluate current for 8bit ADC with Rsense 164 + * calculate current for 8bit ADC with Rsense 165 165 * value. 166 166 * 10 mV * 1000 / Rsense uOhm = max current 167 167 * (max current * adc val * 1000) / (2^8 - 1) mA
+1 -1
drivers/iio/adc/pac1921.c
··· 1077 1077 /* 1078 1078 * Init control register: 1079 1079 * - VPower free run integration mode 1080 - * - OUT pin full scale range: 3V (HW detault) 1080 + * - OUT pin full scale range: 3V (HW default) 1081 1081 * - no timeout, no sleep, no sleep override, no recalc (HW defaults) 1082 1082 */ 1083 1083 val = FIELD_PREP(PAC1921_CONTROL_MXSL_MASK,
+1 -1
drivers/iio/adc/palmas_gpadc.c
··· 456 456 * raw high threshold = (ideal threshold + INL) * gain error + offset error 457 457 * 458 458 * The gain error include both gain error, as specified in the datasheet, and 459 - * the gain error drift. These paramenters vary depending on device and whether 459 + * the gain error drift. These parameters vary depending on device and whether 460 460 * the channel is calibrated (trimmed) or not. 461 461 */ 462 462 static int palmas_gpadc_threshold_with_tolerance(int val, const int INL,
+1 -1
drivers/iio/adc/ti-ads1298.c
··· 294 294 if (ret) 295 295 return ret; 296 296 297 - /* Refererence in millivolts */ 297 + /* Reference in millivolts */ 298 298 *val = regval & ADS1298_MASK_CONFIG3_VREF_4V ? 4000 : 2400; 299 299 } 300 300
+1 -1
drivers/iio/adc/ti_am335x_adc.c
··· 494 494 /* 495 495 * We check the complete FIFO. We programmed just one entry but in case 496 496 * something went wrong we left empty handed (-EAGAIN previously) and 497 - * then the value apeared somehow in the FIFO we would have two entries. 497 + * then the value appeared somehow in the FIFO we would have two entries. 498 498 * Therefore we read every item and keep only the latest version of the 499 499 * requested channel. 500 500 */
+1 -1
drivers/iio/adc/twl4030-madc.c
··· 248 248 {15, 100}, /* CHANNEL 11 */ 249 249 {1, 4}, /* CHANNEL 12 */ 250 250 {1, 1}, /* CHANNEL 13 Reserved channels */ 251 - {1, 1}, /* CHANNEL 14 Reseved channels */ 251 + {1, 1}, /* CHANNEL 14 Reserved channels */ 252 252 {5, 11}, /* CHANNEL 15 */ 253 253 }; 254 254
+1 -1
drivers/iio/adc/xilinx-xadc-events.c
··· 220 220 /* 221 221 * Since we store the hysteresis as relative (to the threshold) 222 222 * value, but the hardware expects an absolute value we need to 223 - * recalcualte this value whenever the hysteresis or the 223 + * recalculate this value whenever the hysteresis or the 224 224 * threshold changes. 225 225 */ 226 226 if (xadc->threshold[offset] < xadc->temp_hysteresis)