diff options
| author | Thomas Zimmermann <[email protected]> | 2020-07-02 11:50:17 +0000 |
|---|---|---|
| committer | Thomas Zimmermann <[email protected]> | 2020-07-07 09:11:22 +0000 |
| commit | beb2355eecbf67d2fce79af73215c875173d9990 (patch) | |
| tree | cd598fadb70aaeccfc092de05f1df073a7a977ad /drivers/gpu/drm/ast/ast_cursor.c | |
| parent | drm/ast: Move cursor functions to ast_cursor.c (diff) | |
| download | kernel-beb2355eecbf67d2fce79af73215c875173d9990.tar.gz kernel-beb2355eecbf67d2fce79af73215c875173d9990.zip | |
drm/ast: Pass struct ast_private instance to cursor init/fini functions
Removes some typecasting.
v2:
* use to_ast_private() instead of struct drm_device.dev_private
Signed-off-by: Thomas Zimmermann <[email protected]>
Acked-by: Sam Ravnborg <[email protected]>
Link: https://patchwork.freedesktop.org/patch/msgid/[email protected]
Diffstat (limited to 'drivers/gpu/drm/ast/ast_cursor.c')
| -rw-r--r-- | drivers/gpu/drm/ast/ast_cursor.c | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/drivers/gpu/drm/ast/ast_cursor.c b/drivers/gpu/drm/ast/ast_cursor.c index 53bb6eebc7cd..1d4f51a7fe22 100644 --- a/drivers/gpu/drm/ast/ast_cursor.c +++ b/drivers/gpu/drm/ast/ast_cursor.c @@ -34,9 +34,9 @@ /* * Allocate cursor BOs and pins them at the end of VRAM. */ -int ast_cursor_init(struct drm_device *dev) +int ast_cursor_init(struct ast_private *ast) { - struct ast_private *ast = to_ast_private(dev); + struct drm_device *dev = ast->dev; size_t size, i; struct drm_gem_vram_object *gbo; int ret; @@ -72,9 +72,8 @@ err_drm_gem_vram_put: return ret; } -void ast_cursor_fini(struct drm_device *dev) +void ast_cursor_fini(struct ast_private *ast) { - struct ast_private *ast = to_ast_private(dev); size_t i; struct drm_gem_vram_object *gbo; |
