Linux IIO development
 help / color / mirror / Atom feed
* [PATCH] iio: adc: qcom-vadc-common: fix vadc_scale_fn_type kernel-doc
@ 2025-10-17  7:07 Randy Dunlap
  2025-10-19  8:44 ` Jonathan Cameron
  0 siblings, 1 reply; 2+ messages in thread
From: Randy Dunlap @ 2025-10-17  7:07 UTC (permalink / raw)
  To: linux-kernel
  Cc: Randy Dunlap, Daniel Lezcano, Linus Walleij, Jonathan Cameron,
	David Lechner, Nuno Sá, Andy Shevchenko, linux-iio

Fix multiple warnings in enum vadc_scale_fn_type by adding a leading
'@' to the kernel-doc descriptions.

Fixed 14 warnings in this one enum, such as:
Warning: include/linux/iio/adc/qcom-vadc-common.h:123 Enum value
 'SCALE_DEFAULT' not described in enum 'vadc_scale_fn_type'
Warning: ../include/linux/iio/adc/qcom-vadc-common.h:123 Enum value
 'SCALE_THERM_100K_PULLUP' not described in enum 'vadc_scale_fn_type'
Warning: ../include/linux/iio/adc/qcom-vadc-common.h:123 Enum value
 'SCALE_PMIC_THERM' not described in enum 'vadc_scale_fn_type'

Also prevent the warning on SCALE_HW_CALIB_INVALID by marking it
"private:" so that kernel-doc notation is not needed for it.

This leaves only one warning here, which I don't know the
appropriate description of:
qcom-vadc-common.h:125: warning: Enum value
 'SCALE_HW_CALIB_PMIC_THERM_PM7' not described in enum 'vadc_scale_fn_type'

Signed-off-by: Randy Dunlap <rdunlap@infradead.org>
---
Cc: Daniel Lezcano <daniel.lezcano@linaro.org>
Cc: Linus Walleij <linus.walleij@linaro.org>
Cc: Jonathan Cameron <jic23@kernel.org>
Cc: David Lechner <dlechner@baylibre.com>
Cc: Nuno Sá <nuno.sa@analog.com>
Cc: Andy Shevchenko <andy@kernel.org>
Cc: linux-iio@vger.kernel.org
---
 include/linux/iio/adc/qcom-vadc-common.h |   27 ++++++++++-----------
 1 file changed, 14 insertions(+), 13 deletions(-)

--- linux-next-20251016.orig/include/linux/iio/adc/qcom-vadc-common.h
+++ linux-next-20251016/include/linux/iio/adc/qcom-vadc-common.h
@@ -83,27 +83,27 @@ struct vadc_linear_graph {
 /**
  * enum vadc_scale_fn_type - Scaling function to convert ADC code to
  *				physical scaled units for the channel.
- * SCALE_DEFAULT: Default scaling to convert raw adc code to voltage (uV).
- * SCALE_THERM_100K_PULLUP: Returns temperature in millidegC.
+ * @SCALE_DEFAULT: Default scaling to convert raw adc code to voltage (uV).
+ * @SCALE_THERM_100K_PULLUP: Returns temperature in millidegC.
  *				 Uses a mapping table with 100K pullup.
- * SCALE_PMIC_THERM: Returns result in milli degree's Centigrade.
- * SCALE_XOTHERM: Returns XO thermistor voltage in millidegC.
- * SCALE_PMI_CHG_TEMP: Conversion for PMI CHG temp
- * SCALE_HW_CALIB_DEFAULT: Default scaling to convert raw adc code to
+ * @SCALE_PMIC_THERM: Returns result in milli degree's Centigrade.
+ * @SCALE_XOTHERM: Returns XO thermistor voltage in millidegC.
+ * @SCALE_PMI_CHG_TEMP: Conversion for PMI CHG temp
+ * @SCALE_HW_CALIB_DEFAULT: Default scaling to convert raw adc code to
  *	voltage (uV) with hardware applied offset/slope values to adc code.
- * SCALE_HW_CALIB_THERM_100K_PULLUP: Returns temperature in millidegC using
+ * @SCALE_HW_CALIB_THERM_100K_PULLUP: Returns temperature in millidegC using
  *	lookup table. The hardware applies offset/slope to adc code.
- * SCALE_HW_CALIB_XOTHERM: Returns XO thermistor voltage in millidegC using
+ * @SCALE_HW_CALIB_XOTHERM: Returns XO thermistor voltage in millidegC using
  *	100k pullup. The hardware applies offset/slope to adc code.
- * SCALE_HW_CALIB_THERM_100K_PU_PM7: Returns temperature in millidegC using
+ * @SCALE_HW_CALIB_THERM_100K_PU_PM7: Returns temperature in millidegC using
  *	lookup table for PMIC7. The hardware applies offset/slope to adc code.
- * SCALE_HW_CALIB_PMIC_THERM: Returns result in milli degree's Centigrade.
+ * @SCALE_HW_CALIB_PMIC_THERM: Returns result in milli degree's Centigrade.
  *	The hardware applies offset/slope to adc code.
- * SCALE_HW_CALIB_PMIC_THERM: Returns result in milli degree's Centigrade.
+ * @SCALE_HW_CALIB_PMIC_THERM: Returns result in milli degree's Centigrade.
  *	The hardware applies offset/slope to adc code. This is for PMIC7.
- * SCALE_HW_CALIB_PM5_CHG_TEMP: Returns result in millidegrees for PMIC5
+ * @SCALE_HW_CALIB_PM5_CHG_TEMP: Returns result in millidegrees for PMIC5
  *	charger temperature.
- * SCALE_HW_CALIB_PM5_SMB_TEMP: Returns result in millidegrees for PMIC5
+ * @SCALE_HW_CALIB_PM5_SMB_TEMP: Returns result in millidegrees for PMIC5
  *	SMB1390 temperature.
  */
 enum vadc_scale_fn_type {
@@ -120,6 +120,7 @@ enum vadc_scale_fn_type {
 	SCALE_HW_CALIB_PMIC_THERM_PM7,
 	SCALE_HW_CALIB_PM5_CHG_TEMP,
 	SCALE_HW_CALIB_PM5_SMB_TEMP,
+	/* private: */
 	SCALE_HW_CALIB_INVALID,
 };
 

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [PATCH] iio: adc: qcom-vadc-common: fix vadc_scale_fn_type kernel-doc
  2025-10-17  7:07 [PATCH] iio: adc: qcom-vadc-common: fix vadc_scale_fn_type kernel-doc Randy Dunlap
@ 2025-10-19  8:44 ` Jonathan Cameron
  0 siblings, 0 replies; 2+ messages in thread
