Skip to content

Commit 6855052

Browse files
author
Thomas Zimmermann
committed
drm/mgag200: Rename constant MGAREG_Status to MGAREG_STATUS
Register constants are upper case. Fix MGAREG_Status accordingly. Signed-off-by: Thomas Zimmermann <[email protected]> Reviewed-by: Gerd Hoffmann <[email protected]> Reviewed-by: Emil Velikov <[email protected]> Acked-by: Sam Ravnborg <[email protected]> Link: https://patchwork.freedesktop.org/patch/msgid/[email protected]
1 parent 74c3f5d commit 6855052

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

drivers/gpu/drm/mgag200/mgag200_mode.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -111,12 +111,12 @@ static inline void mga_wait_vsync(struct mga_device *mdev)
111111
unsigned int status = 0;
112112

113113
do {
114-
status = RREG32(MGAREG_Status);
114+
status = RREG32(MGAREG_STATUS);
115115
} while ((status & 0x08) && time_before(jiffies, timeout));
116116
timeout = jiffies + HZ/10;
117117
status = 0;
118118
do {
119-
status = RREG32(MGAREG_Status);
119+
status = RREG32(MGAREG_STATUS);
120120
} while (!(status & 0x08) && time_before(jiffies, timeout));
121121
}
122122

@@ -125,7 +125,7 @@ static inline void mga_wait_busy(struct mga_device *mdev)
125125
unsigned long timeout = jiffies + HZ;
126126
unsigned int status = 0;
127127
do {
128-
status = RREG8(MGAREG_Status + 2);
128+
status = RREG8(MGAREG_STATUS + 2);
129129
} while ((status & 0x01) && time_before(jiffies, timeout));
130130
}
131131

drivers/gpu/drm/mgag200/mgag200_reg.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@
102102
#define MGAREG_EXEC 0x0100
103103

104104
#define MGAREG_FIFOSTATUS 0x1e10
105-
#define MGAREG_Status 0x1e14
105+
#define MGAREG_STATUS 0x1e14
106106
#define MGAREG_CACHEFLUSH 0x1fff
107107
#define MGAREG_ICLEAR 0x1e18
108108
#define MGAREG_IEN 0x1e1c

0 commit comments

Comments
 (0)