28 lines
928 B
Diff
28 lines
928 B
Diff
|
From 5a6717305bc0ee08d08dc27f8f3415c4bb1c34c3 Mon Sep 17 00:00:00 2001
|
||
|
From: Felix Radensky <fradensky@nvidia.com>
|
||
|
Date: Sun, 20 Nov 2022 15:25:58 +0200
|
||
|
Subject: [PATCH backport 5.10 59/63] regmap: debugfs: Enable writing to the
|
||
|
regmap debugfs registers
|
||
|
|
||
|
Signed-off-by: Felix Radensky <fradensky@nvidia.com>
|
||
|
---
|
||
|
drivers/base/regmap/regmap-debugfs.c | 2 +-
|
||
|
1 file changed, 1 insertion(+), 1 deletion(-)
|
||
|
|
||
|
diff --git a/drivers/base/regmap/regmap-debugfs.c b/drivers/base/regmap/regmap-debugfs.c
|
||
|
index 211a335a6..ee3cccaf5 100644
|
||
|
--- a/drivers/base/regmap/regmap-debugfs.c
|
||
|
+++ b/drivers/base/regmap/regmap-debugfs.c
|
||
|
@@ -290,7 +290,7 @@ static ssize_t regmap_map_read_file(struct file *file, char __user *user_buf,
|
||
|
count, ppos);
|
||
|
}
|
||
|
|
||
|
-#undef REGMAP_ALLOW_WRITE_DEBUGFS
|
||
|
+#define REGMAP_ALLOW_WRITE_DEBUGFS
|
||
|
#ifdef REGMAP_ALLOW_WRITE_DEBUGFS
|
||
|
/*
|
||
|
* This can be dangerous especially when we have clients such as
|
||
|
--
|
||
|
2.20.1
|
||
|
|