From patchwork Mon Apr 12 13:01:40 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Andy Shevchenko X-Patchwork-Id: 12198005 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 95B7FC433B4 for ; Mon, 12 Apr 2021 13:02:02 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 60CF261287 for ; Mon, 12 Apr 2021 13:02:02 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S237733AbhDLNCS (ORCPT ); Mon, 12 Apr 2021 09:02:18 -0400 Received: from mga04.intel.com ([192.55.52.120]:41925 "EHLO mga04.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S237219AbhDLNCR (ORCPT ); Mon, 12 Apr 2021 09:02:17 -0400 IronPort-SDR: XSMniHgmW1OBpqpm8CtaTZ59WUeD3cN28np2VaPR8eN2won542Vm/aXiT8WoQzFnRmHpRBsp3j RaWOYF/se5tQ== X-IronPort-AV: E=McAfee;i="6000,8403,9952"; a="192050131" X-IronPort-AV: E=Sophos;i="5.82,216,1613462400"; d="scan'208";a="192050131" Received: from fmsmga005.fm.intel.com ([10.253.24.32]) by fmsmga104.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 12 Apr 2021 06:01:35 -0700 IronPort-SDR: 7BW7dcIbee8/TFBlc7UUeawZGbP5ALpS3giJnFGlO9rfr9um0FNaSzMqdbRxymyWn6CE3uWu9Z fNsgtOTgmQHw== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.82,216,1613462400"; d="scan'208";a="614557085" Received: from black.fi.intel.com ([10.237.72.28]) by fmsmga005.fm.intel.com with ESMTP; 12 Apr 2021 06:01:32 -0700 Received: by black.fi.intel.com (Postfix, from userid 1003) id 57EAAB9; Mon, 12 Apr 2021 16:01:49 +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 v1 1/1] iio: adc: ad7298: Enable on Intel Galileo Gen 1 Date: Mon, 12 Apr 2021 16:01:40 +0300 Message-Id: <20210412130140.64541-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 --- 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..3a7b75463335 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[] = { + { "INT3495", 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,