From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752248AbdLKBsb (ORCPT ); Sun, 10 Dec 2017 20:48:31 -0500 Received: from mail-out-1.itc.rwth-aachen.de ([134.130.5.46]:2802 "EHLO mail-out-1.itc.rwth-aachen.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751420AbdLKBsa (ORCPT ); Sun, 10 Dec 2017 20:48:30 -0500 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: =?us-ascii?q?A2BKAQDA4i1a/54agoZbGgEBAQEBAgEBA?= =?us-ascii?q?QEIAQEBAYM+ggEHjhyOfIF9jWaJJoIVBwOFOwKEXz8YAQEBAQEBAQEBayiFIwE?= =?us-ascii?q?FeRALGAklDwFHBg4FiigEqUWKYwEBAQEBBQEBAQEBIwkBg16CC4ZqixcFikaIF?= =?us-ascii?q?pA1gRCWJ4l2KYculjECAgICCQIagTsfOYFPcIJ3hFZ3iGoBgRQBAQE?= X-IPAS-Result: =?us-ascii?q?A2BKAQDA4i1a/54agoZbGgEBAQEBAgEBAQEIAQEBAYM+ggE?= =?us-ascii?q?HjhyOfIF9jWaJJoIVBwOFOwKEXz8YAQEBAQEBAQEBayiFIwEFeRALGAklDwFHB?= =?us-ascii?q?g4FiigEqUWKYwEBAQEBBQEBAQEBIwkBg16CC4ZqixcFikaIFpA1gRCWJ4l2KYc?= =?us-ascii?q?uljECAgICCQIagTsfOYFPcIJ3hFZ3iGoBgRQBAQE?= X-IronPort-AV: E=Sophos;i="5.45,391,1508796000"; d="asc'?scan'208";a="28441195" 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: Mon, 11 Dec 2017 02:48:23 +0100 Message-ID: <3452614.9kDG2CtB8P@pebbles> In-Reply-To: References: MIME-Version: 1.0 Content-Type: multipart/signed; boundary="nextPart6417077.pInx52mK6O"; micalg=pgp-sha1; protocol="application/pgp-signature" X-Originating-IP: [78.48.173.120] X-ClientProxiedBy: rwthex-s3-a.rwth-ad.de (2002:8682:1aa0::8682:1aa0) 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 --nextPart6417077.pInx52mK6O 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. >=20 > drivers/platform/x86/intel-vbtn.c | 25 +++++++++++++------------ > 1 file changed, 13 insertions(+), 12 deletions(-) Reviewed-by: Stefan Br=FCns Tested-by: Stefan Br=FCns Regards, Stefan =2D-=20 Stefan Br=FCns / Bergstra=DFe 21 / 52062 Aachen home: +49 241 53809034 mobile: +49 151 50412019 --nextPart6417077.pInx52mK6O Content-Type: application/pgp-signature; name="signature.asc" Content-Description: This is a digitally signed message part. Content-Transfer-Encoding: 7Bit -----BEGIN PGP SIGNATURE----- iF0EABECAB0WIQSwWRWIpJbl0W4DemNvf0o9jP6qUwUCWi3j5wAKCRBvf0o9jP6q U2uqAJ0b9V4bbEA0wCSSUuZ5fEJPjz/YLwCfQMWaMC22brB+czxcn+SPP5iBFgI= =NAry -----END PGP SIGNATURE----- --nextPart6417077.pInx52mK6O-- From mboxrd@z Thu Jan 1 00:00:00 1970 From: Stefan =?ISO-8859-1?Q?Br=FCns?= Subject: Re: [PATCH] platform/x86: intel-vbtn: Simplify autorelease logic Date: Mon, 11 Dec 2017 02:48:23 +0100 Message-ID: <3452614.9kDG2CtB8P@pebbles> References: Mime-Version: 1.0 Content-Type: multipart/signed; boundary="nextPart6417077.pInx52mK6O"; micalg=pgp-sha1; protocol="application/pgp-signature" Return-path: Received: from mail-out-1.itc.rwth-aachen.de ([134.130.5.46]:2802 "EHLO mail-out-1.itc.rwth-aachen.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751420AbdLKBsa (ORCPT ); Sun, 10 Dec 2017 20:48:30 -0500 In-Reply-To: Sender: platform-driver-x86-owner@vger.kernel.org List-ID: To: "Darren Hart (VMware)" Cc: platform-driver-x86@vger.kernel.org, LKML , AceLan Kao , Andy Shevchenko --nextPart6417077.pInx52mK6O 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. >=20 > drivers/platform/x86/intel-vbtn.c | 25 +++++++++++++------------ > 1 file changed, 13 insertions(+), 12 deletions(-) Reviewed-by: Stefan Br=FCns Tested-by: Stefan Br=FCns Regards, Stefan =2D-=20 Stefan Br=FCns / Bergstra=DFe 21 / 52062 Aachen home: +49 241 53809034 mobile: +49 151 50412019 --nextPart6417077.pInx52mK6O Content-Type: application/pgp-signature; name="signature.asc" Content-Description: This is a digitally signed message part. Content-Transfer-Encoding: 7Bit -----BEGIN PGP SIGNATURE----- iF0EABECAB0WIQSwWRWIpJbl0W4DemNvf0o9jP6qUwUCWi3j5wAKCRBvf0o9jP6q U2uqAJ0b9V4bbEA0wCSSUuZ5fEJPjz/YLwCfQMWaMC22brB+czxcn+SPP5iBFgI= =NAry -----END PGP SIGNATURE----- --nextPart6417077.pInx52mK6O--