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=-10.1 required=3.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,INCLUDES_PATCH,MAILING_LIST_MULTI,SIGNED_OFF_BY, SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED,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 21B89C433DF for ; Sun, 28 Jun 2020 12:39:02 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id ECFC020885 for ; Sun, 28 Jun 2020 12:39:01 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1593347942; bh=Cz7K3AIcHR1ju60+moItSF+IFx6ukxJN/DTrE0HQDXQ=; h=From:To:Cc:Subject:Date:In-Reply-To:References:List-ID:From; b=e7ZdRFlPqXoSF+SmWdP+84rDlhJGRf0OZGFyimYZs14ioHcEH+lOm6kGzM9/aRV5j a/qI4BCwZ5gB1i+GmZoWWtbtf23hDdZLf23PCIxHCMssKvGxmVu8DpZvjwrE37zdct 22CthQ4c1q/38oD1DpAjr6WmfMkoHUD6jv90YbDg= Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726342AbgF1MjB (ORCPT ); Sun, 28 Jun 2020 08:39:01 -0400 Received: from mail.kernel.org ([198.145.29.99]:53038 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726373AbgF1MjA (ORCPT ); Sun, 28 Jun 2020 08:39:00 -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 E88F320760; Sun, 28 Jun 2020 12:38:59 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1593347940; bh=Cz7K3AIcHR1ju60+moItSF+IFx6ukxJN/DTrE0HQDXQ=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=wQIjdBVBocTYgL1sYSDQBcIhgJLi/AfewDlXG7LWJOK+yL/PQ2Uv2rYCSeXgw+8RR WBQVPYOCrmZ60XbbzupHG/70zOG1nOZFhaCCJMozXBvzdNtMXwvzpwGBRsAS6oh4rp sAD5OK3imZU5kGGtwRiu7H2qvBazb1mcRdutb0v8= From: Jonathan Cameron To: linux-iio@vger.kernel.org Cc: alexandru.Ardelean@analog.com, Andy Shevchenko , Jonathan Cameron Subject: [PATCH 01/23] iio:adc:lpc32xx: Drop of_match_ptr protection Date: Sun, 28 Jun 2020 13:36:32 +0100 Message-Id: <20200628123654.32830-2-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 Content-Transfer-Encoding: 8bit Sender: linux-iio-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-iio@vger.kernel.org From: Jonathan Cameron Whilst is unlikely anyone will be using this part with an ACPI PRP0001 based binding any time soon, we are getting a lot of cut and pasting of this pattern so I am looking to remove it entirely from IIO. In this case CONFIG_OF protections also removed and mod_devicetable.h include added given direct use of struct of_device_id. Signed-off-by: Jonathan Cameron --- drivers/iio/adc/lpc32xx_adc.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/drivers/iio/adc/lpc32xx_adc.c b/drivers/iio/adc/lpc32xx_adc.c index bc2712a48844..b56ce15255cf 100644 --- a/drivers/iio/adc/lpc32xx_adc.c +++ b/drivers/iio/adc/lpc32xx_adc.c @@ -14,6 +14,7 @@ #include #include #include +#include #include #include @@ -209,19 +210,17 @@ static int lpc32xx_adc_probe(struct platform_device *pdev) return 0; } -#ifdef CONFIG_OF static const struct of_device_id lpc32xx_adc_match[] = { { .compatible = "nxp,lpc3220-adc" }, {}, }; MODULE_DEVICE_TABLE(of, lpc32xx_adc_match); -#endif static struct platform_driver lpc32xx_adc_driver = { .probe = lpc32xx_adc_probe, .driver = { .name = LPC32XXAD_NAME, - .of_match_table = of_match_ptr(lpc32xx_adc_match), + .of_match_table = lpc32xx_adc_match, }, }; -- 2.27.0