mfd: abx500: Remove repeated struct declaration
PATCH 1/1 mfd: abx500: Remove repeated struct declaration
struct ab8500_fg is declared twice. The blew one at 457th line is closer to user. Remove the duplicate here.
Move "Forward declaration" annotation to the suitable place.
Signed-off-by Wan Jiabing <[email protected]>
--- include/linux/mfd/abx500/ab8500-bm.h | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-)
include/linux/mfd/abx500/ab8500-bm.h +1 -3
@@ -296,9 +296,6 @@ struct batres_vs_temp {int resist; }; -/* Forward declaration */ -struct ab8500_fg ; -/** * struct ab8500_fg_parameters - Fuel gauge algorithm parameters, in seconds * if not specified
@@ -452,6 +449,7 @@ struct ab8500_bm_data {const struct ab8500_fg_parameters *fg_params; }; +/* Forward declaration */ struct ab8500_btemp ;struct ab8500_gpadc ;struct ab8500_fg ;
Signature · 1 line
2.25.1
Quoted 8 lines · Wan Jiabing
struct
ab8500_fgis declared twice. The blew one at 457th line is closer to user. Remove the duplicate here.
Move "Forward declaration" annotation to the suitable place.Signed-off-by Wan Jiabing <[email protected]>--- include/linux/mfd/abx500/ab8500-bm.h | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-)
Please check, but I don't think this patch is valid anymore.
Signature · 4 lines
Lee Jones [李琼斯] Senior Technical Lead - Developer Services Linaro.org │ Open source software for Arm SoCs Follow Linaro: Facebook | Twitter | Blog