• Florian Tobias Schandinat's avatar
    viafb: add new funcions to select a single mode · 94715ba9
    Florian Tobias Schandinat authored
    This patch introduces 2 new functions for selecting a single mode
    based on hres, vres and refresh rate and changes some uses to use
    those. The advantage is that it is less error prone than doing the
    selection based on refresh rate everywhere and allows replacing the
    modetable structure. This includes a little change that users may
    notice: If a refresh rate was given as module parameters but does
    not exist in the modetable prior to this patch a refresh rate of 60
    was assumed and after this patch the closest supported refresh rate
    to the one provided by the user is used.
    Signed-off-by: default avatarFlorian Tobias Schandinat <FlorianSchandinat@gmx.de>
    94715ba9
viamode.h 2.11 KB