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

Commit bee0e727 authored by Linux Build Service Account's avatar Linux Build Service Account Committed by Gerrit - the friendly Code Review server
Browse files

Merge "leds: wled: unlock secure register before writing the AMOLED type"

parents 37668160 62a19a60
Loading
Loading
Loading
Loading
+5 −0
Original line number Diff line number Diff line
@@ -769,6 +769,11 @@ static int qpnp_wled_set_disp(struct qpnp_wled *wled, u16 base_addr)

	reg &= QPNP_WLED_DISP_SEL_MASK;
	reg |= (wled->disp_type_amoled << QPNP_WLED_DISP_SEL_SHIFT);

	rc = qpnp_wled_sec_access(wled, base_addr);
	if (rc)
		return rc;

	rc = qpnp_wled_write_reg(wled, &reg,
			QPNP_WLED_DISP_SEL_REG(base_addr));
	if (rc)