mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-11 23:24:22 -04:00
Cw2217:kernel 5.15 compatible compile change
CW2217 kernel 5.15 compatible compile change Change-Id: I6190b193fbcc159308a1bc91dbd689f28b3829a9 Signed-off-by: xuwei9 <xuwei9@lenovo.com> Reviewed-on: https://gerrit.mot.com/2672112 SME-Granted: SME Approvals Granted SLTApproved: Slta Waiver Tested-by: Jira Key Reviewed-by: Xiangpo Zhao <zhaoxp3@motorola.com> Submit-Approved: Jira Key
This commit is contained in:
parent
5f7aa81a93
commit
ce287da8c3
1 changed files with 6 additions and 1 deletions
|
|
@ -14,6 +14,7 @@
|
|||
#include <linux/sizes.h>
|
||||
#include <linux/regulator/consumer.h>
|
||||
#include <linux/jiffies.h>
|
||||
#include <linux/version.h>
|
||||
|
||||
#define CWFG_ENABLE_LOG 1 /* CHANGE Customer need to change this for enable/disable log */
|
||||
|
||||
|
|
@ -511,7 +512,7 @@ static int cw_get_capacity(struct cw_battery *cw_bat)
|
|||
|
||||
if (usb_online.intval && (cw_bat->ui_soc == 100) && (ui_soc < cw_bat->ui_soc) &&
|
||||
(cw_bat->batt_status != POWER_SUPPLY_STATUS_DISCHARGING)) {
|
||||
cw_printk("CW2015[%d]: usb online = %d, ui_soc_reg = %d", __LINE__, usb_online.intval, ui_soc);
|
||||
cw_printk("CW2015[%d]: usb online = %d, ui_soc_reg = %d, remainder:%d", __LINE__, usb_online.intval, ui_soc, remainder);
|
||||
ui_soc = 100;
|
||||
}
|
||||
|
||||
|
|
@ -1097,6 +1098,10 @@ static int cw_battery_set_property(struct power_supply *psy,
|
|||
break;
|
||||
}
|
||||
|
||||
#if LINUX_VERSION_CODE >= KERNEL_VERSION(5,15,0)
|
||||
cw_info("%s, cw ntc_exist:%d\n", __func__, cw_bat->ntc_exist);
|
||||
#endif
|
||||
|
||||
return ret;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue