Thread (3 messages) 3 messages, 3 authors, 2009-02-06

RE: [PATCH] Input: bf54x-keys: ! has a higher priority than >

From: "Hennerich, Michael" <Michael.Hennerich@analog.com>
Date: 2009-02-06 08:50:05
Also in: lkml

From: Andrew Morton [mailto:akpm@linux-foundation.org]
Sent: Thursday, February 05, 2009 11:01 PM
Subject: Re: [PATCH] Input: bf54x-keys: ! has a higher priority than >

On Thu,  5 Feb 2009 15:19:55 +0800
Bryan Wu [off-list ref] wrote:
quoted
From: Roel Kluin <redacted>

Signed-off-by: Roel Kluin <redacted>
Signed-off-by: Michael Hennerich <michael.hennerich@analog.com>
Signed-off-by: Bryan Wu <cooloney@kernel.org>
---
 drivers/input/keyboard/bf54x-keys.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/drivers/input/keyboard/bf54x-keys.c
b/drivers/input/keyboard/bf54x-keys.c
quoted
index 1928401..ee855c5 100644
--- a/drivers/input/keyboard/bf54x-keys.c
+++ b/drivers/input/keyboard/bf54x-keys.c
@@ -209,8 +209,8 @@ static int __devinit bfin_kpad_probe(struct
platform_device *pdev)
quoted
 		goto out;
 	}

-	if (!pdata->debounce_time || !pdata->debounce_time > MAX_MULT ||
-	    !pdata->coldrive_time || !pdata->coldrive_time > MAX_MULT) {
+	if (!pdata->debounce_time || pdata->debounce_time > MAX_MULT ||
+	    !pdata->coldrive_time || pdata->coldrive_time > MAX_MULT) {
What is this `pdata' thing from which the data comes?
Platform device data.

struct bfin_kpad_platform_data *pdata = pdev->dev.platform_data;
It seems a bit rude to kill the driver when we've detected an error
which could easily be fixed up.
It actually just prints the error and then uses some default value later
on.
quoted
 		printk(KERN_ERR DRV_NAME
 			": Invalid Debounce/Columdrive Time from
pdata\n");
nit: a colon does not terminate a sentence.

This comment misspells "column".
Bryan will send a patch addressing this typo.

Best regards,
Michael
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help