Commit 52e32da9 authored by Thomas Zimmermann's avatar Thomas Zimmermann

drm/mgag200: Rename cursor functions to use mgag200_ prefix

Although the driver source code is fairly inconsistent wrt naming, the
prefix should be mgag200. Rename cursor functions accordingly.
Signed-off-by: default avatarThomas Zimmermann <tzimmermann@suse.de>
Acked-by: default avatarGerd Hoffmann <kraxel@redhat.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20190927091301.10574-2-tzimmermann@suse.de
parent 0090ef3e
...@@ -13,10 +13,10 @@ static bool warn_transparent = true; ...@@ -13,10 +13,10 @@ static bool warn_transparent = true;
static bool warn_palette = true; static bool warn_palette = true;
/* /*
Hide the cursor off screen. We can't disable the cursor hardware because it * Hide the cursor off screen. We can't disable the cursor hardware because
takes too long to re-activate and causes momentary corruption * it takes too long to re-activate and causes momentary corruption.
*/ */
static void mga_hide_cursor(struct mga_device *mdev) static void mgag200_hide_cursor(struct mga_device *mdev)
{ {
WREG8(MGA_CURPOSXL, 0); WREG8(MGA_CURPOSXL, 0);
WREG8(MGA_CURPOSXH, 0); WREG8(MGA_CURPOSXH, 0);
...@@ -25,11 +25,8 @@ static void mga_hide_cursor(struct mga_device *mdev) ...@@ -25,11 +25,8 @@ static void mga_hide_cursor(struct mga_device *mdev)
mdev->cursor.pixels_current = NULL; mdev->cursor.pixels_current = NULL;
} }
int mga_crtc_cursor_set(struct drm_crtc *crtc, int mgag200_crtc_cursor_set(struct drm_crtc *crtc, struct drm_file *file_priv,
struct drm_file *file_priv, uint32_t handle, uint32_t width, uint32_t height)
uint32_t handle,
uint32_t width,
uint32_t height)
{ {
struct drm_device *dev = crtc->dev; struct drm_device *dev = crtc->dev;
struct mga_device *mdev = (struct mga_device *)dev->dev_private; struct mga_device *mdev = (struct mga_device *)dev->dev_private;
...@@ -66,7 +63,7 @@ int mga_crtc_cursor_set(struct drm_crtc *crtc, ...@@ -66,7 +63,7 @@ int mga_crtc_cursor_set(struct drm_crtc *crtc,
} }
if (!handle || !file_priv) { if (!handle || !file_priv) {
mga_hide_cursor(mdev); mgag200_hide_cursor(mdev);
return 0; return 0;
} }
...@@ -224,7 +221,7 @@ int mga_crtc_cursor_set(struct drm_crtc *crtc, ...@@ -224,7 +221,7 @@ int mga_crtc_cursor_set(struct drm_crtc *crtc,
return ret; return ret;
} }
int mga_crtc_cursor_move(struct drm_crtc *crtc, int x, int y) int mgag200_crtc_cursor_move(struct drm_crtc *crtc, int x, int y)
{ {
struct mga_device *mdev = (struct mga_device *)crtc->dev->dev_private; struct mga_device *mdev = (struct mga_device *)crtc->dev->dev_private;
/* Our origin is at (64,64) */ /* Our origin is at (64,64) */
......
...@@ -203,8 +203,8 @@ int mgag200_mm_init(struct mga_device *mdev); ...@@ -203,8 +203,8 @@ int mgag200_mm_init(struct mga_device *mdev);
void mgag200_mm_fini(struct mga_device *mdev); void mgag200_mm_fini(struct mga_device *mdev);
int mgag200_mmap(struct file *filp, struct vm_area_struct *vma); int mgag200_mmap(struct file *filp, struct vm_area_struct *vma);
int mga_crtc_cursor_set(struct drm_crtc *crtc, struct drm_file *file_priv, int mgag200_crtc_cursor_set(struct drm_crtc *crtc, struct drm_file *file_priv,
uint32_t handle, uint32_t width, uint32_t height); uint32_t handle, uint32_t width, uint32_t height);
int mga_crtc_cursor_move(struct drm_crtc *crtc, int x, int y); int mgag200_crtc_cursor_move(struct drm_crtc *crtc, int x, int y);
#endif /* __MGAG200_DRV_H__ */ #endif /* __MGAG200_DRV_H__ */
...@@ -1413,8 +1413,8 @@ static void mga_crtc_disable(struct drm_crtc *crtc) ...@@ -1413,8 +1413,8 @@ static void mga_crtc_disable(struct drm_crtc *crtc)
/* These provide the minimum set of functions required to handle a CRTC */ /* These provide the minimum set of functions required to handle a CRTC */
static const struct drm_crtc_funcs mga_crtc_funcs = { static const struct drm_crtc_funcs mga_crtc_funcs = {
.cursor_set = mga_crtc_cursor_set, .cursor_set = mgag200_crtc_cursor_set,
.cursor_move = mga_crtc_cursor_move, .cursor_move = mgag200_crtc_cursor_move,
.gamma_set = mga_crtc_gamma_set, .gamma_set = mga_crtc_gamma_set,
.set_config = drm_crtc_helper_set_config, .set_config = drm_crtc_helper_set_config,
.destroy = mga_crtc_destroy, .destroy = mga_crtc_destroy,
......
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