From patchwork Fri Oct 24 17:18:06 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Dmitry Baryshkov X-Patchwork-Id: 5148941 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 8781FC11AC for ; Fri, 24 Oct 2014 17:18:20 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id B4E4220268 for ; Fri, 24 Oct 2014 17:18:19 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id E9C8E20251 for ; Fri, 24 Oct 2014 17:18:18 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756875AbaJXRSS (ORCPT ); Fri, 24 Oct 2014 13:18:18 -0400 Received: from mail-wg0-f41.google.com ([74.125.82.41]:44527 "EHLO mail-wg0-f41.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1756653AbaJXRSR (ORCPT ); Fri, 24 Oct 2014 13:18:17 -0400 Received: by mail-wg0-f41.google.com with SMTP id b13so1581315wgh.24 for ; Fri, 24 Oct 2014 10:18:16 -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; bh=hVjWtb61sRMFTE/9Wr/vsGKMDKIR+HHlh5+kEtm9vto=; b=kUgwjRixhJknbkhIZ5leV4y18dvF8xGnQLF90W5nksDHva0v5hazQqjKJDvhpNqNvT C10FdUOJIar5ifBvaJpHQbT3v2KOh/0LhB5NJeUNqgrZ9FqABZGyFLtRZGtO79FS6lJH Bz6DRWllkEFcr9RVqEsRIr5cBWb8B2qP3A6D+D/wOhhYzeO2Njx9ONFBNfauAwJ+wGR/ dbGQw2wQoDq/BdCfHNbEiHGhhJvIkrY5T2JyabRwq+hFNT2GLeHTTWfxmoUb3X6RHbBy gPdEbrvjJ/sywpHcl5OmAO/JsxIT7EhXPcO8swsGz9Bc10nYYEBPuNzxGVv8SqTXjKlV AI4Q== X-Received: by 10.194.108.104 with SMTP id hj8mr6351173wjb.28.1414171096287; Fri, 24 Oct 2014 10:18:16 -0700 (PDT) Received: from fangorn.rup.mentorg.com (nat-min.mentorg.com. [139.181.32.34]) by mx.google.com with ESMTPSA id ic4sm2645060wid.19.2014.10.24.10.18.14 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Fri, 24 Oct 2014 10:18:15 -0700 (PDT) From: Dmitry Eremin-Solenikov To: linux-input@vger.kernel.org Cc: patches@opensource.wolfsonmicro.com, Dmitry Torokhov , Mark Brown , Liam Girdwood , Dmitry Eremin-Solenikov Subject: [PATCH] input: wm97xx: adapt parameters to tosa touchscreen. Date: Fri, 24 Oct 2014 21:18:06 +0400 Message-Id: <1414171086-18330-1-git-send-email-dbaryshkov@gmail.com> X-Mailer: git-send-email 2.1.1 Sender: linux-input-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-input@vger.kernel.org X-Spam-Status: No, score=-8.2 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 From: Dmitry Eremin-Solenikov Sharp SL-6000 (tosa) touchscreen needs wider limits to properly map all points on the screen. Expand ranges in abs_x and abs_y arrays according to the touchscreen area. Signed-off-by: Dmitry Eremin-Solenikov --- drivers/input/touchscreen/wm97xx-core.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/input/touchscreen/wm97xx-core.c b/drivers/input/touchscreen/wm97xx-core.c index d0ef91f..b1ae779 100644 --- a/drivers/input/touchscreen/wm97xx-core.c +++ b/drivers/input/touchscreen/wm97xx-core.c @@ -70,11 +70,11 @@ * Documentation/input/input-programming.txt for more details. */ -static int abs_x[3] = {350, 3900, 5}; +static int abs_x[3] = {150, 4000, 5}; module_param_array(abs_x, int, NULL, 0); MODULE_PARM_DESC(abs_x, "Touchscreen absolute X min, max, fuzz"); -static int abs_y[3] = {320, 3750, 40}; +static int abs_y[3] = {200, 4000, 40}; module_param_array(abs_y, int, NULL, 0); MODULE_PARM_DESC(abs_y, "Touchscreen absolute Y min, max, fuzz");