public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH 1/2] Staging: speakup: main: Coding stlye fixes
@ 2010-10-16  3:08 Tracey Dent
  2010-10-16  3:08 ` [PATCH 2/2] Staging: speakup: selection: Coding style fixes Tracey Dent
  2010-10-19 17:07 ` [PATCH 1/2] Staging: speakup: main: Coding stlye fixes Greg KH
  0 siblings, 2 replies; 4+ messages in thread
From: Tracey Dent @ 2010-10-16  3:08 UTC (permalink / raw)
  To: greg; +Cc: linux-kernel, Tracey Dent

Fixed coding style issues foung by checkpatch.pl

Signed-off-by: Tracey Dent <tdent48227@gmail.com>
---
 drivers/staging/speakup/main.c |   42 ++++++++++++++++++++--------------------
 1 files changed, 21 insertions(+), 21 deletions(-)

diff --git a/drivers/staging/speakup/main.c b/drivers/staging/speakup/main.c
index 2ef3b39..612142d 100644
--- a/drivers/staging/speakup/main.c
+++ b/drivers/staging/speakup/main.c
@@ -155,23 +155,23 @@ char *default_chars[256] = {
 /*138*/ "control", "control", "control", "control", "control", "control", "control", "control", "control", "control", "control", "control",
 /*150*/ "control", "control", "control", "control", "control", "control", "control", "control", "control", "control",
 /*160*/ "nbsp", "inverted bang",
-/*162*/ "cents", "pounds", "currency", "yen", "broken bar", "section", 
-/*168*/ "diaeresis", "copyright", "female ordinal", "double left angle", 
+/*162*/ "cents", "pounds", "currency", "yen", "broken bar", "section",
+/*168*/ "diaeresis", "copyright", "female ordinal", "double left angle",
 /*172*/ "not", "soft hyphen", "registered", "macron",
-/*176*/ "degrees", "plus or minus", "super two", "super three", 
-/*180*/ "acute accent", 	"micro", "pilcrow", "middle dot", 
+/*176*/ "degrees", "plus or minus", "super two", "super three",
+/*180*/ "acute accent",	"micro", "pilcrow", "middle dot",
 /*184*/ "cedilla", "super one", "male ordinal", "double right angle",
 /*188*/ "one quarter", "one half", "three quarters", "inverted question",
 /*192*/ "A GRAVE", "A ACUTE", "A CIRCUMFLEX", "A TILDE", "A OOMLAUT", "A RING",
-/*198*/ "AE", "C CIDELLA", "E GRAVE", "E ACUTE", "E CIRCUMFLEX", "E OOMLAUT", 
+/*198*/ "AE", "C CIDELLA", "E GRAVE", "E ACUTE", "E CIRCUMFLEX", "E OOMLAUT",
 /*204*/ "I GRAVE", "I ACUTE", "I CIRCUMFLEX", "I OOMLAUT", "ETH", "N TILDE",
 /*210*/ "O GRAVE", "O ACUTE", "O CIRCUMFLEX", "O TILDE", "O OOMLAUT",
-/*215*/ "multiplied by", "O STROKE", "U GRAVE", "U ACUTE", "U CIRCUMFLEX", 
+/*215*/ "multiplied by", "O STROKE", "U GRAVE", "U ACUTE", "U CIRCUMFLEX",
 /*220*/ "U OOMLAUT", "Y ACUTE", "THORN", "sharp s", "a grave",
 /*225*/ "a acute", "a circumflex", "a tilde", "a oomlaut", "a ring",
 /*230*/ "ae", "c cidella", "e grave", "e acute",
 /*234*/ "e circumflex", "e oomlaut", "i grave", "i acute", "i circumflex",
-/*239*/ "i oomlaut", "eth", "n tilde","o grave", "o acute", "o circumflex",
+/*239*/ "i oomlaut", "eth", "n tilde", "o grave", "o acute", "o circumflex",
 /*245*/"o tilde", "o oomlaut", "divided by", "o stroke", "u grave", "u acute",
 /* 251 */ "u circumflex", "u oomlaut", "y acute", "thorn", "y oomlaut"
 };
