From patchwork Mon Apr 12 13:18:35 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Andy Shevchenko X-Patchwork-Id: 12198033 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=-13.9 required=3.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER,INCLUDES_PATCH, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,UNWANTED_LANGUAGE_BODY, USER_AGENT_GIT autolearn=ham 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 169C1C433B4 for ; Mon, 12 Apr 2021 13:19:00 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id DB66B61288 for ; Mon, 12 Apr 2021 13:18:59 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S237607AbhDLNTQ (ORCPT ); Mon, 12 Apr 2021 09:19:16 -0400 Received: from mga01.intel.com ([192.55.52.88]:37895 "EHLO mga01.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S237380AbhDLNTH (ORCPT ); Mon, 12 Apr 2021 09:19:07 -0400 IronPort-SDR: 3aq8dvHLjLWZ1w/fKIAZpbJUje0AuFhg5jpWxCjunr7U5/jF6l3zYxOV6qRbjKb6WsAEMnBNZS r0gZ/+fjWHCQ== X-IronPort-AV: E=McAfee;i="6000,8403,9952"; a="214653071" X-IronPort-AV: E=Sophos;i="5.82,216,1613462400"; d="scan'208";a="214653071" Received: from orsmga004.jf.intel.com ([10.7.209.38]) by fmsmga101.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 12 Apr 2021 06:18:24 -0700 IronPort-SDR: G5N/oM2vGP8tn3O/s18NtNPCZrfKf9GLYDdPi6BYI86sL/lGJDFBT1yNxxcQ25XEsnmm2Y02OP YQTWL3ozGXPw== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.82,216,1613462400"; d="scan'208";a="531877246" Received: from black.fi.intel.com ([10.237.72.28]) by orsmga004.jf.intel.com with ESMTP; 12 Apr 2021 06:18:21 -0700 Received: by black.fi.intel.com (Postfix, from userid 1003) id A1403B9; Mon, 12 Apr 2021 16:18:37 +0300 (EEST) From: Andy Shevchenko To: Jonathan Cameron , Alexandru Ardelean , linux-iio@vger.kernel.org, linux-kernel@vger.kernel.org Cc: Lars-Peter Clausen , Michael Hennerich , Jonathan Cameron , Peter Meerwald-Stadler , Andy Shevchenko Subject: [PATCH v2 1/1] iio: adc: ad7298: Enable on Intel Galileo Gen 1 Date: Mon, 12 Apr 2021 16:18:35 +0300 Message-Id: <20210412131835.70212-1-andriy.shevchenko@linux.intel.com> X-Mailer: git-send-email 2.30.2 MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-iio@vger.kernel.org Enable ADC on Intel Galileo Gen 1 board. Signed-off-by: Andy Shevchenko --- 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,