From patchwork Tue May 6 22:13:09 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Stephen Warren X-Patchwork-Id: 4124361 Return-Path: X-Original-To: patchwork-linux-input@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.19.201]) by patchwork2.web.kernel.org (Postfix) with ESMTP id B791BBFF02 for ; Tue, 6 May 2014 22:13:30 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id F1B33201D5 for ; Tue, 6 May 2014 22:13:29 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id A0B7320254 for ; Tue, 6 May 2014 22:13:28 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751170AbaEFWNZ (ORCPT ); Tue, 6 May 2014 18:13:25 -0400 Received: from avon.wwwdotorg.org ([70.85.31.133]:41868 "EHLO avon.wwwdotorg.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751752AbaEFWNY (ORCPT ); Tue, 6 May 2014 18:13:24 -0400 Received: from severn.wwwdotorg.org (unknown [192.168.65.5]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by avon.wwwdotorg.org (Postfix) with ESMTPS id 4CFFE635C; Tue, 6 May 2014 16:13:24 -0600 (MDT) Received: from swarren-lx1.nvidia.com (localhost [127.0.0.1]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by severn.wwwdotorg.org (Postfix) with ESMTPSA id 2C1C2E4637; Tue, 6 May 2014 16:13:23 -0600 (MDT) From: Stephen Warren To: Dmitry Torokhov Cc: Benson Leung , Yufeng Shen , Daniel Kurtz , linux-input@vger.kernel.org, Stephen Warren Subject: [PATCH 1/4] Input: atmel_mxt_ts - Set pointer emulation if is_tp Date: Tue, 6 May 2014 16:13:09 -0600 Message-Id: <1399414392-32572-2-git-send-email-swarren@wwwdotorg.org> X-Mailer: git-send-email 1.8.1.5 In-Reply-To: <1399414392-32572-1-git-send-email-swarren@wwwdotorg.org> References: <1399414392-32572-1-git-send-email-swarren@wwwdotorg.org> X-NVConfidentiality: public X-Virus-Scanned: clamav-milter 0.97.8 at avon.wwwdotorg.org X-Virus-Status: Clean Sender: linux-input-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-input@vger.kernel.org X-Spam-Status: No, score=-7.5 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_HI, RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=ham version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP From: Benson Leung Touchpads are pointers, so make sure to pass the correct values to input_mt_report_pointer_emulation(). Without this, tap-to-click doesn't work. Signed-off-by: Benson Leung [swarren, rewrote the commit description, since the downstream version concentrated on patch rebase history rather than the functionality] Signed-off-by: Stephen Warren --- drivers/input/touchscreen/atmel_mxt_ts.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/input/touchscreen/atmel_mxt_ts.c b/drivers/input/touchscreen/atmel_mxt_ts.c index a70400754e92..9ba7e30c7894 100644 --- a/drivers/input/touchscreen/atmel_mxt_ts.c +++ b/drivers/input/touchscreen/atmel_mxt_ts.c @@ -619,7 +619,8 @@ static irqreturn_t mxt_interrupt(int irq, void *dev_id) } while (reportid != 0xff); if (update_input) { - input_mt_report_pointer_emulation(data->input_dev, false); + input_mt_report_pointer_emulation(data->input_dev, + data->is_tp); input_sync(data->input_dev); }