Commit 68550521 authored by Thomas Zimmermann's avatar Thomas Zimmermann

drm/mgag200: Rename constant MGAREG_Status to MGAREG_STATUS

Register constants are upper case. Fix MGAREG_Status accordingly.
Signed-off-by: default avatarThomas Zimmermann <tzimmermann@suse.de>
Reviewed-by: default avatarGerd Hoffmann <kraxel@redhat.com>
Reviewed-by: default avatarEmil Velikov <emil.velikov@collabora.com>
Acked-by: default avatarSam Ravnborg <sam@ravnborg.org>
Link: https://patchwork.freedesktop.org/patch/msgid/20191205160142.3588-3-tzimmermann@suse.de
parent 74c3f5da
...@@ -111,12 +111,12 @@ static inline void mga_wait_vsync(struct mga_device *mdev) ...@@ -111,12 +111,12 @@ static inline void mga_wait_vsync(struct mga_device *mdev)
unsigned int status = 0; unsigned int status = 0;
do { do {
status = RREG32(MGAREG_Status); status = RREG32(MGAREG_STATUS);
} while ((status & 0x08) && time_before(jiffies, timeout)); } while ((status & 0x08) && time_before(jiffies, timeout));
timeout = jiffies + HZ/10; timeout = jiffies + HZ/10;
status = 0; status = 0;
do { do {
status = RREG32(MGAREG_Status); status = RREG32(MGAREG_STATUS);
} while (!(status & 0x08) && time_before(jiffies, timeout)); } while (!(status & 0x08) && time_before(jiffies, timeout));
} }
...@@ -125,7 +125,7 @@ static inline void mga_wait_busy(struct mga_device *mdev) ...@@ -125,7 +125,7 @@ static inline void mga_wait_busy(struct mga_device *mdev)
unsigned long timeout = jiffies + HZ; unsigned long timeout = jiffies + HZ;
unsigned int status = 0; unsigned int status = 0;
do { do {
status = RREG8(MGAREG_Status + 2); status = RREG8(MGAREG_STATUS + 2);
} while ((status & 0x01) && time_before(jiffies, timeout)); } while ((status & 0x01) && time_before(jiffies, timeout));
} }
......
...@@ -102,7 +102,7 @@ ...@@ -102,7 +102,7 @@
#define MGAREG_EXEC 0x0100 #define MGAREG_EXEC 0x0100
#define MGAREG_FIFOSTATUS 0x1e10 #define MGAREG_FIFOSTATUS 0x1e10
#define MGAREG_Status 0x1e14 #define MGAREG_STATUS 0x1e14
#define MGAREG_CACHEFLUSH 0x1fff #define MGAREG_CACHEFLUSH 0x1fff
#define MGAREG_ICLEAR 0x1e18 #define MGAREG_ICLEAR 0x1e18
#define MGAREG_IEN 0x1e1c #define MGAREG_IEN 0x1e1c
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment