From fceded73ba4ad0e4a4c1271216c315397ec349eb Mon Sep 17 00:00:00 2001 From: Subbaraman Narayanamurthy Date: Fri, 2 Aug 2019 10:30:32 -0700 Subject: [PATCH] of_batterydata: Add function declarations Currently, of_batterydata.h is not included by of_batterydata.c which results in errors with checker tools because of missing function declarations. Fix it. Change-Id: Id1d29f508e2b7f0ae79398210cf7f13f9d51f39b Signed-off-by: Subbaraman Narayanamurthy --- drivers/of/of_batterydata.c | 1 + include/linux/of_batterydata.h | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/drivers/of/of_batterydata.c b/drivers/of/of_batterydata.c index 8d83c1e5328f..0a6ad38653d7 100644 --- a/drivers/of/of_batterydata.c +++ b/drivers/of/of_batterydata.c @@ -11,6 +11,7 @@ #include #include #include +#include #include static int of_batterydata_read_lut(const struct device_node *np, diff --git a/include/linux/of_batterydata.h b/include/linux/of_batterydata.h index 1b0f3e2a26b0..d625bc848ec7 100644 --- a/include/linux/of_batterydata.h +++ b/include/linux/of_batterydata.h @@ -39,7 +39,7 @@ int of_batterydata_read_data(struct device_node *container_node, * from device tree based on the battery id reading. */ struct device_node *of_batterydata_get_best_profile( - struct device_node *batterydata_container_node, + const struct device_node *batterydata_container_node, int batt_id_kohm, const char *batt_type); /** @@ -91,7 +91,7 @@ static inline int of_batterydata_read_data(struct device_node *container_node, return -ENXIO; } static inline struct device_node *of_batterydata_get_best_profile( - struct device_node *batterydata_container_node, + const struct device_node *batterydata_container_node, int batt_id_kohm, const char *batt_type) { return NULL;