Received: by 10.192.165.156 with SMTP id m28csp2049520imm; Thu, 12 Apr 2018 07:49:44 -0700 (PDT) X-Google-Smtp-Source: AIpwx48w/ETQ4Toq5m3JhnXDqaeCLhDOBIzcRoM7QVYw1FVqRwKEuV1aW+CQ34iv740HDeoL8Z+f X-Received: by 10.99.42.148 with SMTP id q142mr929195pgq.425.1523544584485; Thu, 12 Apr 2018 07:49:44 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1523544584; cv=none; d=google.com; s=arc-20160816; b=dI9hD0sHMeBTbJvW8o129pC6DG0uh91U2i4jzyaBksYaJ7y+cOe69tVb5PfRhp8GYf kmEydA1g4wNSMn4bHaqC7qZbu+hUuZzj2uBaF4kBsVwHq2ucmxer0QVMQ28CrVVgtKTY V1YhqBKE0JnuhpfwXTNyl2cI1xP9FOpOdNHaW3wXH6RuZU9tG0qoSbo23Obc6elmQW2N Y8Gzqbyv4YSmMMUb52SbMvQ56EdrKCZSbcDf0IMW4+lVI0TuF4f8KJxpR+vdLh3c8ivT L8cdC1mobfHfP1agdC/lnDjrzvSWrgF7EIonhoWU63CMJ1Rx1Q6vjKi2Nj+ruF/R5Q3H Lq8A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:organization:references :in-reply-to:message-id:subject:cc:to:from:date :arc-authentication-results; bh=OURcjz9F4ytiO5nqdPpmGuEo+m0kFgZRWGot4P0yvZQ=; b=BplAbWiyC1oiiA3HFGrDxx0ZTNWJOqdWxmCV7cFNOm22fbWWS0PhGy3lrRsnpRjJBT JMsWTwWoOFH/8z1ofExyuXYmNP9lSHMx+3KmhFbbAWefSi3bUbCryd7MnawySczq/Awr 9ruKZqiEVzKkeMMgwar8dXP2kH2vJurTRxjKjZ6uD9z6orI7jCtufa6q4KSTjNXYTIHQ iq65hBlWxWnNnjPNUWNuWR6kv/1YztXBSeswZnS06X8o7/m9ABVNShI2WDqyVcA0TiuE NHh0tFPQMyjWoaSddi1POuwvUmsLoD5eChlS1dM6GcH25F7S4+YhDEO3IgrIRiPTo6lQ PruA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id n3-v6si3567208pld.85.2018.04.12.07.49.07; Thu, 12 Apr 2018 07:49:44 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753066AbeDLOpm (ORCPT + 99 others); Thu, 12 Apr 2018 10:45:42 -0400 Received: from mail-out.m-online.net ([212.18.0.10]:47323 "EHLO mail-out.m-online.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752870AbeDLOpk (ORCPT ); Thu, 12 Apr 2018 10:45:40 -0400 Received: from frontend01.mail.m-online.net (unknown [192.168.8.182]) by mail-out.m-online.net (Postfix) with ESMTP id 40MNxZ4zNRz1qtPJ; Thu, 12 Apr 2018 16:45:38 +0200 (CEST) Received: from localhost (dynscan1.mnet-online.de [192.168.6.70]) by mail.m-online.net (Postfix) with ESMTP id 40MNxZ4Jdfz1qqlD; Thu, 12 Apr 2018 16:45:38 +0200 (CEST) X-Virus-Scanned: amavisd-new at mnet-online.de Received: from mail.mnet-online.de ([192.168.8.182]) by localhost (dynscan1.mail.m-online.net [192.168.6.70]) (amavisd-new, port 10024) with ESMTP id Eh2ZV5RF1MqQ; Thu, 12 Apr 2018 16:45:36 +0200 (CEST) X-Auth-Info: qzn3QHLZHQ39jrfkrIuTl37N0o5USIzBUbn1rP8XHmg= Received: from jawa (85-222-111-42.dynamic.chello.pl [85.222.111.42]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.mnet-online.de (Postfix) with ESMTPSA; Thu, 12 Apr 2018 16:45:36 +0200 (CEST) Date: Thu, 12 Apr 2018 16:45:35 +0200 From: Lukasz Majewski To: Joe Perches Cc: Dmitry Torokhov , linux-kernel@vger.kernel.org, linux-input@vger.kernel.org, Sascha Hauer Subject: Re: [PATCH 2/2] input: touchscreen mc13xxx: Add mc34708 support Message-ID: <20180412164535.324a218a@jawa> In-Reply-To: <4690e30b3c4b97847123295f1994c6eafe4e0cbb.camel@perches.com> References: <20180411141340.30939-1-lukma@denx.de> <20180411141340.30939-2-lukma@denx.de> <4690e30b3c4b97847123295f1994c6eafe4e0cbb.camel@perches.com> Organization: denx.de X-Mailer: Claws Mail 3.16.0 (GTK+ 2.24.31; x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; boundary="Sig_/ahDu70l8WIhCE2XFKRzQbVD"; protocol="application/pgp-signature" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org --Sig_/ahDu70l8WIhCE2XFKRzQbVD Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: quoted-printable On Wed, 11 Apr 2018 09:01:01 -0700 Joe Perches wrote: > On Wed, 2018-04-11 at 16:13 +0200, Lukasz Majewski wrote: > > From: Sascha Hauer > >=20 > > The mc34708 has a different bit to enable pen detection. This > > adds the driver data and devtype necessary to probe the device > > and to distinguish between the mc13783 and the mc34708. =20 >=20 > style trivia: >=20 > > diff --git a/drivers/input/touchscreen/mc13783_ts.c > > b/drivers/input/touchscreen/mc13783_ts.c =20 > [] > > @@ -96,6 +135,10 @@ static void mc13783_ts_report_sample(struct > > mc13783_ts_priv *priv)=20 > > cr0 =3D (cr0 + cr1) / 2; > > =20 > > + if (priv->drvdata->type =3D=3D MC13XXX_TYPE_MC34708) > > + if (cr0 > 4080) > > + cr0 =3D 0; =20 >=20 > For easy of reading, this multiple if block should either > use braces around the first if like: >=20 > if (foo) { > if (bar) > single_statement; > } >=20 > or be written >=20 > if (foo && bar) > single_statement; >=20 > I generally prefer the latter style. >=20 +1. I will fix it in v2. Best regards, Lukasz Majewski -- DENX Software Engineering GmbH, Managing Director: Wolfgang Denk HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd@denx.de --Sig_/ahDu70l8WIhCE2XFKRzQbVD Content-Type: application/pgp-signature Content-Description: OpenPGP digital signature -----BEGIN PGP SIGNATURE----- iQEzBAEBCAAdFiEEgAyFJ+N6uu6+XupJAR8vZIA0zr0FAlrPcQ8ACgkQAR8vZIA0 zr0w3wf+LFFcRxd7PeY+xB7Eya/OhCLtq/DwUCVi688nQObrhsUn0yvpfoR93LOo xyE2WP+08T3dj2Jl/3yhxVATuE92kcf1cXaBbgDnxf7ceiRV1OOPwHRUAHnowKfd EiO6FsRsEGDyd4dm6/ZF8upyJIj2l6+HsPabJAzpEYpS8NZAjnsilDW9ohH55FNb Cx6f5VD8Wk8JWfkroyKgBTZZWJVDDGzsaLzLysnRHZWJDHg35xRLV46E5q4vV3hI 2a4TWtltRzz03cf2taTvlBS1S8H7bmx84pNw0PTBIjTHkBT6xOIO8eenMiGkyn4S Yf/7IlFPi6zvesEKdMmF4v/3bSZEfw== =xOTR -----END PGP SIGNATURE----- --Sig_/ahDu70l8WIhCE2XFKRzQbVD--