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

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

Merge "leds: leds-qpnp: check if flash_wa regulator is obtained before enabling"

parents da7ace96 407f4bd2
Loading
Loading
Loading
Loading
+5 −4
Original line number Diff line number Diff line
@@ -3131,9 +3131,10 @@ static int qpnp_get_config_flash(struct qpnp_led_data *led,
					"Flash wa regulator get failed(%d)\n",
					rc);
			}
		}
		} else {
			led->flash_cfg->flash_wa_reg_get = true;
		}
	}

	if (led->id == QPNP_ID_FLASH1_LED0) {
		led->flash_cfg->enable_module = FLASH_ENABLE_LED_0;