Skip to contentSkip to conversation

Staging: speakup: Replace symbolic permission

PATCH Superseded Meghana Madhyastha 2 participants 2 messages Sep 9, 2017 Staging

v2 of 4 Superseded Latest is v4 →

lore
Share & tools
lore
#0 lore raw

PATCH v2 1/1 Staging: speakup: Replace symbolic permission

Replace S_IRUGO by 0444 in module parameter declaration. 0444 is more readable and matches the style used in other declarations nearby.

Problem found using checkpatch.

Changes in v2:
- Make the commit message more clearer and the title more concise

---
 drivers/staging/speakup/speakup_acntsa.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/staging/speakup/speakup_acntsa.c +1 -1
index 0e10404..4331584 100644
@@ -136,7 +136,7 @@ static int synth_probe(struct spk_synth *synth)
 }
 
 module_param_named(ser, synth_acntsa.ser, int, 0444);
-module_param_named(dev, synth_acntsa.dev_name, charp, S_IRUGO);
+module_param_named(dev, synth_acntsa.dev_name, charp, 0444);
 module_param_named(start, synth_acntsa.startup, short, 0444);
 
 MODULE_PARM_DESC(ser, "Set the serial port for the synthesizer (0-based).");
Signature · 1 line
2.7.4
#1 lore raw
Quoted 9 lines · Meghana Madhyastha

Replace S_IRUGO by 0444 in module parameter declaration. 0444 is more readable and matches the style used in other declarations nearby.

Problem found using checkpatch.

Changes in v2:
- Make the commit message more clearer and the title more concise

It was good to put the change information, but it belongs under the ---. The text under the --- disappears when the patch is committed. After that time, people will not be interested in the change information, because the version veing referred to is not committed.

julia

Quoted 27 lines
---
 drivers/staging/speakup/speakup_acntsa.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/staging/speakup/speakup_acntsa.c +1 -2
index 0e10404..4331584 100644
@@ -136,7 +136,7 @@ static int synth_probe(struct spk_synth *synth)
 }
 
 module_param_named(ser, synth_acntsa.ser, int, 0444);
-module_param_named(dev, synth_acntsa.dev_name, charp, S_IRUGO);
+module_param_named(dev, synth_acntsa.dev_name, charp, 0444);
 module_param_named(start, synth_acntsa.startup, short, 0444);
 
 MODULE_PARM_DESC(ser, "Set the serial port for the synthesizer (0-based).");
--

2.7.4

--
You received this message because you are subscribed to the Google Groups "outreachy-kernel" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected].
To view this discussion on the web visit https://groups.google.com/d/msgid/outreachy-kernel/20170909153338.GA21938%40meghana-HP-Pavilion-Notebook.
For more options, visit https://groups.google.com/d/optout.