* [PATCH] Input: tsc2007: Remove a useless code and check a necessary function is provided or not
@ 2009-05-15 5:47 Kwangwoo Lee
2009-05-15 7:26 ` Manuel Lauss
2009-05-16 2:28 ` Dmitry Torokhov
0 siblings, 2 replies; 4+ messages in thread
From: Kwangwoo Lee @ 2009-05-15 5:47 UTC (permalink / raw)
To: Dmitry Torokhov
Cc: Thierry Reding, Manuel Lauss, Trilok Soni,
linux-input@vger.kernel.org
Hi Dmitry,
This patch contains a trivial removal and check the existence of a
platform specific function.
Regards,
Kwangwoo Lee
>From bc18ba8c71027ca58d1242149eee9919bdaa069b Mon Sep 17 00:00:00 2001
From: Kwangwoo Lee <kwangwoo.lee@gmail.com>
Date: Fri, 15 May 2009 13:43:55 +0900
Subject: [PATCH] Input: tsc2007: remove useless code and check a
necessary function is provided or not.
Remove a useless code and check a necessary function is implemented or not.
The platform codes must provide get_pendown_state() to work properly.
Signed-off-by: Kwangwoo Lee <kwangwoo.lee@gmail.com>
---
drivers/input/touchscreen/tsc2007.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/drivers/input/touchscreen/tsc2007.c
b/drivers/input/touchscreen/tsc2007.c
index 948e167..da35adb 100644
--- a/drivers/input/touchscreen/tsc2007.c
+++ b/drivers/input/touchscreen/tsc2007.c
@@ -253,11 +253,11 @@ static int tsc2007_probe(struct i2c_client *client,
const struct i2c_device_id *id)
{
struct tsc2007 *ts;
- struct tsc2007_platform_data *pdata = pdata = client->dev.platform_data;
+ struct tsc2007_platform_data *pdata = client->dev.platform_data;
struct input_dev *input_dev;
int err;
- if (!pdata) {
+ if (!pdata || !pdata->get_pendown_state) {
dev_err(&client->dev, "platform data is required!\n");
return -EINVAL;
}
--
1.5.6.5
^ permalink raw reply related [flat|nested] 4+ messages in thread
* Re: [PATCH] Input: tsc2007: Remove a useless code and check a necessary function is provided or not
2009-05-15 5:47 [PATCH] Input: tsc2007: Remove a useless code and check a necessary function is provided or not Kwangwoo Lee
@ 2009-05-15 7:26 ` Manuel Lauss
2009-05-15 7:50 ` Kwangwoo Lee
2009-05-16 2:28 ` Dmitry Torokhov
1 sibling, 1 reply; 4+ messages in thread
From: Manuel Lauss @ 2009-05-15 7:26 UTC (permalink / raw)
To: Kwangwoo Lee
Cc: Dmitry Torokhov, Thierry Reding, Trilok Soni,
linux-input@vger.kernel.org
On Fri, May 15, 2009 at 02:47:12PM +0900, Kwangwoo Lee wrote:
> --- a/drivers/input/touchscreen/tsc2007.c
> +++ b/drivers/input/touchscreen/tsc2007.c
> @@ -253,11 +253,11 @@ static int tsc2007_probe(struct i2c_client *client,
> const struct i2c_device_id *id)
> {
> struct tsc2007 *ts;
> - struct tsc2007_platform_data *pdata = pdata = client->dev.platform_data;
> + struct tsc2007_platform_data *pdata = client->dev.platform_data;
This change is already in a previous patch of yours.
(http://www.spinics.net/lists/linux-input/msg03404.html)
Manuel Lauss
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH] Input: tsc2007: Remove a useless code and check a necessary function is provided or not
2009-05-15 7:26 ` Manuel Lauss
@ 2009-05-15 7:50 ` Kwangwoo Lee
0 siblings, 0 replies; 4+ messages in thread
From: Kwangwoo Lee @ 2009-05-15 7:50 UTC (permalink / raw)
To: Manuel Lauss
Cc: Dmitry Torokhov, Thierry Reding, Trilok Soni,
linux-input@vger.kernel.org
On Fri, May 15, 2009 at 4:26 PM, Manuel Lauss
<mano@roarinelk.homelinux.net> wrote:
> On Fri, May 15, 2009 at 02:47:12PM +0900, Kwangwoo Lee wrote:
>> --- a/drivers/input/touchscreen/tsc2007.c
>> +++ b/drivers/input/touchscreen/tsc2007.c
>> @@ -253,11 +253,11 @@ static int tsc2007_probe(struct i2c_client *client,
>> const struct i2c_device_id *id)
>> {
>> struct tsc2007 *ts;
>> - struct tsc2007_platform_data *pdata = pdata = client->dev.platform_data;
>> + struct tsc2007_platform_data *pdata = client->dev.platform_data;
>
> This change is already in a previous patch of yours.
> (http://www.spinics.net/lists/linux-input/msg03404.html)
Yes, I know.
The patch has a bit different subject. And it is requried to review more.
This patch just includes small fix and check.
>
> Manuel Lauss
>
--
Kwangwoo Lee <kwangwoo.lee@gmail.com>
--
To unsubscribe from this list: send the line "unsubscribe linux-input" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH] Input: tsc2007: Remove a useless code and check a necessary function is provided or not
2009-05-15 5:47 [PATCH] Input: tsc2007: Remove a useless code and check a necessary function is provided or not Kwangwoo Lee
2009-05-15 7:26 ` Manuel Lauss
@ 2009-05-16 2:28 ` Dmitry Torokhov
1 sibling, 0 replies; 4+ messages in thread
From: Dmitry Torokhov @ 2009-05-16 2:28 UTC (permalink / raw)
To: Kwangwoo Lee
Cc: Thierry Reding, Manuel Lauss, Trilok Soni,
linux-input@vger.kernel.org
On Fri, May 15, 2009 at 02:47:12PM +0900, Kwangwoo Lee wrote:
> Hi Dmitry,
>
> This patch contains a trivial removal and check the existence of a
> platform specific function.
>
Applied, thanks.
--
Dmitry
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2009-05-16 2:28 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-05-15 5:47 [PATCH] Input: tsc2007: Remove a useless code and check a necessary function is provided or not Kwangwoo Lee
2009-05-15 7:26 ` Manuel Lauss
2009-05-15 7:50 ` Kwangwoo Lee
2009-05-16 2:28 ` Dmitry Torokhov
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).