@@ -346,13 +346,13 @@ static void speakup_cut(struct vc_data *vc)
 	switch (ret) {
 	case 0:
 		break; /* no error */
-	case -EFAULT :
+	case -EFAULT:
 		pr_warn("%sEFAULT\n", err_buf);
 		break;
-	case -EINVAL :
+	case -EINVAL:
 		pr_warn("%sEINVAL\n", err_buf);
 		break;
-	case -ENOMEM :
+	case -ENOMEM:
 		pr_warn("%sENOMEM\n", err_buf);
 		break;
 	}
@@ -1190,18 +1190,18 @@ int set_key_info(const u_char *key_info, u_char *k_buffer)
 
 static struct var_t spk_vars[] = {
 	/* bell must be first to set high limit */
-	{ BELL_POS, .u.n = {NULL, 0, 0, 0, 0, 0, NULL }},
-	{ SPELL_DELAY, .u.n = {NULL, 0, 0, 4, 0, 0, NULL }},
-	{ ATTRIB_BLEEP, .u.n = {NULL, 1, 0, 3, 0, 0, NULL }},
-	{ BLEEPS, .u.n = {NULL, 3, 0, 3, 0, 0, NULL }},
-	{ BLEEP_TIME, .u.n = {NULL, 30, 1, 200, 0, 0, NULL }},
-	{ PUNC_LEVEL, .u.n = {NULL, 1, 0, 4, 0, 0, NULL }},
-	{ READING_PUNC, .u.n = {NULL, 1, 0, 4, 0, 0, NULL }},
-	{ CURSOR_TIME, .u.n = {NULL, 120, 50, 600, 0, 0, NULL }},
+	{ BELL_POS, .u.n = {NULL, 0, 0, 0, 0, 0, NULL } },
+	{ SPELL_DELAY, .u.n = {NULL, 0, 0, 4, 0, 0, NULL } },
+	{ ATTRIB_BLEEP, .u.n = {NULL, 1, 0, 3, 0, 0, NULL } },
+	{ BLEEPS, .u.n = {NULL, 3, 0, 3, 0, 0, NULL } },
+	{ BLEEP_TIME, .u.n = {NULL, 30, 1, 200, 0, 0, NULL } },
+	{ PUNC_LEVEL, .u.n = {NULL, 1, 0, 4, 0, 0, NULL } },
+	{ READING_PUNC, .u.n = {NULL, 1, 0, 4, 0, 0, NULL } },
+	{ CURSOR_TIME, .u.n = {NULL, 120, 50, 600, 0, 0, NULL } },
 	{ SAY_CONTROL, TOGGLE_0 },
 	{ SAY_WORD_CTL, TOGGLE_0 },
 	{ NO_INTERRUPT, TOGGLE_0 },
-	{ KEY_ECHO, .u.n = {NULL, 1, 0, 2, 0, 0, NULL }},
+	{ KEY_ECHO, .u.n = {NULL, 1, 0, 2, 0, 0, NULL } },
 	V_LAST_VAR
 };
 
@@ -2267,7 +2267,7 @@ static int __init speakup_init(void)
 
 	strlwr(synth_name);
 	spk_vars[0].u.n.high = vc->vc_cols;
-	for (var = spk_vars; var->var_id !=MAXVARS; var++) 
+	for (var = spk_vars; var->var_id != MAXVARS; var++) 
 		speakup_register_var(var);
 	for (var = synth_time_vars; (var->var_id >= 0) && (var->var_id < MAXVARS); var++)
 		speakup_register_var(var);
@@ -2291,7 +2291,7 @@ static int __init speakup_init(void)
 
 	speakup_task = kthread_create(speakup_thread, NULL, "speakup");
 	set_user_nice(speakup_task, 10);
-	if ( ! IS_ERR(speakup_task))
+	if (!IS_ERR(speakup_task))
 		wake_up_process(speakup_task);
 	else
 		return -ENOMEM;
-- 
1.7.3.1.104.gc752e


^ permalink raw reply related	[flat|nested] 4+ messages in thread

* [PATCH 2/2] Staging: speakup: selection: Coding style fixes
  2010-10-16  3:08 [PATCH 1/2] Staging: speakup: main: Coding stlye fixes Tracey Dent
