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 <subbaram@codeaurora.org>
This commit is contained in:
Subbaraman Narayanamurthy
2019-08-02 10:30:32 -07:00
parent 2df7c68f03
commit fceded73ba
2 changed files with 3 additions and 2 deletions

View File

@@ -11,6 +11,7 @@
#include <linux/module.h> #include <linux/module.h>
#include <linux/types.h> #include <linux/types.h>
#include <linux/batterydata-lib.h> #include <linux/batterydata-lib.h>
#include <linux/of_batterydata.h>
#include <linux/power_supply.h> #include <linux/power_supply.h>
static int of_batterydata_read_lut(const struct device_node *np, static int of_batterydata_read_lut(const struct device_node *np,

View File

@@ -39,7 +39,7 @@ int of_batterydata_read_data(struct device_node *container_node,
* from device tree based on the battery id reading. * from device tree based on the battery id reading.
*/ */
struct device_node *of_batterydata_get_best_profile( 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); 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; return -ENXIO;
} }
static inline struct device_node *of_batterydata_get_best_profile( 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) int batt_id_kohm, const char *batt_type)
{ {
return NULL; return NULL;