aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/video/via/viamode.c
diff options
context:
space:
mode:
authorFlorian Tobias Schandinat <FlorianSchandinat@gmx.de>2011-08-07 09:34:35 -0400
committerFlorian Tobias Schandinat <FlorianSchandinat@gmx.de>2011-08-07 09:34:35 -0400
commit5dd72f12df00cbabc16de770b79b17ced63138be (patch)
treef25805da9a8e350d71dc2fcdf2e5b9b9256e11fe /drivers/video/via/viamode.c
parentbfe7d5f9396d5f2607454fd9ff89397fa3ba9a32 (diff)
viafb: get rid of the remaining modetable structure assumptions
This patch removes the remaining places where assumptions about the structure of the modetable were made. Aside from some places where assumptions are made that certain modes are in the modetable the only code dealing with the modetable and not just a single mode is in viamode. This will allow chaniging the modetable and use other sources for videomodes like the subsystem or EDID. Signed-off-by: Florian Tobias Schandinat <FlorianSchandinat@gmx.de>
Diffstat (limited to 'drivers/video/via/viamode.c')
-rw-r--r--drivers/video/via/viamode.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/video/via/viamode.c b/drivers/video/via/viamode.c
index 88096e5fa07..0911cac1b2f 100644
--- a/drivers/video/via/viamode.c
+++ b/drivers/video/via/viamode.c
@@ -896,7 +896,7 @@ static struct crt_mode_table *get_best_mode(struct VideoModeTable *vmt,
896 return best; 896 return best;
897} 897}
898 898
899struct VideoModeTable *viafb_get_mode(int hres, int vres) 899static struct VideoModeTable *viafb_get_mode(int hres, int vres)
900{ 900{
901 return get_modes(viafb_modes, ARRAY_SIZE(viafb_modes), hres, vres); 901 return get_modes(viafb_modes, ARRAY_SIZE(viafb_modes), hres, vres);
902} 902}
@@ -906,7 +906,7 @@ struct crt_mode_table *viafb_get_best_mode(int hres, int vres, int refresh)
906 return get_best_mode(viafb_get_mode(hres, vres), refresh); 906 return get_best_mode(viafb_get_mode(hres, vres), refresh);
907} 907}
908 908
909struct VideoModeTable *viafb_get_rb_mode(int hres, int vres) 909static struct VideoModeTable *viafb_get_rb_mode(int hres, int vres)
910{ 910{
911 return get_modes(viafb_rb_modes, ARRAY_SIZE(viafb_rb_modes), hres, 911 return get_modes(viafb_rb_modes, ARRAY_SIZE(viafb_rb_modes), hres,
912 vres); 912 vres);