diff options
author | Florian Tobias Schandinat <FlorianSchandinat@gmx.de> | 2011-06-02 10:03:53 -0400 |
---|---|---|
committer | Florian Tobias Schandinat <FlorianSchandinat@gmx.de> | 2011-08-05 08:47:27 -0400 |
commit | 92746c3c82135b13d7fb1bbdebbabb0faedd8433 (patch) | |
tree | ad6e284e645208053d7a25668cd16a1e00d20dcd /drivers/video/via/dvi.c | |
parent | 9ee3ec49e268c7a01217d7865c53562fae1edf33 (diff) |
viafb: simplify viafb_fill_crtc_timing
As the first argument is just part of the structure passed as the
second argument there is no need for it at all.
Signed-off-by: Florian Tobias Schandinat <FlorianSchandinat@gmx.de>
Diffstat (limited to 'drivers/video/via/dvi.c')
-rw-r--r-- | drivers/video/via/dvi.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/drivers/video/via/dvi.c b/drivers/video/via/dvi.c index b1f364745ca0..c7ff5c0e9c7e 100644 --- a/drivers/video/via/dvi.c +++ b/drivers/video/via/dvi.c | |||
@@ -190,12 +190,10 @@ void viafb_dvi_set_mode(struct VideoModeTable *mode, int mode_bpp, | |||
190 | if ((maxPixelClock != 0) && (desirePixelClock > maxPixelClock)) { | 190 | if ((maxPixelClock != 0) && (desirePixelClock > maxPixelClock)) { |
191 | rb_mode = viafb_get_rb_mode(mode->crtc[0].crtc.hor_addr, | 191 | rb_mode = viafb_get_rb_mode(mode->crtc[0].crtc.hor_addr, |
192 | mode->crtc[0].crtc.ver_addr); | 192 | mode->crtc[0].crtc.ver_addr); |
193 | if (rb_mode) { | 193 | if (rb_mode) |
194 | mode = rb_mode; | 194 | mode = rb_mode; |
195 | pDviTiming = rb_mode->crtc; | ||
196 | } | ||
197 | } | 195 | } |
198 | viafb_fill_crtc_timing(pDviTiming, mode, mode_bpp / 8, set_iga); | 196 | viafb_fill_crtc_timing(mode, mode_bpp / 8, set_iga); |
199 | } | 197 | } |
200 | 198 | ||
201 | /* Sense DVI Connector */ | 199 | /* Sense DVI Connector */ |