From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-15.5 required=3.0 tests=BAYES_00,INCLUDES_CR_TRAILER, INCLUDES_PATCH,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,USER_AGENT_SANE_2 autolearn=unavailable autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 2E5ADC433B4 for ; Sun, 18 Apr 2021 10:11:26 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id F40C761245 for ; Sun, 18 Apr 2021 10:11:25 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229794AbhDRKLq (ORCPT ); Sun, 18 Apr 2021 06:11:46 -0400 Received: from mail.kernel.org ([198.145.29.99]:52376 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229544AbhDRKLp (ORCPT ); Sun, 18 Apr 2021 06:11:45 -0400 Received: from jic23-huawei (cpc108967-cmbg20-2-0-cust86.5-4.cable.virginm.net [81.101.6.87]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 6AA5861090; Sun, 18 Apr 2021 10:11:14 +0000 (UTC) Date: Sun, 18 Apr 2021 11:11:46 +0100 From: Jonathan Cameron To: Andy Shevchenko Cc: Jonathan Cameron , Alexandru Ardelean , linux-iio@vger.kernel.org, linux-kernel@vger.kernel.org, Lars-Peter Clausen , Michael Hennerich , Peter Meerwald-Stadler Subject: Re: [PATCH v2 1/1] iio: adc: ad7298: Enable on Intel Galileo Gen 1 Message-ID: <20210418111146.38e9d35d@jic23-huawei> In-Reply-To: <20210412131835.70212-1-andriy.shevchenko@linux.intel.com> References: <20210412131835.70212-1-andriy.shevchenko@linux.intel.com> X-Mailer: Claws Mail 3.17.8 (GTK+ 2.24.33; x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, 12 Apr 2021 16:18:35 +0300 Andy Shevchenko wrote: > Enable ADC on Intel Galileo Gen 1 board. > > Signed-off-by: Andy Shevchenko Applied to the togreg branch of iio.git and pushed out as testing for the autobuilders to hopefully not notice we did anything ;) Jonathan > --- > v2: fixed typo in ID > drivers/iio/adc/ad7298.c | 8 ++++++++ > 1 file changed, 8 insertions(+) > > diff --git a/drivers/iio/adc/ad7298.c b/drivers/iio/adc/ad7298.c > index 689ecd5dd563..e7e866433090 100644 > --- a/drivers/iio/adc/ad7298.c > +++ b/drivers/iio/adc/ad7298.c > @@ -13,6 +13,7 @@ > #include > #include > #include > +#include > #include > #include > #include > @@ -352,6 +353,12 @@ static int ad7298_probe(struct spi_device *spi) > return devm_iio_device_register(&spi->dev, indio_dev); > } > > +static const struct acpi_device_id ad7298_acpi_ids[] = { > + { "INT3494", 0 }, > + { } > +}; > +MODULE_DEVICE_TABLE(acpi, ad7298_acpi_ids); > + > static const struct spi_device_id ad7298_id[] = { > {"ad7298", 0}, > {} > @@ -361,6 +368,7 @@ MODULE_DEVICE_TABLE(spi, ad7298_id); > static struct spi_driver ad7298_driver = { > .driver = { > .name = "ad7298", > + .acpi_match_table = ad7298_acpi_ids, > }, > .probe = ad7298_probe, > .id_table = ad7298_id,