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

Skip to content
Commit e504b848 authored by Andrew Kephart's avatar Andrew Kephart Committed by Paul Mundt
Browse files

fbdev: Fix fb_find_nearest_mode refresh comparison



Refresh rate nearness is not calculated or reset when nearest resolution
changes.

This patch resets the refresh rate differential measurement whenever a
new nearest resolution is discovered.  This fixes two error cases;
first, wherein the first mode's refresh rate differential is never
calculated and second, when the closest refresh rate from a previous
nearest resolution is erroneously preserved.

Signed-off-by: default avatarAndrew Kephart <andrew.kephart@alereon.com>
Signed-off-by: default avatarPaul Mundt <lethal@linux-sh.org>
parent 6313e3c2
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment