From patchwork Tue Jul 7 00:30:10 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Dmitry Torokhov X-Patchwork-Id: 6729271 Return-Path: X-Original-To: patchwork-linux-input@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork1.web.kernel.org (Postfix) with ESMTP id 1346E9F38C for ; Tue, 7 Jul 2015 00:31:17 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 47F2020793 for ; Tue, 7 Jul 2015 00:31:16 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 4C88E206D8 for ; Tue, 7 Jul 2015 00:31:15 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756501AbbGGAab (ORCPT ); Mon, 6 Jul 2015 20:30:31 -0400 Received: from mail-ie0-f182.google.com ([209.85.223.182]:36717 "EHLO mail-ie0-f182.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1756492AbbGGAa1 (ORCPT ); Mon, 6 Jul 2015 20:30:27 -0400 Received: by iecvh10 with SMTP id vh10so124561308iec.3; Mon, 06 Jul 2015 17:30:26 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=OvRI1YhNlq2dOPSxfpXvRjegyRs85a1w4unRLlb9xNc=; b=cfQtkDSCCVbUSUKem00wF0tyVDG8XIJN0ctemQQDUeQHUvg+1iQZz3okA3TmnaJNG4 aqAoP1OY+pwtbjxhFj87hJZjHfFnz2jKoNdAzgaHeo/kNlGFXG0AD9nv3tSl2XpM8VvT jL2Ivs+53pm5Ib0d3dtLMgfAN+E+fEjmP/YpwIXBVd1hBF/7YiZw5Dr7CWwyQJLQpMja Q4JHIERk5w7FXjYGK7B2YBt8Mu26sOtZNgD5n5FnvcUZBulBkMx5oA4q9Kcru5ALcPmh nWoU/3IpmwxlXB8X5bwHNUVzQeHmIHlO71akaTrHZI2u/g81ZeyVT4pSDMb4dzgw9h8w N9XA== X-Received: by 10.50.7.68 with SMTP id h4mr46992940iga.40.1436229026445; Mon, 06 Jul 2015 17:30:26 -0700 (PDT) Received: from dtor-ws.mtv.corp.google.com ([172.22.64.149]) by mx.google.com with ESMTPSA id kl8sm10772195igb.15.2015.07.06.17.30.24 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Mon, 06 Jul 2015 17:30:25 -0700 (PDT) From: Dmitry Torokhov To: linux-input@vger.kernel.org, Roger Quadros Cc: Jianchun Bian , linux-kernel@vger.kernel.org Subject: [PATCH 5/6] Input: pixcir_i2c_ts - simplify input device initialization Date: Mon, 6 Jul 2015 17:30:10 -0700 Message-Id: <1436229011-29655-5-git-send-email-dmitry.torokhov@gmail.com> X-Mailer: git-send-email 2.4.3.573.g4eafbef In-Reply-To: <1436229011-29655-1-git-send-email-dmitry.torokhov@gmail.com> References: <1436229011-29655-1-git-send-email-dmitry.torokhov@gmail.com> 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, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, FREEMAIL_FROM, RCVD_IN_DNSWL_HI, RP_MATCHES_RCVD, T_DKIM_INVALID, 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 input_mt_init_slots() will perform necessary settings for performing multi-touch to single-touch emulation, we do not need to do that ourselves. Signed-off-by: Dmitry Torokhov Acked-by: Roger Quadros --- drivers/input/touchscreen/pixcir_i2c_ts.c | 5 ----- 1 file changed, 5 deletions(-) diff --git a/drivers/input/touchscreen/pixcir_i2c_ts.c b/drivers/input/touchscreen/pixcir_i2c_ts.c index 9d9ac08..043d219 100644 --- a/drivers/input/touchscreen/pixcir_i2c_ts.c +++ b/drivers/input/touchscreen/pixcir_i2c_ts.c @@ -510,11 +510,6 @@ static int pixcir_i2c_ts_probe(struct i2c_client *client, input->close = pixcir_input_close; input->dev.parent = &client->dev; - __set_bit(EV_KEY, input->evbit); - __set_bit(EV_ABS, input->evbit); - __set_bit(BTN_TOUCH, input->keybit); - input_set_abs_params(input, ABS_X, 0, pdata->x_max, 0, 0); - input_set_abs_params(input, ABS_Y, 0, pdata->y_max, 0, 0); input_set_abs_params(input, ABS_MT_POSITION_X, 0, pdata->x_max, 0, 0); input_set_abs_params(input, ABS_MT_POSITION_Y, 0, pdata->y_max, 0, 0);