From 08f87f769b595151be1afeff53e144f543faa614 Mon Sep 17 00:00:00 2001
From: hc <hc@nodka.com>
Date: Wed, 06 Dec 2023 09:51:13 +0000
Subject: [PATCH] add dts config

---
 kernel/drivers/gpu/arm/bifrost/mali_kbase_debugfs_helper.h |   46 +++++++++++++++++++++++-----------------------
 1 files changed, 23 insertions(+), 23 deletions(-)

diff --git a/kernel/drivers/gpu/arm/bifrost/mali_kbase_debugfs_helper.h b/kernel/drivers/gpu/arm/bifrost/mali_kbase_debugfs_helper.h
index 4c69d8b..cbb24d6 100644
--- a/kernel/drivers/gpu/arm/bifrost/mali_kbase_debugfs_helper.h
+++ b/kernel/drivers/gpu/arm/bifrost/mali_kbase_debugfs_helper.h
@@ -1,7 +1,7 @@
 /* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */
 /*
  *
- * (C) COPYRIGHT 2019-2021 ARM Limited. All rights reserved.
+ * (C) COPYRIGHT 2019-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
@@ -37,6 +37,11 @@
  * kbase_debugfs_helper_set_attr_from_string - Parse a string to reconfigure an
  *                                             array
  *
+ * @buf:         Input string to parse. Must be nul-terminated!
+ * @array:       Address of an object that can be accessed like an array.
+ * @nelems:      Number of elements in the array.
+ * @set_attr_fn: Function to be called back for each array element.
+ *
  * The given function is called once for each attribute value found in the
  * input string. It is not an error if the string specifies fewer attribute
  * values than the specified number of array elements.
@@ -45,11 +50,6 @@
  * according to the standard rules (e.g. prefix "0x" for hexadecimal).
  * Attribute values are separated by one or more space characters.
  * Additional leading and trailing spaces are ignored.
- *
- * @buf:         Input string to parse. Must be nul-terminated!
- * @array:       Address of an object that can be accessed like an array.
- * @nelems:      Number of elements in the array.
- * @set_attr_fn: Function to be called back for each array element.
  *
  * Return: 0 if success, negative error code otherwise.
  */
@@ -62,6 +62,8 @@
  *                                  debugfs file for any incorrect formats
  *                                  or wrong values.
  *
+ * @buf: Null-terminated string to validate.
+ *
  * This function is to be used before any writes to debugfs values are done
  * such that any strings with erroneous values (such as octal 09 or
  * hexadecimal 0xGH are fully ignored) - without this validation, any correct
@@ -72,8 +74,6 @@
  * It is largely similar to set_attr_from_string to iterate through the values
  * of the input string. This function also requires the input string to be
  * writable.
- *
- * @buf: Null-terminated string to validate.
  *
  * Return: 0 with no error, else -22 (the invalid return value of kstrtoul) if
  *         any value in the string was wrong or with an incorrect format.
@@ -95,16 +95,16 @@
  * kbase_debugfs_helper_get_attr_to_string - Construct a formatted string
  *                                           from elements in an array
  *
- * The given function is called once for each array element to get the
- * value of the attribute to be inspected. The attribute values are
- * written to the buffer as a formatted string of decimal numbers
- * separated by spaces and terminated by a linefeed.
- *
  * @buf:         Buffer in which to store the formatted output string.
  * @size:        The size of the buffer, in bytes.
  * @array:       Address of an object that can be accessed like an array.
  * @nelems:      Number of elements in the array.
  * @get_attr_fn: Function to be called back for each array element.
+ *
+ * The given function is called once for each array element to get the
+ * value of the attribute to be inspected. The attribute values are
+ * written to the buffer as a formatted string of decimal numbers
+ * separated by spaces and terminated by a linefeed.
  *
  * Return: Number of characters written excluding the nul terminator.
  */
@@ -116,6 +116,10 @@
  * kbase_debugfs_helper_seq_read - Implements reads from a virtual file for an
  *                                 array
  *
+ * @sfile:       A virtual file previously opened by calling single_open.
+ * @nelems:      Number of elements in the array.
+ * @get_attr_fn: Function to be called back for each array element.
+ *
  * The virtual file must have been opened by calling single_open and passing
  * the address of an object that can be accessed like an array.
  *
@@ -123,10 +127,6 @@
  * value of the attribute to be inspected. The attribute values are
  * written to the buffer as a formatted string of decimal numbers
  * separated by spaces and terminated by a linefeed.
- *
- * @sfile:       A virtual file previously opened by calling single_open.
- * @nelems:      Number of elements in the array.
- * @get_attr_fn: Function to be called back for each array element.
  *
  * Return: 0 if success, negative error code otherwise.
  */
@@ -138,18 +138,18 @@
  * kbase_debugfs_helper_seq_write - Implements writes to a virtual file for an
  *                                  array
  *
+ * @file:        A virtual file previously opened by calling single_open.
+ * @ubuf:        Source address in user space.
+ * @count:       Number of bytes written to the virtual file.
+ * @nelems:      Number of elements in the array.
+ * @set_attr_fn: Function to be called back for each array element.
+ *
  * The virtual file must have been opened by calling single_open and passing
  * the address of an object that can be accessed like an array.
  *
  * The given function is called once for each attribute value found in the
  * data written to the virtual file. For further details, refer to the
  * description of set_attr_from_string.
- *
- * @file:        A virtual file previously opened by calling single_open.
- * @ubuf:        Source address in user space.
- * @count:       Number of bytes written to the virtual file.
- * @nelems:      Number of elements in the array.
- * @set_attr_fn: Function to be called back for each array element.
  *
  * Return: 0 if success, negative error code otherwise.
  */

--
Gitblit v1.6.2