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

Commit c462c2f5 authored by Vincent Abriou's avatar Vincent Abriou
Browse files

drm/sti: debug fps reset



Reset the fps debug information when 'fps_show' is updated.

Signed-off-by: default avatarFabien Dessenne <fabien.dessenne@st.com>
parent 97d7c576
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -58,7 +58,9 @@ static int sti_drm_fps_set(void *data, u64 val)
	list_for_each_entry(p, &drm_dev->mode_config.plane_list, head) {
		struct sti_plane *plane = to_sti_plane(p);

		memset(&plane->fps_info, 0, sizeof(plane->fps_info));
		plane->fps_info.output = (val >> i) & 1;

		i++;
	}