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

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

Merge "leds: qpnp-flash-v2: Do not clear led_on when flash/torch brightness is 0"

parents eb72f4e2 1b411f51
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -1222,7 +1222,8 @@ static void qpnp_flash_led_node_set(struct flash_node_data *fnode, int value)
	fnode->cdev.brightness = prgm_current_ma;
	fnode->current_reg_val = get_current_reg_code(prgm_current_ma,
					fnode->ires_ua);
	fnode->led_on = prgm_current_ma != 0;
	if (prgm_current_ma)
		fnode->led_on = true;

	if (pmic_subtype != PMI632_SUBTYPE &&
	       led->pdata->chgr_mitigation_sel == FLASH_SW_CHARGER_MITIGATION) {