From mboxrd@z Thu Jan 1 00:00:00 1970 From: Dmitry Torokhov Subject: Re: [PATCH v1 1/1] Input: adxl34x - Make it enumerable in ACPI environment Date: Mon, 2 Jan 2017 22:35:01 -0800 Message-ID: <20170103063501.GB5743@dtor-ws> References: <20170102120624.178283-1-andriy.shevchenko@linux.intel.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Received: from mail-pg0-f68.google.com ([74.125.83.68]:33871 "EHLO mail-pg0-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S934566AbdACGfF (ORCPT ); Tue, 3 Jan 2017 01:35:05 -0500 Received: by mail-pg0-f68.google.com with SMTP id b1so32568374pgc.1 for ; Mon, 02 Jan 2017 22:35:04 -0800 (PST) Content-Disposition: inline In-Reply-To: <20170102120624.178283-1-andriy.shevchenko@linux.intel.com> Sender: linux-input-owner@vger.kernel.org List-Id: linux-input@vger.kernel.org To: Andy Shevchenko Cc: linux-input@vger.kernel.org, Mika Westerberg , Jarkko Nikula On Mon, Jan 02, 2017 at 02:06:23PM +0200, Andy Shevchenko wrote: > The ACPI-enabled platform may contain _DSD method to enable this driver using > compatible string. > > Remove OF specifics to re-use existing code on ACPI-enabled platforms. Is there an x86 box that uses this device? Thanks. > > Suggested-by: Mika Westerberg > Signed-off-by: Andy Shevchenko > --- > drivers/input/misc/adxl34x-i2c.c | 4 +--- > 1 file changed, 1 insertion(+), 3 deletions(-) > > diff --git a/drivers/input/misc/adxl34x-i2c.c b/drivers/input/misc/adxl34x-i2c.c > index a8b0a2eec344..7fed92fb8cc1 100644 > --- a/drivers/input/misc/adxl34x-i2c.c > +++ b/drivers/input/misc/adxl34x-i2c.c > @@ -136,7 +136,6 @@ static const struct i2c_device_id adxl34x_id[] = { > > MODULE_DEVICE_TABLE(i2c, adxl34x_id); > > -#ifdef CONFIG_OF > static const struct of_device_id adxl34x_of_id[] = { > /* > * The ADXL346 is backward-compatible with the ADXL345. Differences are > @@ -153,13 +152,12 @@ static const struct of_device_id adxl34x_of_id[] = { > }; > > MODULE_DEVICE_TABLE(of, adxl34x_of_id); > -#endif > > static struct i2c_driver adxl34x_driver = { > .driver = { > .name = "adxl34x", > .pm = &adxl34x_i2c_pm, > - .of_match_table = of_match_ptr(adxl34x_of_id), > + .of_match_table = adxl34x_of_id, > }, > .probe = adxl34x_i2c_probe, > .remove = adxl34x_i2c_remove, > -- > 2.11.0 > -- Dmitry