From f70575805708cabdedea7498aaa3f710fde4d920 Mon Sep 17 00:00:00 2001
From: hc <hc@nodka.com>
Date: Wed, 31 Jan 2024 03:29:01 +0000
Subject: [PATCH] add lvds1024*800

---
 kernel/drivers/gpu/arm/bifrost/mali_kbase_regs_history_debugfs.h |   26 +++++++++-----------------
 1 files changed, 9 insertions(+), 17 deletions(-)

diff --git a/kernel/drivers/gpu/arm/bifrost/mali_kbase_regs_history_debugfs.h b/kernel/drivers/gpu/arm/bifrost/mali_kbase_regs_history_debugfs.h
index cbe6022..ae327dd 100644
--- a/kernel/drivers/gpu/arm/bifrost/mali_kbase_regs_history_debugfs.h
+++ b/kernel/drivers/gpu/arm/bifrost/mali_kbase_regs_history_debugfs.h
@@ -1,7 +1,7 @@
 /* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */
 /*
  *
- * (C) COPYRIGHT 2014, 2016, 2020-2021 ARM Limited. All rights reserved.
+ * (C) COPYRIGHT 2014, 2016, 2020-2022 ARM Limited. All rights reserved.
  *
  * This program is free software and is provided to you under the terms of the
  * GNU General Public License version 2 as published by the Free Software
@@ -20,7 +20,7 @@
  */
 
 /**
- * Header file for register access history support via debugfs
+ * DOC: Header file for register access history support via debugfs
  *
  * This interface is made available via /sys/kernel/debug/mali#/regs_history*.
  *
@@ -44,7 +44,7 @@
  * @h: The register history to initialize
  * @n: The number of register accesses that the buffer could hold
  *
- * @return 0 if successfully initialized, failure otherwise
+ * Return: 0 if successfully initialized, failure otherwise
  */
 int kbase_io_history_init(struct kbase_io_history *h, u16 n);
 
@@ -69,23 +69,15 @@
  */
 void kbasep_regs_history_debugfs_init(struct kbase_device *kbdev);
 
-#else /* defined(CONFIG_DEBUG_FS) && !IS_ENABLED(CONFIG_MALI_BIFROST_NO_MALI) */
-static inline int kbase_io_history_init(struct kbase_io_history *h, u16 n)
-{
-	return 0;
-}
+#else /* !defined(CONFIG_DEBUG_FS) || IS_ENABLED(CONFIG_MALI_BIFROST_NO_MALI) */
 
-static inline void kbase_io_history_term(struct kbase_io_history *h)
-{
-}
+#define kbase_io_history_init(...) (0)
 
-static inline void kbase_io_history_dump(struct kbase_device *kbdev)
-{
-}
+#define kbase_io_history_term CSTD_NOP
 
-static inline void kbasep_regs_history_debugfs_init(struct kbase_device *kbdev)
-{
-}
+#define kbase_io_history_dump CSTD_NOP
+
+#define kbasep_regs_history_debugfs_init CSTD_NOP
 
 #endif /* defined(CONFIG_DEBUG_FS) && !IS_ENABLED(CONFIG_MALI_BIFROST_NO_MALI) */
 

--
Gitblit v1.6.2