From: Thomas Zimmermann Date: Sun, 6 Jul 2025 16:26:41 +0000 (+0200) Subject: drm/ast: Move struct ast_dramstruct to ast_post.h X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=f28f15e6d009c029a28eebc10944362346e34554;p=thirdparty%2Flinux.git drm/ast: Move struct ast_dramstruct to ast_post.h Declare struct ast_dramstruct in ast_post.h and remove its original header file. Signed-off-by: Thomas Zimmermann Reviewed-by: Jocelyn Falempe Link: https://lore.kernel.org/r/20250706162816.211552-7-tzimmermann@suse.de --- diff --git a/drivers/gpu/drm/ast/ast_2000.c b/drivers/gpu/drm/ast/ast_2000.c index 099c90e1402f5..b2ad2ea5056b2 100644 --- a/drivers/gpu/drm/ast/ast_2000.c +++ b/drivers/gpu/drm/ast/ast_2000.c @@ -28,8 +28,8 @@ #include -#include "ast_dram_tables.h" #include "ast_drv.h" +#include "ast_post.h" /* * POST diff --git a/drivers/gpu/drm/ast/ast_2100.c b/drivers/gpu/drm/ast/ast_2100.c index f41c778e02da3..ee40f3911ca4f 100644 --- a/drivers/gpu/drm/ast/ast_2100.c +++ b/drivers/gpu/drm/ast/ast_2100.c @@ -28,8 +28,8 @@ #include -#include "ast_dram_tables.h" #include "ast_drv.h" +#include "ast_post.h" /* * POST diff --git a/drivers/gpu/drm/ast/ast_dram_tables.h b/drivers/gpu/drm/ast/ast_dram_tables.h deleted file mode 100644 index 6c191e2c4e6c5..0000000000000 --- a/drivers/gpu/drm/ast/ast_dram_tables.h +++ /dev/null @@ -1,11 +0,0 @@ -/* SPDX-License-Identifier: GPL-2.0 */ -#ifndef AST_DRAM_TABLES_H -#define AST_DRAM_TABLES_H - -/* DRAM timing tables */ -struct ast_dramstruct { - u16 index; - u32 data; -}; - -#endif diff --git a/drivers/gpu/drm/ast/ast_post.h b/drivers/gpu/drm/ast/ast_post.h index 314fa0475c799..3a55c32a7eb75 100644 --- a/drivers/gpu/drm/ast/ast_post.h +++ b/drivers/gpu/drm/ast/ast_post.h @@ -7,6 +7,12 @@ struct ast_device; +/* DRAM timing tables */ +struct ast_dramstruct { + u16 index; + u32 data; +}; + u32 __ast_mindwm(void __iomem *regs, u32 r); void __ast_moutdwm(void __iomem *regs, u32 r, u32 v);