diff for duplicates of <20080321111630.13138.14500.sendpatchset@rx1.opensource.se> diff --git a/a/1.txt b/N1/1.txt index 7e4d5ea..0784a80 100644 --- a/a/1.txt +++ b/N1/1.txt @@ -116,13 +116,13 @@ Signed-off-by: Magnus Damm <damm@igel.co.jp> + xpos = ((buf[11] & 0x03) << 8 | buf[10]); + event = buf[12]; + -+ if ((event == EVENT_PENDOWN) || (event == EVENT_REPEAT)) { ++ if ((event = EVENT_PENDOWN) || (event = EVENT_REPEAT)) { + input_report_key(priv->input, BTN_TOUCH, 1); + input_report_abs(priv->input, ABS_X, ypos); /*X-Y swap*/ + input_report_abs(priv->input, ABS_Y, xpos); + input_report_abs(priv->input, ABS_PRESSURE, 120); + input_sync(priv->input); -+ } else if (event == EVENT_PENUP) { ++ } else if (event = EVENT_PENUP) { + input_report_abs(priv->input, ABS_PRESSURE, 0); + input_sync(priv->input); + } @@ -145,7 +145,7 @@ Signed-off-by: Magnus Damm <damm@igel.co.jp> + int res = 0; + + priv = kzalloc(sizeof(*priv), GFP_KERNEL); -+ if (priv == NULL) { ++ if (priv = NULL) { + dev_err(&client->dev, "failed to allocate driver data\n"); + res = -ENOMEM; + goto err0; @@ -189,7 +189,7 @@ Signed-off-by: Magnus Damm <damm@igel.co.jp> + + /* enable controller */ + if (i2c_master_send(client, migor_ts_ena_seq, sizeof(migor_ts_ena_seq)) -+ == sizeof(migor_ts_ena_seq)) ++ = sizeof(migor_ts_ena_seq)) + return 0; + + dev_err(&client->dev, "Unable to enable touchscreen.\n"); diff --git a/a/content_digest b/N1/content_digest index deb4f3f..ab3992c 100644 --- a/a/content_digest +++ b/N1/content_digest @@ -1,6 +1,6 @@ "From\0Magnus Damm <magnus.damm@gmail.com>\0" "Subject\0[PATCH] Touch screen driver for the SuperH MigoR board\0" - "Date\0Fri, 21 Mar 2008 20:16:30 +0900\0" + "Date\0Fri, 21 Mar 2008 11:16:30 +0000\0" "To\0linux-input@vger.kernel.org\0" "Cc\0Magnus Damm <magnus.damm@gmail.com>" lethal@linux-sh.org @@ -127,13 +127,13 @@ "+\txpos = ((buf[11] & 0x03) << 8 | buf[10]);\n" "+\tevent = buf[12];\n" "+\n" - "+\tif ((event == EVENT_PENDOWN) || (event == EVENT_REPEAT)) {\n" + "+\tif ((event = EVENT_PENDOWN) || (event = EVENT_REPEAT)) {\n" "+\t\tinput_report_key(priv->input, BTN_TOUCH, 1);\n" "+\t\tinput_report_abs(priv->input, ABS_X, ypos); /*X-Y swap*/\n" "+\t\tinput_report_abs(priv->input, ABS_Y, xpos);\n" "+\t\tinput_report_abs(priv->input, ABS_PRESSURE, 120);\n" "+\t\tinput_sync(priv->input);\n" - "+\t} else if (event == EVENT_PENUP) {\n" + "+\t} else if (event = EVENT_PENUP) {\n" "+\t\tinput_report_abs(priv->input, ABS_PRESSURE, 0);\n" "+\t\tinput_sync(priv->input);\n" "+\t}\n" @@ -156,7 +156,7 @@ "+\tint res = 0;\n" "+\n" "+\tpriv = kzalloc(sizeof(*priv), GFP_KERNEL);\n" - "+\tif (priv == NULL) {\n" + "+\tif (priv = NULL) {\n" "+\t\tdev_err(&client->dev, \"failed to allocate driver data\\n\");\n" "+\t\tres = -ENOMEM;\n" "+\t\tgoto err0;\n" @@ -200,7 +200,7 @@ "+\n" "+\t/* enable controller */\n" "+\tif (i2c_master_send(client, migor_ts_ena_seq, sizeof(migor_ts_ena_seq))\n" - "+\t == sizeof(migor_ts_ena_seq))\n" + "+\t = sizeof(migor_ts_ena_seq))\n" "+\t\treturn 0;\n" "+\n" "+\tdev_err(&client->dev, \"Unable to enable touchscreen.\\n\");\n" @@ -252,4 +252,4 @@ "+module_init(migor_ts_init);\n" +module_exit(migor_ts_exit); -7896783df869ec5c182d67624a3df93416759f55c03b3753136c6e7768584a17 +5aea554342540ceff8a2a09c98ebba4cf4f39573f16dcf063f31aca3f80abd72
This is an external index of several public inboxes, see mirroring instructions on how to clone and mirror all data and code used by this external index.