[<prev] [next>] [day] [month] [year] [list]
Message-Id: <20160802115407.8242-1-baolex.ni@intel.com>
Date: Tue, 2 Aug 2016 19:54:07 +0800
From: Baole Ni <baolex.ni@...el.com>
To: a.zummo@...ertech.it, alexandre.belloni@...e-electrons.com,
paulus@...ba.org, mpe@...erman.id.au, dwmw2@...radead.org,
m.chehab@...sung.com, pawel@...iak.com, m.szyprowski@...sung.com,
kyungmin.park@...sung.com, k.kozlowski@...sung.com
Cc: rtc-linux@...glegroups.com, linux-kernel@...r.kernel.org,
chuansheng.liu@...el.com, baolex.ni@...el.com
Subject: [PATCH 0874/1285] Replace numeric parameter like 0444 with macro
I find that the developers often just specified the numeric value
when calling a macro which is defined with a parameter for access permission.
As we know, these numeric value for access permission have had the corresponding macro,
and that using macro can improve the robustness and readability of the code,
thus, I suggest replacing the numeric parameter with the macro.
Signed-off-by: Chuansheng Liu <chuansheng.liu@...el.com>
Signed-off-by: Baole Ni <baolex.ni@...el.com>
---
drivers/rtc/rtc-test.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/rtc/rtc-test.c b/drivers/rtc/rtc-test.c
index 3a2da4c..37e10e3 100644
--- a/drivers/rtc/rtc-test.c
+++ b/drivers/rtc/rtc-test.c
@@ -14,7 +14,7 @@
#include <linux/platform_device.h>
static int test_mmss64;
-module_param(test_mmss64, int, 0644);
+module_param(test_mmss64, int, S_IRUSR | S_IWUSR | S_IRGRP | S_IROTH);
MODULE_PARM_DESC(test_mmss64, "Test struct rtc_class_ops.set_mmss64().");
static struct platform_device *test0 = NULL, *test1 = NULL;
--
2.9.2
Powered by blists - more mailing lists