From 861a024589b3f42ca93877bf74f8a67f59c66ca8 Mon Sep 17 00:00:00 2001 From: Mike Tipton Date: Mon, 2 Nov 2020 15:27:58 -0800 Subject: [PATCH] ANDROID: clk: Enable writable debugfs files Enable writable clock debugfs files which are required for debugging and testing. This doesn't introduce security or safety issues for Android since debugfs itself is already considered unsafe and mounting it isn't allowed on user devices. Bug: 172264964 Change-Id: I68bd54cfe3765e2b3cbb208383c6117e662054b7 Signed-off-by: Mike Tipton --- drivers/clk/clk.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/clk/clk.c b/drivers/clk/clk.c index 59b73aab1298..d3e58cb384bb 100644 --- a/drivers/clk/clk.c +++ b/drivers/clk/clk.c @@ -3107,7 +3107,7 @@ static int clk_dump_show(struct seq_file *s, void *data) } DEFINE_SHOW_ATTRIBUTE(clk_dump); -#undef CLOCK_ALLOW_WRITE_DEBUGFS +#define CLOCK_ALLOW_WRITE_DEBUGFS #ifdef CLOCK_ALLOW_WRITE_DEBUGFS /* * This can be dangerous, therefore don't provide any real compile time