Skip to contentSkip to conversation

iio: adc: for kernel comment

PATCH In review Andy Shen Shen 2 participants 2 messages Sep 21, 2023 – Sep 23, 2023 IIO

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 iio: adc: for kernel comment

In line 460 of the palmas_gpadc.c file, fix kernel comment errors.

---
 drivers/iio/adc/palmas_gpadc.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/iio/adc/palmas_gpadc.c +1 -1
index e202ea18af10..203cbbc70719 100644
@@ -457,7 +457,7 @@ static int palmas_gpadc_get_calibrated_code(struct palmas_gpadc *adc,
  *
  * The gain error include both gain error, as specified in the datasheet, and
  * the gain error drift. These paramenters vary depending on device and whether
- * the the channel is calibrated (trimmed) or not.
+ * the channel is calibrated (trimmed) or not.
  */
 static int palmas_gpadc_threshold_with_tolerance(int val, const int INL,
 						 const int gain_error,
Signature · 1 line
2.31.1
maintainer
#1 lore raw
Quoted 1 line · On Thu, 21 Sep 2023 11:14:44 +0800 Andy Shen Shen <[email protected]> wrote:

In line 460 of the palmas_gpadc.c file, fix kernel comment errors.

For future reference (I've tweaked it this time) please include the driver name in the description and also say what the change was at least briefly (drop duplicated the).

Applied to the togreg branch of iio.git and pushed out as testing because other things on that branch need some build testing etc.

Thanks,

Jonathan

Quoted 19 lines
---
 drivers/iio/adc/palmas_gpadc.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/iio/adc/palmas_gpadc.c +1 -1
index e202ea18af10..203cbbc70719 100644
@@ -457,7 +457,7 @@ static int palmas_gpadc_get_calibrated_code(struct palmas_gpadc *adc,
  *
  * The gain error include both gain error, as specified in the datasheet, and
  * the gain error drift. These paramenters vary depending on device and whether
- * the the channel is calibrated (trimmed) or not.
+ * the channel is calibrated (trimmed) or not.
  */
 static int palmas_gpadc_threshold_with_tolerance(int val, const int INL,
 						 const int gain_error,