Skip to contentSkip to conversation

svga: Use proper VGA register name macros in

PATCH In review David Miller 1 participant 1 message Jan 11, 2011 Framebuffer layer

lore
Share & tools
lore
#0 lore raw

PATCH 1/22 svga: Use proper VGA register name macros in

Instead of magic register location constants.

---
 include/linux/svga.h |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)
include/linux/svga.h +3 -3
index c59a51a..3fc52cb 100644
@@ -69,9 +69,9 @@ struct svga_pll {
 
 static inline void svga_wattr(u8 index, u8 data)
 {
-	inb(0x3DA);
-	outb(index, 0x3C0);
-	outb(data, 0x3C0);
+	inb(VGA_IS1_RC);
+	outb(index, VGA_ATT_IW);
+	outb(data, VGA_ATT_W);
 }
 
 /* Write a value to a sequence register with a mask */
Signature · 1 line
1.7.3.4