From patchwork Sun Jun 28 12:36:38 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Jonathan Cameron X-Patchwork-Id: 11630103 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 77D5F13B4 for ; Sun, 28 Jun 2020 12:39:10 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 513B920760 for ; Sun, 28 Jun 2020 12:39:10 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1593347950; bh=+8G+QHlUj4poyC0//Qc8XHw0PA41JydyQgUI33cR0hg=; h=From:To:Cc:Subject:Date:In-Reply-To:References:List-ID:From; b=mScJRBZDHJHly1Hvw7vjz1GI77WiG5/IHa2LqQ/a/qOKfD3ZnrhJocapgttawGdA+ LV0uPa1K1ro5pEMmqfS/lmaSZYutJeOnCl55Av4dg9OjJrUZKkEJdtkp8pDzo1avAl NoLT9rvyTCL8mWZxYc8aDqmM+L2TCX+sZJD/6ITo= Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726556AbgF1MjJ (ORCPT ); Sun, 28 Jun 2020 08:39:09 -0400 Received: from mail.kernel.org ([198.145.29.99]:53136 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726373AbgF1MjJ (ORCPT ); Sun, 28 Jun 2020 08:39:09 -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 7279420885; Sun, 28 Jun 2020 12:39:08 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1593347949; bh=+8G+QHlUj4poyC0//Qc8XHw0PA41JydyQgUI33cR0hg=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=X44Cco6crdT1NZ9SuHDVkLel0xXHzj88z97wJdUD33X4UTNqNXzfTaCZDim/tHqZy 29HQq6dLP1QhoEArgg3n8kiavBxYF7AhJeKeHOhuhyCetfgpwGMEsKJXeFcHZTU2CJ mxuLtxwCjJFtVOs+3Fea1nf0zXRgF1P/lU39OCxk= From: Jonathan Cameron To: linux-iio@vger.kernel.org Cc: alexandru.Ardelean@analog.com, Andy Shevchenko , Jonathan Cameron , =?utf-8?q?Uwe_Kleine-K?= =?utf-8?q?=C3=B6nig?= Subject: [PATCH 07/23] iio:adc:ltc2496: Drop of_match_ptr and use mod_devicetable.h Date: Sun, 28 Jun 2020 13:36:38 +0100 Message-Id: <20200628123654.32830-8-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 The macro prevents use of driver with ACPI PRP0001 and the of_match_id structure is defined in mod_devicetable.h so include that directly rather than of.h. Note this is mostly about removing something I don't want cut and paste into new drivers rather than expectation that this particular driver will be used on an ACPI platform. Signed-off-by: Jonathan Cameron Cc: Uwe Kleine-König Reviewed-by: Uwe Kleine-König --- drivers/iio/adc/ltc2496.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/iio/adc/ltc2496.c b/drivers/iio/adc/ltc2496.c index 88a30156a849..dd956a7c216e 100644 --- a/drivers/iio/adc/ltc2496.c +++ b/drivers/iio/adc/ltc2496.c @@ -14,7 +14,7 @@ #include #include #include -#include +#include #include "ltc2497.h" @@ -96,7 +96,7 @@ MODULE_DEVICE_TABLE(of, ltc2496_of_match); static struct spi_driver ltc2496_driver = { .driver = { .name = "ltc2496", - .of_match_table = of_match_ptr(ltc2496_of_match), + .of_match_table = ltc2496_of_match, }, .probe = ltc2496_probe, .remove = ltc2496_remove,