mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-25 14:13:01 -04:00
qti_qlink_charger: support cps4019
Modify defination of dump_info, and delete information of pen when using cps4019 Change-Id: I0c4859429c194aa07bfb5cc1ec960dba3ae48fa1 Signed-off-by: miaoyi <miaoyi2@motorola.com> Reviewed-on: https://gerrit.mot.com/2431797 SME-Granted: SME Approvals Granted SLTApproved: Slta Waiver Tested-by: Jira Key Reviewed-by: Wentao Xu <xuwt2@motorola.com> Reviewed-by: Jianqi Yang <yangj@motorola.com> Submit-Approved: Jira Key
This commit is contained in:
parent
79b2806d70
commit
30383a2f6b
2 changed files with 7 additions and 3 deletions
|
|
@ -7,6 +7,10 @@ ifneq ($(filter m y,$(CONFIG_WIRELESS_CPS4035B)),)
|
|||
EXTRA_CFLAGS += -DWIRELESS_CPS4035B
|
||||
endif
|
||||
|
||||
ifneq ($(filter m y,$(CONFIG_WIRELESS_CPS4019)),)
|
||||
EXTRA_CFLAGS += -DWIRELESS_CPS4019
|
||||
endif
|
||||
|
||||
obj-m += qti_glink_charger.o
|
||||
|
||||
KBUILD_EXTRA_SYMBOLS += $(CURDIR)/$(KBUILD_EXTMOD)/../bm_adsp_ulog/$(GKI_OBJ_MODULE_DIR)/Module.symvers
|
||||
|
|
|
|||
|
|
@ -140,7 +140,7 @@ struct fod_gain {
|
|||
u32 fod_array_gain[FOD_GAIN_MAX_LEN];
|
||||
};
|
||||
|
||||
#ifdef WIRELESS_CPS4035B
|
||||
#if defined(WIRELESS_CPS4035B) || defined(WIRELESS_CPS4019)
|
||||
struct wls_dump
|
||||
{
|
||||
u32 chip_id;
|
||||
|
|
@ -606,7 +606,7 @@ static int qti_charger_get_batt_info(void *data, struct mmi_battery_info *batt_i
|
|||
|
||||
return rc;
|
||||
}
|
||||
#ifdef WIRELESS_CPS4035B
|
||||
#if defined(WIRELESS_CPS4035B) || defined(WIRELESS_CPS4019)
|
||||
void qti_wireless_charge_dump_info(struct qti_charger *chg, struct wls_dump wls_info)
|
||||
{
|
||||
mmi_info(chg, "Wireless dump info -1: CHIP_ID: 0x%04x, MTP_FW_VER: 0x%04x, IRQ STATUS: 0x%04x, "
|
||||
|
|
@ -1917,7 +1917,7 @@ static DEVICE_ATTR(folio_mode, S_IRUGO|S_IWUSR, folio_mode_show, folio_mode_stor
|
|||
|
||||
//ATTRIBUTE_GROUPS(qti_charger);
|
||||
#define TX_INT_FOD (0x01<<12)
|
||||
#ifdef WIRELESS_CPS4035B
|
||||
#if defined(WIRELESS_CPS4035B) || defined(WIRELESS_CPS4019)
|
||||
static int show_wls_dump_info(struct seq_file *m, void *data)
|
||||
{
|
||||
struct qti_charger *chip = m->private;
|
||||
|
|
|
|||
Loading…
Reference in a new issue