Commit a65ab973 authored by Utkarsh Verma's avatar Utkarsh Verma Committed by Johan Hovold

USB: serial: replace symbolic permissions by octal permissions

Replace symbolic permission macros with octal permission numbers
because octal permission numbers are easier to read and understand
instead of their symbolic macro names.

No functional change.
Suggested-by: default avatarLukas Bulwahn <lukas.bulwahn@gmail.com>
Signed-off-by: default avatarUtkarsh Verma <utkarshverma294@gmail.com>
Signed-off-by: default avatarJohan Hovold <johan@kernel.org>
parent 4e9340bb
...@@ -1199,9 +1199,9 @@ MODULE_AUTHOR(DRIVER_AUTHOR); ...@@ -1199,9 +1199,9 @@ MODULE_AUTHOR(DRIVER_AUTHOR);
MODULE_DESCRIPTION(DRIVER_DESC); MODULE_DESCRIPTION(DRIVER_DESC);
MODULE_LICENSE("GPL"); MODULE_LICENSE("GPL");
module_param(stats, bool, S_IRUGO | S_IWUSR); module_param(stats, bool, 0644);
MODULE_PARM_DESC(stats, "Enable statistics or not"); MODULE_PARM_DESC(stats, "Enable statistics or not");
module_param(interval, int, S_IRUGO | S_IWUSR); module_param(interval, int, 0644);
MODULE_PARM_DESC(interval, "Overrides interrupt interval"); MODULE_PARM_DESC(interval, "Overrides interrupt interval");
module_param(unstable_bauds, bool, S_IRUGO | S_IWUSR); module_param(unstable_bauds, bool, 0644);
MODULE_PARM_DESC(unstable_bauds, "Allow unstable baud rates"); MODULE_PARM_DESC(unstable_bauds, "Allow unstable baud rates");
...@@ -2937,5 +2937,5 @@ MODULE_AUTHOR(DRIVER_AUTHOR); ...@@ -2937,5 +2937,5 @@ MODULE_AUTHOR(DRIVER_AUTHOR);
MODULE_DESCRIPTION(DRIVER_DESC); MODULE_DESCRIPTION(DRIVER_DESC);
MODULE_LICENSE("GPL"); MODULE_LICENSE("GPL");
module_param(ndi_latency_timer, int, S_IRUGO | S_IWUSR); module_param(ndi_latency_timer, int, 0644);
MODULE_PARM_DESC(ndi_latency_timer, "NDI device latency timer override"); MODULE_PARM_DESC(ndi_latency_timer, "NDI device latency timer override");
...@@ -1444,5 +1444,5 @@ MODULE_AUTHOR(DRIVER_AUTHOR); ...@@ -1444,5 +1444,5 @@ MODULE_AUTHOR(DRIVER_AUTHOR);
MODULE_DESCRIPTION(DRIVER_DESC); MODULE_DESCRIPTION(DRIVER_DESC);
MODULE_LICENSE("GPL"); MODULE_LICENSE("GPL");
module_param(initial_mode, int, S_IRUGO); module_param(initial_mode, int, 0444);
MODULE_PARM_DESC(initial_mode, "Initial mode"); MODULE_PARM_DESC(initial_mode, "Initial mode");
...@@ -2746,9 +2746,9 @@ MODULE_DESCRIPTION(DRIVER_DESC); ...@@ -2746,9 +2746,9 @@ MODULE_DESCRIPTION(DRIVER_DESC);
MODULE_LICENSE("GPL"); MODULE_LICENSE("GPL");
MODULE_FIRMWARE("edgeport/down3.bin"); MODULE_FIRMWARE("edgeport/down3.bin");
module_param(ignore_cpu_rev, bool, S_IRUGO | S_IWUSR); module_param(ignore_cpu_rev, bool, 0644);
MODULE_PARM_DESC(ignore_cpu_rev, MODULE_PARM_DESC(ignore_cpu_rev,
"Ignore the cpu revision when connecting to a device"); "Ignore the cpu revision when connecting to a device");
module_param(default_uart_mode, int, S_IRUGO | S_IWUSR); module_param(default_uart_mode, int, 0644);
MODULE_PARM_DESC(default_uart_mode, "Default uart_mode, 0=RS232, ..."); MODULE_PARM_DESC(default_uart_mode, "Default uart_mode, 0=RS232, ...");
...@@ -599,10 +599,10 @@ MODULE_AUTHOR(DRIVER_AUTHOR); ...@@ -599,10 +599,10 @@ MODULE_AUTHOR(DRIVER_AUTHOR);
MODULE_DESCRIPTION(DRIVER_DESC); MODULE_DESCRIPTION(DRIVER_DESC);
MODULE_LICENSE("GPL"); MODULE_LICENSE("GPL");
module_param(connect_retries, int, S_IRUGO|S_IWUSR); module_param(connect_retries, int, 0644);
MODULE_PARM_DESC(connect_retries, MODULE_PARM_DESC(connect_retries,
"Maximum number of connect retries (one second each)"); "Maximum number of connect retries (one second each)");
module_param(initial_wait, int, S_IRUGO|S_IWUSR); module_param(initial_wait, int, 0644);
MODULE_PARM_DESC(initial_wait, MODULE_PARM_DESC(initial_wait,
"Time to wait before attempting a connection (in seconds)"); "Time to wait before attempting a connection (in seconds)");
...@@ -1188,20 +1188,20 @@ MODULE_AUTHOR("Alain Degreffe eczema@ecze.com"); ...@@ -1188,20 +1188,20 @@ MODULE_AUTHOR("Alain Degreffe eczema@ecze.com");
MODULE_DESCRIPTION(DRIVER_DESC); MODULE_DESCRIPTION(DRIVER_DESC);
MODULE_LICENSE("GPL"); MODULE_LICENSE("GPL");
module_param(xmas, bool, S_IRUGO | S_IWUSR); module_param(xmas, bool, 0644);
MODULE_PARM_DESC(xmas, "Xmas colors enabled or not"); MODULE_PARM_DESC(xmas, "Xmas colors enabled or not");
module_param(boost, int, S_IRUGO | S_IWUSR); module_param(boost, int, 0644);
MODULE_PARM_DESC(boost, "Card overclock boost (in percent 100-500)"); MODULE_PARM_DESC(boost, "Card overclock boost (in percent 100-500)");
module_param(clockmode, int, S_IRUGO | S_IWUSR); module_param(clockmode, int, 0644);
MODULE_PARM_DESC(clockmode, "Card clock mode (1=3.579 MHz, 2=3.680 MHz, " MODULE_PARM_DESC(clockmode, "Card clock mode (1=3.579 MHz, 2=3.680 MHz, "
"3=6 Mhz)"); "3=6 Mhz)");
module_param(cdmode, int, S_IRUGO | S_IWUSR); module_param(cdmode, int, 0644);
MODULE_PARM_DESC(cdmode, "Card detect mode (0=none, 1=CD, 2=!CD, 3=DSR, " MODULE_PARM_DESC(cdmode, "Card detect mode (0=none, 1=CD, 2=!CD, 3=DSR, "
"4=!DSR, 5=CTS, 6=!CTS, 7=RING, 8=!RING)"); "4=!DSR, 5=CTS, 6=!CTS, 7=RING, 8=!RING)");
module_param(vcc_default, int, S_IRUGO | S_IWUSR); module_param(vcc_default, int, 0644);
MODULE_PARM_DESC(vcc_default, "Set default VCC (either 3 for 3.3V or 5 " MODULE_PARM_DESC(vcc_default, "Set default VCC (either 3 for 3.3V or 5 "
"for 5V). Default to 5."); "for 5V). Default to 5.");
...@@ -1056,5 +1056,5 @@ MODULE_AUTHOR(DRIVER_AUTHOR); ...@@ -1056,5 +1056,5 @@ MODULE_AUTHOR(DRIVER_AUTHOR);
MODULE_DESCRIPTION(DRIVER_DESC); MODULE_DESCRIPTION(DRIVER_DESC);
MODULE_LICENSE("GPL v2"); MODULE_LICENSE("GPL v2");
module_param(nmea, bool, S_IRUGO | S_IWUSR); module_param(nmea, bool, 0644);
MODULE_PARM_DESC(nmea, "NMEA streaming"); MODULE_PARM_DESC(nmea, "NMEA streaming");
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment