Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 8c669d10 authored by Fenglin Wu's avatar Fenglin Wu
Browse files

power: smb1360: Add fastchg interrupt handler



Implement the fastchg interrupt handler for smb1360. This makes battery
charging status changes according to smb1360 fastchg status.

Change-Id: I15abff707fe1c913641304b4f455cab41ab97507
Signed-off-by: default avatarFenglin Wu <fenglinw@codeaurora.org>
parent 2a0e8b68
Loading
Loading
Loading
Loading
+8 −0
Original line number Diff line number Diff line
@@ -1358,6 +1358,13 @@ static int chg_term_handler(struct smb1360_chip *chip, u8 rt_stat)
	return 0;
}

static int chg_fastchg_handler(struct smb1360_chip *chip, u8 rt_stat)
{
	pr_debug("rt_stat = 0x%02x\n", rt_stat);

	return 0;
}

static int usbin_uv_handler(struct smb1360_chip *chip, u8 rt_stat)
{
	bool usb_present = !rt_stat;
@@ -1516,6 +1523,7 @@ static struct irq_handler_info handlers[] = {
			},
			{
				.name		= "fast_chg",
				.smb_irq	= chg_fastchg_handler,
			},
		},
	},