Loading drivers/of/of_batterydata.c +2 −1 Original line number Diff line number Diff line /* Copyright (c) 2013-2018, The Linux Foundation. All rights reserved. /* Copyright (c) 2013-2019, The Linux Foundation. All rights reserved. * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License version 2 and Loading @@ -18,6 +18,7 @@ #include <linux/module.h> #include <linux/types.h> #include <linux/batterydata-lib.h> #include <linux/of_batterydata.h> #include <linux/power_supply.h> static int of_batterydata_read_lut(const struct device_node *np, Loading include/linux/of_batterydata.h +3 −3 Original line number Diff line number Diff line /* Copyright (c) 2013-2014, 2016-2018 The Linux Foundation. All rights reserved. /* Copyright (c) 2013-2014, 2016-2019 The Linux Foundation. All rights reserved. * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License version 2 and Loading Loading @@ -46,7 +46,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); /** Loading Loading @@ -98,7 +98,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; Loading Loading
drivers/of/of_batterydata.c +2 −1 Original line number Diff line number Diff line /* Copyright (c) 2013-2018, The Linux Foundation. All rights reserved. /* Copyright (c) 2013-2019, The Linux Foundation. All rights reserved. * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License version 2 and Loading @@ -18,6 +18,7 @@ #include <linux/module.h> #include <linux/types.h> #include <linux/batterydata-lib.h> #include <linux/of_batterydata.h> #include <linux/power_supply.h> static int of_batterydata_read_lut(const struct device_node *np, Loading
include/linux/of_batterydata.h +3 −3 Original line number Diff line number Diff line /* Copyright (c) 2013-2014, 2016-2018 The Linux Foundation. All rights reserved. /* Copyright (c) 2013-2014, 2016-2019 The Linux Foundation. All rights reserved. * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License version 2 and Loading Loading @@ -46,7 +46,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); /** Loading Loading @@ -98,7 +98,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; Loading