mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-08 21:22:09 -04:00
devon:charger bring up
charger bring up delete adc pin to to probe main charger Change-Id: I720e99d6da59235cd70c6ec89371a134a0d2095f Signed-off-by: longc102 <longc102@motorola.com> Reviewed-on: https://gerrit.mot.com/2209730 SME-Granted: SME Approvals Granted SLTApproved: Slta Waiver Submit-Approved: Jira Key Tested-by: Jira Key Reviewed-by: Qiong Xie <xieq2@motorola.com> (cherry picked from commit 2b487a3f3c904a07315ed9265d3f163c6f9d61f4) Reviewed-on: https://gerrit.mot.com/2221193 Reviewed-by: Wang Wang <wangwang1@lenovo.com>
This commit is contained in:
parent
eb979cf0e7
commit
3e2b6a91dc
2 changed files with 4 additions and 2 deletions
|
|
@ -2883,13 +2883,13 @@ static int sgm4154x_probe(struct i2c_client *client,
|
|||
dev_err(dev, "Failed to read device tree properties%d\n", ret);
|
||||
return ret;
|
||||
}
|
||||
|
||||
#if !defined(__SGM41513_CHIP_ID__)
|
||||
ret = sgm4154x_parse_dt_adc_channels(sgm);
|
||||
if (ret) {
|
||||
dev_err(dev, "Failed to get adc channels%d\n", ret);
|
||||
return ret;
|
||||
}
|
||||
|
||||
#endif
|
||||
sgm->chg_dev = charger_device_register(sgm->chg_dev_name,
|
||||
&client->dev, sgm,
|
||||
&sgm4154x_chg_ops,
|
||||
|
|
|
|||
|
|
@ -19,6 +19,7 @@
|
|||
#define __SGM41542_CHIP_ID__
|
||||
//#define __SGM41516_CHIP_ID__
|
||||
//#define __SGM41516D_CHIP_ID__
|
||||
#define __SGM41513_CHIP_ID__
|
||||
|
||||
#ifdef __SGM41541_CHIP_ID__
|
||||
#define SGM4154x_NAME "sgm41541"
|
||||
|
|
@ -80,6 +81,7 @@
|
|||
#define SGM4154x_PN_41516_ID (BIT(6)| BIT(5))
|
||||
#define SGM4154x_PN_41542_ID (BIT(6)| BIT(5)| BIT(3))
|
||||
#define SGM4154x_PN_41516D_ID (BIT(6)| BIT(5)| BIT(3))
|
||||
#define SGM4154x_PN_41513_ID 0
|
||||
|
||||
/* WDT TIMER SET */
|
||||
#define SGM4154x_WDT_TIMER_MASK GENMASK(5, 4)
|
||||
|
|
|
|||
Loading…
Reference in a new issue