@ 2010-10-16  3:08 ` Tracey Dent
  2010-10-19 17:07 ` [PATCH 1/2] Staging: speakup: main: Coding stlye fixes Greg KH
  1 sibling, 0 replies; 4+ messages in thread
From: Tracey Dent @ 2010-10-16  3:08 UTC (permalink / raw)
  To: greg; +Cc: linux-kernel, Tracey Dent

Fixed coding style issues using checkpatch.pl

Signed-off-by: Tracey Dent <tdent48227@gmail.com>
---
 drivers/staging/speakup/selection.c |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/drivers/staging/speakup/selection.c b/drivers/staging/speakup/selection.c
index 1b865ff..81cfc80 100644
--- a/drivers/staging/speakup/selection.c
+++ b/drivers/staging/speakup/selection.c
@@ -34,7 +34,7 @@ void speakup_clear_selection(void)
 /* does screen address p correspond to character at LH/RH edge of screen? */
 static int atedge(const int p, int size_row)
 {
-	return (!(p % size_row) || !((p + 2) % size_row));
+	return !(p % size_row) || !((p + 2) % size_row);
 }
 
 /* constrain v such that v <= u */
@@ -139,9 +139,9 @@ int speakup_paste_selection(struct tty_struct *tty)
 		}
 		count = sel_buffer_lth - pasted;
 		count = min_t(int, count, tty->receive_room);
-#if LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,31)
+#if LINUX_VERSION_CODE >= KERNEL_VERSION(2, 6, 31)
 		tty->ldisc->ops->receive_buf(tty, sel_buffer + pasted, 0, count);
-#elif LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,27)
+#elif LINUX_VERSION_CODE >= KERNEL_VERSION(2, 6, 27)
 		tty->ldisc.ops->receive_buf(tty, sel_buffer + pasted, 0, count);
 #else
 		tty->ldisc.receive_buf(tty, sel_buffer + pasted, 0, count);
-- 
1.7.3.1.104.gc752e


^ permalink raw reply related	[flat|nested] 4+ messages in thread

* Re: [PATCH 1/2] Staging: speakup: main: Coding stlye fixes
  2010-10-16  3:08 [PATCH 1/2] Staging: speakup: main: Coding stlye fixes Tracey Dent
  2010-10-16  3:08 ` [PATCH 2/2] Staging: speakup: selection: Coding style fixes Tracey Dent
@ 2010-10-19 17:07 ` Greg KH
  2010-10-19 21:32   ` Tracey Dent
  1 sibling, 1 reply; 4+ messages in thread
From: Greg KH @ 2010-10-19 17:07 UTC (permalink / raw)
  To: Tracey Dent; +Cc: linux-kernel

On Fri, Oct 15, 2010 at 11:08:46PM -0400, Tracey Dent wrote:
> Fixed coding style issues foung by checkpatch.pl

Sorry, this one, and patch 2/2 were just submited by someone else right
before you sent yours :(

thanks,

greg k-h

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [PATCH 1/2] Staging: speakup: main: Coding stlye fixes
  2010-10-19 17:07 ` [PATCH 1/2] Staging: speakup: main: Coding stlye fixes Greg KH
@ 2010-10-19 21:32   ` Tracey Dent
  0 siblings, 0 replies; 4+ messages in thread
From: Tracey Dent @ 2010-10-19 21:32 UTC (permalink / raw)
  To: Greg KH; +Cc: linux-kernel

On 10/19/10, Greg KH <greg@kroah.com> wrote:
> On Fri, Oct 15, 2010 at 11:08:46PM -0400, Tracey Dent wrote:
>> Fixed coding style issues foung by checkpatch.pl
>
> Sorry, this one, and patch 2/2 were just submited by someone else right
> before you sent yours :(
>
> thanks,
>
> greg k-h
>

Alright.

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2010-10-19 21:33 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-10-16  3:08 [PATCH 1/2] Staging: speakup: main: Coding stlye fixes Tracey Dent
2010-10-16  3:08 ` [PATCH 2/2] Staging: speakup: selection: Coding style fixes Tracey Dent
2010-10-19 17:07 ` [PATCH 1/2] Staging: speakup: main: Coding stlye fixes Greg KH
2010-10-19 21:32   ` Tracey Dent

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox