From 23fa18eaa71266feff7ba8d83022d9e1cc83c65a Mon Sep 17 00:00:00 2001
From: hc <hc@nodka.com>
Date: Fri, 10 May 2024 07:42:03 +0000
Subject: [PATCH] disable pwm7

---
 kernel/drivers/input/touchscreen/gt1x/gt1x_tools.c |   11 +++++------
 1 files changed, 5 insertions(+), 6 deletions(-)

diff --git a/kernel/drivers/input/touchscreen/gt1x/gt1x_tools.c b/kernel/drivers/input/touchscreen/gt1x/gt1x_tools.c
index bf442dc..1d824bd 100644
--- a/kernel/drivers/input/touchscreen/gt1x/gt1x_tools.c
+++ b/kernel/drivers/input/touchscreen/gt1x/gt1x_tools.c
@@ -60,12 +60,11 @@
 static char procname[20] = { 0 };
 
 static struct proc_dir_entry *gt1x_tool_proc_entry;
-static struct file_operations gt1x_tool_fops = {
-	.read = gt1x_tool_read,
-	.write = gt1x_tool_write,
-  .open = gt1x_tool_open,
-  .release = gt1x_tool_release,
-  .owner = THIS_MODULE,
+static const struct proc_ops gt1x_tool_fops = {
+	.proc_read = gt1x_tool_read,
+	.proc_write = gt1x_tool_write,
+	.proc_open = gt1x_tool_open,
+	.proc_release = gt1x_tool_release,
 };
 
 static void set_tool_node_name(char *procname)

--
Gitblit v1.6.2