[PATCH] misc: apds990x: fix all kernel-doc warnings
From: Randy Dunlap
Date: Thu Feb 26 2026 - 00:12:33 EST
Move a #define so that it is not between kernel-doc and its struct
declaration.
Spell one struct member correctly.
Warning: include/linux/platform_data/apds990x.h:33 #define
APDS_PARAM_SCALE 4096; error: Cannot parse struct or union!
Warning: include/linux/platform_data/apds990x.h:62 struct member
'pdrive' not described in 'apds990x_platform_data'
Signed-off-by: Randy Dunlap <rdunlap@xxxxxxxxxxxxx>
---
Cc: Greg Kroah-Hartman <gregkh@xxxxxxxxxxxxxxxxxxx>
include/linux/platform_data/apds990x.h | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
--- linux-next-20260225.orig/include/linux/platform_data/apds990x.h
+++ linux-next-20260225/include/linux/platform_data/apds990x.h
@@ -31,7 +31,6 @@
* itself. If the GA is zero, driver will use uncovered sensor default values
* format: decimal value * APDS_PARAM_SCALE except df which is plain integer.
*/
-#define APDS_PARAM_SCALE 4096
struct apds990x_chip_factors {
int ga;
int cf1;
@@ -40,11 +39,12 @@ struct apds990x_chip_factors {
int irf2;
int df;
};
+#define APDS_PARAM_SCALE 4096
/**
* struct apds990x_platform_data - platform data for apsd990x.c driver
* @cf: chip factor data
- * @pddrive: IR-led driving current
+ * @pdrive: IR-led driving current
* @ppcount: number of IR pulses used for proximity estimation
* @setup_resources: interrupt line setup call back function
* @release_resources: interrupt line release call back function