From patchwork Sun Jun 28 12:36:45 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jonathan Cameron X-Patchwork-Id: 11630117 Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id F06C313B4 for ; Sun, 28 Jun 2020 12:39:20 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id CEEA3208C7 for ; Sun, 28 Jun 2020 12:39:20 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1593347960; bh=S1hmZJVxqLKT2wWmJdk3O13MSrEdDy7XW3sSEJzPfOw=; h=From:To:Cc:Subject:Date:In-Reply-To:References:List-ID:From; b=cDO/cL9stcW1gz2jAh5pEoStTan3oPsYB3ti8GNAreraYdsGgi3UrzaCPfs+jAHAJ U86zBPSCdj5P2X+rp+bKPDwQkpRuP7G7Eme5udkuXYiYxeFXdpqCaWN2jPTBxnoxsL vm8jx8NgZjtiFXRC6X0y9MUdEJtKjnb78ZL1TON8= Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726564AbgF1MjU (ORCPT ); Sun, 28 Jun 2020 08:39:20 -0400 Received: from mail.kernel.org ([198.145.29.99]:53244 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726559AbgF1MjT (ORCPT ); Sun, 28 Jun 2020 08:39:19 -0400 Received: from localhost.localdomain (cpc149474-cmbg20-2-0-cust94.5-4.cable.virginm.net [82.4.196.95]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id C606020738; Sun, 28 Jun 2020 12:39:18 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1593347959; bh=S1hmZJVxqLKT2wWmJdk3O13MSrEdDy7XW3sSEJzPfOw=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=MJVr79UvhhfZhreQOPMsB2+XmU1WRP+cHFxqQQHrjQWdEWsasEKP6YylveoKZXsS8 GcKvuL2lIep4kzbVec05QmwJk94qtCkMqO/RXBmfowSfCbw3vKs1kVrSbJ+8drzYUL l7wWt0QSHnb48EM7Gd/npMw6jmSTv3eWeuv6zNn8= From: Jonathan Cameron To: linux-iio@vger.kernel.org Cc: alexandru.Ardelean@analog.com, Andy Shevchenko , Jonathan Cameron , Arnaud Pouliquen Subject: [PATCH 14/23] iio:adc:sd_adc_modulator: Drop of_match_ptr and tweak includes Date: Sun, 28 Jun 2020 13:36:45 +0100 Message-Id: <20200628123654.32830-15-jic23@kernel.org> X-Mailer: git-send-email 2.27.0 In-Reply-To: <20200628123654.32830-1-jic23@kernel.org> References: <20200628123654.32830-1-jic23@kernel.org> MIME-Version: 1.0 Sender: linux-iio-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-iio@vger.kernel.org From: Jonathan Cameron Dropping of_match_ptr allows this driver to be used with ACPI. The header includes are adjusted to include platform_device.h and mod_devicetable.h instead of OF specific header as nothing from that header itself is actually used. Signed-off-by: Jonathan Cameron Cc: Arnaud Pouliquen --- drivers/iio/adc/sd_adc_modulator.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/drivers/iio/adc/sd_adc_modulator.c b/drivers/iio/adc/sd_adc_modulator.c index 1d6c246609c8..327cc2097f6c 100644 --- a/drivers/iio/adc/sd_adc_modulator.c +++ b/drivers/iio/adc/sd_adc_modulator.c @@ -9,7 +9,8 @@ #include #include #include -#include +#include +#include static const struct iio_info iio_sd_mod_iio_info; @@ -54,7 +55,7 @@ MODULE_DEVICE_TABLE(of, sd_adc_of_match); static struct platform_driver iio_sd_mod_adc = { .driver = { .name = "iio_sd_adc_mod", - .of_match_table = of_match_ptr(sd_adc_of_match), + .of_match_table = sd_adc_of_match, }, .probe = iio_sd_mod_probe, };