From 214de1c9b0d0611cd35c5ab7a4245583feb3516e Mon Sep 17 00:00:00 2001 From: haojl2 Date: Thu, 9 Aug 2018 20:28:25 +0800 Subject: [PATCH] himax_mmi: add write permission to self_test entry Add owner and group write permission to self_test entry Change-Id: Iefbdf02f1e735dd147236c12971acec432a05ea2 Signed-off-by: haojl2 Reviewed-on: https://gerrit.mot.com/1223644 SLTApproved: Slta Waiver SME-Granted: SME Approvals Granted Tested-by: Jira Key Reviewed-by: Jianqi Yang Reviewed-by: Haichao Li Submit-Approved: Jira Key --- drivers/input/touchscreen/himax_mmi/himax_common.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/input/touchscreen/himax_mmi/himax_common.c b/drivers/input/touchscreen/himax_mmi/himax_common.c index d1e0fbb28254..553a3276ca64 100644 --- a/drivers/input/touchscreen/himax_mmi/himax_common.c +++ b/drivers/input/touchscreen/himax_mmi/himax_common.c @@ -528,7 +528,8 @@ int himax_common_proc_init(void) fp_himax_self_test_init(); #endif - himax_proc_self_test_file = proc_create(HIMAX_PROC_SELF_TEST_FILE, (S_IRUGO), himax_touch_proc_dir, &himax_proc_self_test_ops); + himax_proc_self_test_file = proc_create(HIMAX_PROC_SELF_TEST_FILE, (S_IRUGO | S_IWUSR | S_IWGRP), + himax_touch_proc_dir, &himax_proc_self_test_ops); if (himax_proc_self_test_file == NULL) { E(" %s: proc self_test file create failed!\n", __func__); goto fail_1;