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

Commit 8f85c53c authored by Fenglin Wu's avatar Fenglin Wu Committed by Vamshi Krishna B V
Browse files

power: qpnp-smbcharger: Change CHG_LED default blink pattern



Two blinking patterns are supported in CHG_LED. Blinking pattern 1 is
150ms on and 750ms off,  blinking pattern 2 is 500ms on and 3000ms off.
Blinking pattern 2 has less duty on compared them with in a same period
which would have less power consumption as well. Choose blinking pattern
2 as the default blinking mode for less power consumption when it acting
as event notification.

CRs-Fixed: 1011525
Change-Id: I61badbd62d8fb98fcd5f1728b089afdb8efa3860
Signed-off-by: default avatarFenglin Wu <fenglinw@codeaurora.org>
Signed-off-by: default avatarVamshi Krishna B V <vbv@codeaurora.org>
parent 1c5f848b
Loading
Loading
Loading
Loading
+3 −3
Original line number Diff line number Diff line
@@ -4013,11 +4013,11 @@ static void smbchg_chg_led_blink_set(struct smbchg_chip *chip,
		reg = CHG_LED_OFF << CHG_LED_SHIFT;
	} else {
		if (blinking == 1)
			reg = LED_BLINKING_PATTERN1 << CHG_LED_SHIFT;
		else if (blinking == 2)
			reg = LED_BLINKING_PATTERN2 << CHG_LED_SHIFT;
		else
		else if (blinking == 2)
			reg = LED_BLINKING_PATTERN1 << CHG_LED_SHIFT;
		else
			reg = LED_BLINKING_PATTERN2 << CHG_LED_SHIFT;
	}

	rc = smbchg_sec_masked_write(chip,