From mboxrd@z Thu Jan 1 00:00:00 1970 From: Andy Lutomirski Subject: Re: [PATCH v2 2/3] dell-wmi: Support new hotkeys on the XPS 13 9350 (Skylake) Date: Fri, 4 Dec 2015 08:05:26 -0800 Message-ID: References: <20151204090346.GO10982@pali> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: QUOTED-PRINTABLE Return-path: In-Reply-To: <20151204090346.GO10982@pali> Sender: platform-driver-x86-owner@vger.kernel.org To: =?UTF-8?Q?Pali_Roh=C3=A1r?= Cc: Mario Limonciello , platform-driver-x86@vger.kernel.org, Matthew Garrett , Linux ACPI , Darren Hart List-Id: linux-acpi@vger.kernel.org On Dec 4, 2015 1:03 AM, "Pali Roh=C3=A1r" wrote: > > On Monday 30 November 2015 17:02:00 Andy Lutomirski wrote: > > + /* > > + * Check if we've already found this scancode. This = takes > > + * quadratic time, but it doesn't matter unless the l= ist > > + * of extra keys gets very long. > > + */ > > + for (j =3D 0; j < num_bios_keys; j++) > > + if (keymap[j].code =3D=3D dell_wmi_extra_keym= ap[i].code) > > + goto skip; > > + > > Still, my comment about moving this loop into function is valid... > Whoops! Queued for v3. --Andy