Skip to contentSkip to conversation

staging: speakup fix code styling

PATCH New Ioannis Valasakis 1 participant 3 messages Nov 6, 2018 Staging

lore
Share & tools
lore
#0 lore raw

cover staging: speakup fix code styling

Fix code styling reported by checkpatch.

Ioannis Valasakis (2):
staging: speakup: add spaces around minus
staging: speakup: move arguments to reduce 80 chars limit

 drivers/staging/speakup/speakup_acntpc.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
Signature · 1 line
2.19.1
#1 lore raw

PATCH 1/2 staging: speakup: add spaces around minus

Add spaces around minus operator. Reported by checkpatch.

---
 drivers/staging/speakup/speakup_acntpc.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/staging/speakup/speakup_acntpc.c +1 -1
index 28519754b2f0..d44ada9869ae 100644
@@ -298,7 +298,7 @@ static void accent_release(void)
 {
 	spk_stop_serial_interrupt();
 	if (speakup_info.port_tts)
-		synth_release_region(speakup_info.port_tts-1, SYNTH_IO_EXTENT);
+		synth_release_region(speakup_info.port_tts - 1, SYNTH_IO_EXTENT);
 	speakup_info.port_tts = 0;
 }
 
Signature · 1 line
2.19.1
#2 lore raw

PATCH 2/2 staging: speakup: move arguments to reduce 80 chars limit

In reply to Ioannis Valasakis

Move the arguments one line below to remove the warning of the 80 chars limit. Reported by checkpatch.

---
 drivers/staging/speakup/speakup_acntpc.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
drivers/staging/speakup/speakup_acntpc.c +2 -1
index d44ada9869ae..c94328a5bd4a 100644
@@ -298,7 +298,8 @@ static void accent_release(void)
 {
 	spk_stop_serial_interrupt();
 	if (speakup_info.port_tts)
-		synth_release_region(speakup_info.port_tts - 1, SYNTH_IO_EXTENT);
+		synth_release_region(speakup_info.port_tts - 1,
+				     SYNTH_IO_EXTENT);
 	speakup_info.port_tts = 0;
 }
 
Signature · 1 line
2.19.1