From: Jonathan Cameron @ 2025-10-19  8:44 UTC (permalink / raw)
  To: Randy Dunlap
  Cc: linux-kernel, Daniel Lezcano, Linus Walleij, David Lechner,
	Nuno Sá, Andy Shevchenko, linux-iio

On Fri, 17 Oct 2025 00:07:27 -0700
Randy Dunlap <rdunlap@infradead.org> wrote:

> Fix multiple warnings in enum vadc_scale_fn_type by adding a leading
> '@' to the kernel-doc descriptions.
> 
> Fixed 14 warnings in this one enum, such as:
> Warning: include/linux/iio/adc/qcom-vadc-common.h:123 Enum value
>  'SCALE_DEFAULT' not described in enum 'vadc_scale_fn_type'
> Warning: ../include/linux/iio/adc/qcom-vadc-common.h:123 Enum value
>  'SCALE_THERM_100K_PULLUP' not described in enum 'vadc_scale_fn_type'
> Warning: ../include/linux/iio/adc/qcom-vadc-common.h:123 Enum value
>  'SCALE_PMIC_THERM' not described in enum 'vadc_scale_fn_type'
> 
> Also prevent the warning on SCALE_HW_CALIB_INVALID by marking it
> "private:" so that kernel-doc notation is not needed for it.
> 
> This leaves only one warning here, which I don't know the
> appropriate description of:
> qcom-vadc-common.h:125: warning: Enum value
>  'SCALE_HW_CALIB_PMIC_THERM_PM7' not described in enum 'vadc_scale_fn_type'
> 
> Signed-off-by: Randy Dunlap <rdunlap@infradead.org>
Thanks for cleaning this up. Hopefully someone else will follow up
with the description for the missing one.

Applied,

Jonathan


> 


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2025-10-19  8:45 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-10-17  7:07 [PATCH] iio: adc: qcom-vadc-common: fix vadc_scale_fn_type kernel-doc Randy Dunlap
2025-10-19  8:44 ` Jonathan Cameron

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox