diff --git a/drivers/power/sgm4154x_chg_mmi/sgm4154x_charger.c b/drivers/power/sgm4154x_chg_mmi/sgm4154x_charger.c index 7dd97dc16b91..b2cf236c5674 100644 --- a/drivers/power/sgm4154x_chg_mmi/sgm4154x_charger.c +++ b/drivers/power/sgm4154x_chg_mmi/sgm4154x_charger.c @@ -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, diff --git a/drivers/power/sgm4154x_chg_mmi/sgm4154x_charger.h b/drivers/power/sgm4154x_chg_mmi/sgm4154x_charger.h index d4899b3044c8..48f0c5713077 100644 --- a/drivers/power/sgm4154x_chg_mmi/sgm4154x_charger.h +++ b/drivers/power/sgm4154x_chg_mmi/sgm4154x_charger.h @@ -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)