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.c | 23 +++++++++-------------- 1 files changed, 9 insertions(+), 14 deletions(-) diff --git a/kernel/drivers/gpu/arm/bifrost/mali_kbase_regs_history_debugfs.c b/kernel/drivers/gpu/arm/bifrost/mali_kbase_regs_history_debugfs.c index d13ab10..147082c 100644 --- a/kernel/drivers/gpu/arm/bifrost/mali_kbase_regs_history_debugfs.c +++ b/kernel/drivers/gpu/arm/bifrost/mali_kbase_regs_history_debugfs.c @@ -1,7 +1,7 @@ // SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note /* * - * (C) COPYRIGHT 2014, 2016, 2019-2021 ARM Limited. All rights reserved. + * (C) COPYRIGHT 2014, 2016, 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 @@ -36,7 +36,7 @@ * If resizing fails for any reason (e.g., could not allocate memory, invalid * buffer size) then the original buffer will be kept intact. * - * @return 0 if the buffer was resized, failure otherwise + * Return: 0 if the buffer was resized, failure otherwise */ static int kbase_io_history_resize(struct kbase_io_history *h, u16 new_size) { @@ -158,12 +158,8 @@ return kbase_io_history_resize(h, (u16)val); } - -DEFINE_SIMPLE_ATTRIBUTE(regs_history_size_fops, - regs_history_size_get, - regs_history_size_set, - "%llu\n"); - +DEFINE_DEBUGFS_ATTRIBUTE(regs_history_size_fops, regs_history_size_get, regs_history_size_set, + "%llu\n"); /** * regs_history_show - show callback for the register access history file. @@ -173,8 +169,7 @@ * * This function is called to dump all recent accesses to the GPU registers. * - * @return 0 if successfully prints data in debugfs entry file, failure - * otherwise + * Return: 0 if successfully prints data in debugfs entry file, failure otherwise */ static int regs_history_show(struct seq_file *sfile, void *data) { @@ -214,7 +209,7 @@ * @in: &struct inode pointer * @file: &struct file pointer * - * @return file descriptor + * Return: file descriptor */ static int regs_history_open(struct inode *in, struct file *file) { @@ -231,13 +226,13 @@ void kbasep_regs_history_debugfs_init(struct kbase_device *kbdev) { - debugfs_create_bool("regs_history_enabled", S_IRUGO | S_IWUSR, + debugfs_create_bool("regs_history_enabled", 0644, kbdev->mali_debugfs_directory, &kbdev->io_history.enabled); - debugfs_create_file("regs_history_size", S_IRUGO | S_IWUSR, + debugfs_create_file("regs_history_size", 0644, kbdev->mali_debugfs_directory, &kbdev->io_history, ®s_history_size_fops); - debugfs_create_file("regs_history", S_IRUGO, + debugfs_create_file("regs_history", 0444, kbdev->mali_debugfs_directory, &kbdev->io_history, ®s_history_fops); } -- Gitblit v1.6.2