mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-08 21:22:09 -04:00
charging: add bq25960 gpio irq
Add gpio irq for bq25960 because we define gpio irq in discrete_charging.dtsi. Change-Id: I7531f96716fea2cdd6b0d807b0b45126470198c9 Signed-off-by: wanggc6 <wanggc6@motorola.com> Reviewed-on: https://gerrit.mot.com/2207465 SME-Granted: SME Approvals Granted SLTApproved: Slta Waiver Tested-by: Jira Key Reviewed-by: Huosheng Liao <liaohs@motorola.com> Submit-Approved: Jira Key
This commit is contained in:
parent
1e228b81ec
commit
0ee2ecbf13
1 changed files with 3 additions and 3 deletions
|
|
@ -22,7 +22,7 @@
|
|||
#include "bq25980_reg.h"
|
||||
|
||||
//undef because of pinctrl
|
||||
//#define CONFIG_INTERRUPT_AS_GPIO
|
||||
#define CONFIG_INTERRUPT_AS_GPIO
|
||||
|
||||
struct bq25980_state {
|
||||
bool dischg;
|
||||
|
|
@ -1541,7 +1541,7 @@ static int bq25980_parse_dt(struct bq25980_device *bq)
|
|||
bq->watchdog_timer = BQ25980_WATCHDOG_MIN;
|
||||
|
||||
if (bq->watchdog_timer > BQ25980_WATCHDOG_MAX ||
|
||||
bq->watchdog_timer < BQ25980_WATCHDOG_MIN)
|
||||
bq->watchdog_timer < BQ25980_WATCHDOG_MIN)
|
||||
return -EINVAL;
|
||||
|
||||
ret = device_property_read_u32(bq->dev,
|
||||
|
|
@ -1682,7 +1682,7 @@ static int bq25980_probe(struct i2c_client *client,
|
|||
{
|
||||
struct device *dev = &client->dev;
|
||||
struct bq25980_device *bq;
|
||||
int ret;//, irq_gpio, irqn;
|
||||
int ret, irq_gpio, irqn;
|
||||
|
||||
printk("-------[%s] driver probe--------\n",id->name);
|
||||
bq = devm_kzalloc(dev, sizeof(*bq), GFP_KERNEL);
|
||||
|
|
|
|||
Loading…
Reference in a new issue