power: supply: qti_battery_charger: Replace MI_CHARGE_PROPERTY with MI_WLS_REVERSE_CHG_ONLY
Change-Id: I027ebae606c3bcd882713da0a5019d19906c6986
This commit is contained in:
parent
8b5f23c13a
commit
4a72ab3175
@ -869,16 +869,16 @@ config MI_DTPT
|
||||
help
|
||||
Say Y here to enable mi dtpt
|
||||
|
||||
config MI_CHARGE_PROPERTY
|
||||
tristate "mask charge property config"
|
||||
help
|
||||
Say Y here to mask some properties
|
||||
|
||||
config ANTI_BURN_DETECT
|
||||
tristate "anti burn detect config"
|
||||
help
|
||||
Say Y or M here to enable anti burn detect config
|
||||
|
||||
config MI_WLS_REVERSE_CHG_ONLY
|
||||
tristate "mi only reverse wls chg config"
|
||||
help
|
||||
Say Y here to enable mi only reverse wls chg
|
||||
|
||||
source "drivers/power/supply/qcom/Kconfig"
|
||||
|
||||
endif # POWER_SUPPLY
|
||||
|
@ -104,7 +104,7 @@ static const int wls_prop_map[WLS_PROP_MAX] = {
|
||||
[WLS_CURR_NOW] = POWER_SUPPLY_PROP_CURRENT_NOW,
|
||||
[WLS_CURR_MAX] = POWER_SUPPLY_PROP_CURRENT_MAX,
|
||||
[WLS_BOOST_EN] = POWER_SUPPLY_PROP_PRESENT,
|
||||
#ifndef CONFIG_MI_CHARGE_PROPERTY
|
||||
#ifndef CONFIG_MI_WLS_REVERSE_CHG_ONLY
|
||||
[WLS_INPUT_CURR_LIMIT] = POWER_SUPPLY_PROP_INPUT_CURRENT_LIMIT,
|
||||
[WLS_CONN_TEMP] = POWER_SUPPLY_PROP_TEMP,
|
||||
#endif
|
||||
@ -1023,7 +1023,7 @@ static enum power_supply_property wls_props[] = {
|
||||
POWER_SUPPLY_PROP_CURRENT_NOW,
|
||||
POWER_SUPPLY_PROP_CURRENT_MAX,
|
||||
POWER_SUPPLY_PROP_PRESENT,
|
||||
#ifndef CONFIG_MI_CHARGE_PROPERTY
|
||||
#ifndef CONFIG_MI_WLS_REVERSE_CHG_ONLY
|
||||
POWER_SUPPLY_PROP_INPUT_CURRENT_LIMIT,
|
||||
POWER_SUPPLY_PROP_TEMP,
|
||||
#endif
|
||||
|
@ -140,10 +140,12 @@ enum wireless_property_id {
|
||||
WLS_VOLT_MAX,
|
||||
WLS_CURR_NOW,
|
||||
WLS_CURR_MAX,
|
||||
#ifndef CONFIG_MI_WLS_REVERSE_CHG_ONLY
|
||||
WLS_TYPE,
|
||||
#endif
|
||||
WLS_BOOST_EN,
|
||||
#ifndef CONFIG_MI_WLS_REVERSE_CHG_ONLY
|
||||
WLS_HBOOST_VMAX,
|
||||
#ifndef CONFIG_MI_CHARGE_PROPERTY
|
||||
WLS_INPUT_CURR_LIMIT,
|
||||
WLS_ADAP_TYPE,
|
||||
WLS_CONN_TEMP,
|
||||
|
@ -202,7 +202,7 @@ static int update_wls_fw_version(struct battery_chg_dev *bcdev,
|
||||
}
|
||||
#endif
|
||||
|
||||
#ifndef CONFIG_MI_CHARGE_PROPERTY
|
||||
#ifndef CONFIG_MI_WLS_REVERSE_CHG_ONLY
|
||||
static const char *get_wls_type_name(u32 wls_type)
|
||||
{
|
||||
if (wls_type >= ARRAY_SIZE(qc_power_supply_wls_type_text))
|
||||
@ -343,7 +343,7 @@ static ssize_t quick_charge_type_show(struct class *c,
|
||||
}
|
||||
static CLASS_ATTR_RO(quick_charge_type);
|
||||
|
||||
#ifndef CONFIG_MI_CHARGE_PROPERTY
|
||||
#ifndef CONFIG_MI_WLS_REVERSE_CHG_ONLY
|
||||
static ssize_t wireless_type_show(struct class *c,
|
||||
struct class_attribute *attr, char *buf)
|
||||
{
|
||||
@ -4648,7 +4648,7 @@ static ssize_t thermal_board_temp_show(struct class *c,
|
||||
static CLASS_ATTR_RW(thermal_board_temp);
|
||||
|
||||
static struct attribute *xiaomi_battery_class_attrs[] = {
|
||||
#ifndef CONFIG_MI_CHARGE_PROPERTY
|
||||
#ifndef CONFIG_MI_WLS_REVERSE_CHG_ONLY
|
||||
&class_attr_wireless_type.attr,
|
||||
#endif
|
||||
&class_attr_real_type.attr,
|
||||
|
Loading…
Reference in New Issue
Block a user