diff options
author | David Miller <davem@davemloft.net> | 2011-01-12 02:49:49 +0300 |
---|---|---|
committer | Paul Mundt <lethal@linux-sh.org> | 2011-03-22 09:46:48 +0300 |
commit | dc6aff3a5d3e4f565cb07cd5f3b6983850971da7 (patch) | |
tree | d4dc29da69b00a0e24017199715848a63b1a1179 /drivers/video/svgalib.c | |
parent | 21da386d0e4c55f6f7482b4637532b942e22b70a (diff) | |
download | linux-dc6aff3a5d3e4f565cb07cd5f3b6983850971da7.tar.xz |
svga: Make svga_wseq_multi take an iomem regbase pointer.
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Paul Mundt <lethal@linux-sh.org>
Diffstat (limited to 'drivers/video/svgalib.c')
-rw-r--r-- | drivers/video/svgalib.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/drivers/video/svgalib.c b/drivers/video/svgalib.c index bf3c7a92eeab..ed190aa09653 100644 --- a/drivers/video/svgalib.c +++ b/drivers/video/svgalib.c @@ -40,12 +40,12 @@ void svga_wcrt_multi(void __iomem *regbase, const struct vga_regset *regset, u32 } /* Write a sequencer register value spread across multiple registers */ -void svga_wseq_multi(const struct vga_regset *regset, u32 value) { - +void svga_wseq_multi(void __iomem *regbase, const struct vga_regset *regset, u32 value) +{ u8 regval, bitval, bitnum; while (regset->regnum != VGA_REGSET_END_VAL) { - regval = vga_rseq(NULL, regset->regnum); + regval = vga_rseq(regbase, regset->regnum); bitnum = regset->lowbit; while (bitnum <= regset->highbit) { bitval = 1 << bitnum; @@ -54,7 +54,7 @@ void svga_wseq_multi(const struct vga_regset *regset, u32 value) { bitnum ++; value = value >> 1; } - vga_wseq(NULL, regset->regnum, regval); + vga_wseq(regbase, regset->regnum, regval); regset ++; } } |