From mboxrd@z Thu Jan 1 00:00:00 1970 From: Mika Westerberg Subject: Re: [PATCH 3/3] input: gpio_keys: Make use of the device property API Date: Tue, 23 Feb 2016 09:29:50 +0200 Message-ID: <20160223072950.GJ1770@lahna.fi.intel.com> References: <1455876982-6743-1-git-send-email-geert+renesas@glider.be> <1455876982-6743-4-git-send-email-geert+renesas@glider.be> <20160222195815.GB28343@dtor-ws> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Received: from mga04.intel.com ([192.55.52.120]:19613 "EHLO mga04.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932612AbcBWH36 (ORCPT ); Tue, 23 Feb 2016 02:29:58 -0500 Content-Disposition: inline In-Reply-To: <20160222195815.GB28343@dtor-ws> Sender: linux-input-owner@vger.kernel.org List-Id: linux-input@vger.kernel.org To: Dmitry Torokhov Cc: Geert Uytterhoeven , Aaron Lu , "Rafael J. Wysocki" , Vincent Pelletier , Linus Walleij , Alexandre Courbot , linux-input@vger.kernel.org, linux-gpio@vger.kernel.org On Mon, Feb 22, 2016 at 11:58:15AM -0800, Dmitry Torokhov wrote: > On Fri, Feb 19, 2016 at 11:16:22AM +0100, Geert Uytterhoeven wrote: > > @@ -887,7 +870,7 @@ static struct platform_driver gpio_keys_device_driver = { > > .driver = { > > .name = "gpio-keys", > > .pm = &gpio_keys_pm_ops, > > - .of_match_table = of_match_ptr(gpio_keys_of_match), > > + .of_match_table = gpio_keys_of_match, > > Why are we changing this? I think match table should still be guarded > by #ifdef CONFIG_OF. This allows ACPI "PRP0001" ID to match DT .compatible strings in the gpio_keys_of_match[] table.