Input: tsc2007: Remove a useless code and check a necessary function is provided or not
Subsystems (2)
PATCH 1/1 Input: tsc2007: Remove a useless code and check a necessary function is provided or not
Hi Dmitry,
This patch contains a trivial removal and check the existence of a platform specific function.
Regards,
Kwangwoo Lee
Quoted 1 line
From
bc18ba8c71027ca58d1242149eee9919bdaa069bMon Sep 17 00:00:00 2001
From: Kwangwoo Lee <[email protected]>
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.
--- drivers/input/touchscreen/tsc2007.c | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-)
(quoted diff) +0 -0
b/drivers/input/touchscreen/tsc2007.c
index 948e167..da35adb 100644
drivers/input/touchscreen/tsc2007.c +2 -2
@@ -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 ; }
Signature · 1 line
1.5.6.5
drivers/input/touchscreen/tsc2007.c static int tsc2007_probe(struct i2c_client *client, · line 256
Quoted 8 lines · Kwangwoo Lee
drivers/input/touchscreen/tsc2007.c +1
-1@@ -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
Quoted 12 lines · Manuel Lauss
drivers/input/touchscreen/tsc2007.c static int tsc2007_probe(struct i2c_client *client, · line 256
Quoted 8 lines · Kwangwoo Lee
drivers/input/touchscreen/tsc2007.c +1
-1@@ -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.
Quoted 3 lines
Manuel Lauss
Signature · 5 lines
Kwangwoo Lee <[email protected]> -- To unsubscribe from this list: send the line "unsubscribe linux-input" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html
Quoted 5 lines · Kwangwoo Lee
Hi Dmitry,
This patch contains a trivial removal and check the existence of a platform specific function.
Applied, thanks.
Signature · 1 line
Dmitry