summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas Zimmermann <tzimmermann@suse.de>2025-07-06 18:26:41 +0200
committerThomas Zimmermann <tzimmermann@suse.de>2025-07-09 14:36:20 +0200
commitf28f15e6d009c029a28eebc10944362346e34554 (patch)
tree0604e9464bc241c6af480085a026c4cf52c60bd5
parent1be08550e6e72e8ab29e909db266130b59a47277 (diff)
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 <tzimmermann@suse.de> Reviewed-by: Jocelyn Falempe <jfalempe@redhat.com> Link: https://lore.kernel.org/r/20250706162816.211552-7-tzimmermann@suse.de
-rw-r--r--drivers/gpu/drm/ast/ast_2000.c2
-rw-r--r--drivers/gpu/drm/ast/ast_2100.c2
-rw-r--r--drivers/gpu/drm/ast/ast_dram_tables.h11
-rw-r--r--drivers/gpu/drm/ast/ast_post.h6
4 files changed, 8 insertions, 13 deletions
diff --git a/drivers/gpu/drm/ast/ast_2000.c b/drivers/gpu/drm/ast/ast_2000.c
index 099c90e1402f..b2ad2ea5056b 100644
--- a/drivers/gpu/drm/ast/ast_2000.c
+++ b/drivers/gpu/drm/ast/ast_2000.c
@@ -28,8 +28,8 @@
#include <linux/delay.h>
-#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 f41c778e02da..ee40f3911ca4 100644
--- a/drivers/gpu/drm/ast/ast_2100.c
+++ b/drivers/gpu/drm/ast/ast_2100.c
@@ -28,8 +28,8 @@
#include <linux/delay.h>
-#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 6c191e2c4e6c..000000000000
--- 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 314fa0475c79..3a55c32a7eb7 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);