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

Commit 38e37282 authored by Michele Bono's avatar Michele Bono
Browse files

Revert "gpu: drm: Make sure to set proper dim_status if fp mode on as well"

This reverts commit c5908d9c.

Change-Id: I90648b1acbb8994ea6a6794b318929ac9d723317
parent c44db68d
Loading
Loading
Loading
Loading
+4 −2
Original line number Diff line number Diff line
@@ -5752,13 +5752,15 @@ static int sde_crtc_onscreenfinger_atomic_check(struct sde_crtc_state *cstate,
        if (mode ==3)
            aod_index = i;
	}
	if(fp_index >=0 && dim_mode!=0)
		display->panel->dim_status = true;
	else
		display->panel->dim_status = false;

	if (fp_mode == 1) {
		display->panel->dim_status = true;
		cstate->fingerprint_pressed = true;
		return 0;
	} else {
		display->panel->dim_status = false;
		cstate->fingerprint_pressed = false;
		cstate->fingerprint_dim_layer = NULL;
		return 0;