Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753842AbdLHX2a (ORCPT ); Fri, 8 Dec 2017 18:28:30 -0500 Received: from mail-out-2.itc.rwth-aachen.de ([134.130.5.47]:32423 "EHLO mail-out-2.itc.rwth-aachen.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753288AbdLHX21 (ORCPT ); Fri, 8 Dec 2017 18:28:27 -0500 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: =?us-ascii?q?A2D3AAAbHyta/54agoZcGgEBAQEBAgEBA?= =?us-ascii?q?QEIAQEBAYM+ggEHjhyPAYF9jWaJJoIVBwOFOwKEXz8YAQEBAQEBAQEBayiFIwE?= =?us-ascii?q?FeRALGAklDwFHBg4FiigEqX2KagEBAQEBBQEBAQEBIwkBg1GCC4ZqixcFkliQM?= =?us-ascii?q?IEQliaJdCmHLpYvAgICAgkCGoE7HzmBT3CCd4RWd4lUAYEUAQEB?= X-IPAS-Result: =?us-ascii?q?A2D3AAAbHyta/54agoZcGgEBAQEBAgEBAQEIAQEBAYM+ggE?= =?us-ascii?q?HjhyPAYF9jWaJJoIVBwOFOwKEXz8YAQEBAQEBAQEBayiFIwEFeRALGAklDwFHB?= =?us-ascii?q?g4FiigEqX2KagEBAQEBBQEBAQEBIwkBg1GCC4ZqixcFkliQMIEQliaJdCmHLpY?= =?us-ascii?q?vAgICAgkCGoE7HzmBT3CCd4RWd4lUAYEUAQEB?= X-IronPort-AV: E=Sophos;i="5.45,379,1508796000"; d="asc'?scan'208";a="28302542" From: Stefan =?ISO-8859-1?Q?Br=FCns?= To: "Darren Hart (VMware)" CC: , LKML , AceLan Kao , "Andy Shevchenko" Subject: Re: [PATCH] platform/x86: intel-vbtn: Simplify autorelease logic Date: Sat, 9 Dec 2017 00:28:18 +0100 Message-ID: <7546133.vVTS3nG8Ku@pebbles> In-Reply-To: References: MIME-Version: 1.0 Content-Type: multipart/signed; boundary="nextPart2225098.EicF7K9bUB"; micalg=pgp-sha1; protocol="application/pgp-signature" X-Originating-IP: [78.48.176.14] X-ClientProxiedBy: rwthex-w1-a.rwth-ad.de (2002:8682:1a9c::8682:1a9c) To rwthex-w2-a.rwth-ad.de (2002:8682:1a9e::8682:1a9e) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1505 Lines: 45 --nextPart2225098.EicF7K9bUB Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="iso-8859-1" On Saturday, December 9, 2017 12:07:08 AM CET Darren Hart (VMware) wrote: > The new notify_handler logic determining if autorelease should be used or > not is a bit awkward, and can result in more than one call to > sparse_keymap_report_event for the same event (scancode). The nesting > and long lines also made it difficult to read. >=20 > Simplify the logic by eliminating a level of nesting with a goto and > always calculate autorelease and val so we can make a single call to > sparse_keymap_report_event. >=20 > Signed-off-by: Darren Hart (VMware) > Cc: Stefan Br=FCns > Cc: AceLan Kao > --- > Note: This is based on top of Stefan's v2 patch series for intel-vbtn, > currently in my review-dvhart branch. Hi Darren, is this tree publically available? Thanks, Stefan =2D-=20 Stefan Br=FCns / Bergstra=DFe 21 / 52062 Aachen home: +49 241 53809034 mobile: +49 151 50412019 --nextPart2225098.EicF7K9bUB Content-Type: application/pgp-signature; name="signature.asc" Content-Description: This is a digitally signed message part. Content-Transfer-Encoding: 7Bit -----BEGIN PGP SIGNATURE----- iF0EABECAB0WIQSwWRWIpJbl0W4DemNvf0o9jP6qUwUCWisgEgAKCRBvf0o9jP6q U2FcAJ0T1giuzdt+eHdpHYwjc0g1VNviQQCgpWdlIXh6ZkaPbbufwkPuBjZV6tc= =CC0d -----END PGP SIGNATURE----- --nextPart2225098.EicF7K9bUB--