From patchwork Tue Nov 9 13:00:16 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Belisko Marek X-Patchwork-Id: 311112 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by demeter1.kernel.org (8.14.4/8.14.3) with ESMTP id oA9CwN9E013592 for ; Tue, 9 Nov 2010 12:58:24 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1749667Ab0KIM6M (ORCPT ); Tue, 9 Nov 2010 07:58:12 -0500 Received: from mail-bw0-f46.google.com ([209.85.214.46]:60582 "EHLO mail-bw0-f46.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751221Ab0KIM6L (ORCPT ); Tue, 9 Nov 2010 07:58:11 -0500 Received: by bwz15 with SMTP id 15so1004272bwz.19 for ; Tue, 09 Nov 2010 04:58:09 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:from:to:cc:subject:date :message-id:x-mailer; bh=kSK6ynuqW4mRf0wpep34sOUB9b/SdMd7v6zbzq02dOw=; b=MDwLaatS+m7ZvT7+ivcAV0oka59CD1N+UmMPzqHk4pkHMAtviny9+zTiH9bzWOo39X c9vQNGETmFMGlX/N6Qks9HoW9DjO5I7qbPETUbSMAwyGuquT0Vcy9c6l6ELCL24cL8gh N43xAlLBNebiEDKHnj5mbdN0VacHPaexUoC9A= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=from:to:cc:subject:date:message-id:x-mailer; b=ZQna/kMpfpuL+zEr7TI63fqvUez7WQ3GQnz+e6UzTzH/aMf2vNQbpQjlvrIkix/kbS OHNeeY705v6ox+pJ/MPfvoX5oLQIuCyXkfUQ6KV1bYLg7f6mfB/XwN2t4OlrjHIDFFhv 1tauYNGP+ocQ1yNUsCj7zKPsP9qMXJn5/VthU= Received: by 10.204.114.77 with SMTP id d13mr6251153bkq.150.1289307489583; Tue, 09 Nov 2010 04:58:09 -0800 (PST) Received: from localhost.localdomain (a2.trenkwalder-roznavska.ba.cust.gts.sk [195.168.25.50]) by mx.google.com with ESMTPS id a25sm989266bks.8.2010.11.09.04.58.07 (version=TLSv1/SSLv3 cipher=RC4-MD5); Tue, 09 Nov 2010 04:58:08 -0800 (PST) From: Marek Belisko To: Vincent Sanders Cc: Marek Belisko , Dmitry Torokhov , linux-input@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH] input: touchscreen: s3c2410: Add ABS_PRESSURE event sending. Date: Tue, 9 Nov 2010 14:00:16 +0100 Message-Id: <1289307616-10336-1-git-send-email-marek.belisko@gmail.com> X-Mailer: git-send-email 1.7.1 Sender: linux-input-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-input@vger.kernel.org X-Greylist: IP, sender and recipient auto-whitelisted, not delayed by milter-greylist-4.2.3 (demeter1.kernel.org [140.211.167.41]); Tue, 09 Nov 2010 12:58:24 +0000 (UTC) diff --git a/drivers/input/touchscreen/s3c2410_ts.c b/drivers/input/touchscreen/s3c2410_ts.c index 8feb7f3..a937105 100644 --- a/drivers/input/touchscreen/s3c2410_ts.c +++ b/drivers/input/touchscreen/s3c2410_ts.c @@ -126,6 +126,7 @@ static void touch_timer_fire(unsigned long data) input_report_abs(ts.input, ABS_Y, ts.yp); input_report_key(ts.input, BTN_TOUCH, 1); + input_report_abs(ts.input, ABS_PRESSURE, 1); input_sync(ts.input); ts.xp = 0; @@ -140,6 +141,7 @@ static void touch_timer_fire(unsigned long data) ts.count = 0; input_report_key(ts.input, BTN_TOUCH, 0); + input_report_abs(ts.input, ABS_PRESSURE, 0); input_sync(ts.input); writel(WAIT4INT | INT_DOWN, ts.io + S3C2410_ADCTSC); @@ -314,10 +316,12 @@ static int __devinit s3c2410ts_probe(struct platform_device *pdev) } ts.input = input_dev; - ts.input->evbit[0] = BIT_MASK(EV_KEY) | BIT_MASK(EV_ABS); + ts.input->evbit[0] = BIT_MASK(EV_SYN) | BIT_MASK(EV_KEY) | + BIT_MASK(EV_ABS); ts.input->keybit[BIT_WORD(BTN_TOUCH)] = BIT_MASK(BTN_TOUCH); input_set_abs_params(ts.input, ABS_X, 0, 0x3FF, 0, 0); input_set_abs_params(ts.input, ABS_Y, 0, 0x3FF, 0, 0); + input_set_abs_params(ts.input, ABS_PRESSURE, 0, 1, 0, 0); ts.input->name = "S3C24XX TouchScreen"; ts.input->id.bustype = BUS_HOST;