drm/sti: debug fps reset

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

Signed-off-by: Fabien Dessenne <fabien.dessenne@st.com>
This commit is contained in:
Vincent Abriou 2017-02-02 09:58:39 +01:00
parent 97d7c57630
commit c462c2f5f5
1 changed files with 2 additions and 0 deletions

View File

@ -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) { list_for_each_entry(p, &drm_dev->mode_config.plane_list, head) {
struct sti_plane *plane = to_sti_plane(p); struct sti_plane *plane = to_sti_plane(p);
memset(&plane->fps_info, 0, sizeof(plane->fps_info));
plane->fps_info.output = (val >> i) & 1; plane->fps_info.output = (val >> i) & 1;
i++; i++;
} }