diff options
| author | Thomas Zimmermann <[email protected]> | 2024-09-11 11:51:24 +0000 |
|---|---|---|
| committer | Thomas Zimmermann <[email protected]> | 2024-09-13 13:41:16 +0000 |
| commit | 620824660ec89c691b763faa406d93fc591a34a9 (patch) | |
| tree | 19f0866d33237da76373a8dfcba5cbec6e2d8988 /drivers/gpu/drm/ast/ast_main.c | |
| parent | drm/ast: dp501: Inline ast_dp501_connector_init() (diff) | |
| download | kernel-620824660ec89c691b763faa406d93fc591a34a9.tar.gz kernel-620824660ec89c691b763faa406d93fc591a34a9.zip | |
drm/ast: dp501: Avoid upcasting to struct ast_device
Several functions receive an instance of struct drm_device only to
upcast it to struct ast_device. Improve type safety by passing the
AST device directly.
Signed-off-by: Thomas Zimmermann <[email protected]>
Reviewed-by: Jocelyn Falempe <[email protected]>
Link: https://patchwork.freedesktop.org/patch/msgid/[email protected]
Diffstat (limited to 'drivers/gpu/drm/ast/ast_main.c')
| -rw-r--r-- | drivers/gpu/drm/ast/ast_main.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpu/drm/ast/ast_main.c b/drivers/gpu/drm/ast/ast_main.c index d7d503e78e25..3aeb0f4b19d5 100644 --- a/drivers/gpu/drm/ast/ast_main.c +++ b/drivers/gpu/drm/ast/ast_main.c @@ -110,7 +110,7 @@ static void ast_detect_tx_chip(struct ast_device *ast, bool need_post) ast->dp501_fw_addr = drmm_kzalloc(dev, 32*1024, GFP_KERNEL); if (ast->dp501_fw_addr) { /* backup firmware */ - if (ast_backup_fw(dev, ast->dp501_fw_addr, 32*1024)) { + if (ast_backup_fw(ast, ast->dp501_fw_addr, 32*1024)) { drmm_kfree(dev, ast->dp501_fw_addr); ast->dp501_fw_addr = NULL; } |
