From patchwork Sun Jun 28 12:36:35 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jonathan Cameron X-Patchwork-Id: 11630097 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 B52AA13B4 for ; Sun, 28 Jun 2020 12:39:06 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 9595820885 for ; Sun, 28 Jun 2020 12:39:06 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1593347946; bh=wg5Pg+8P6WOTrxR8szcB8s+eO4PjjMh9OumP07CxuHQ=; h=From:To:Cc:Subject:Date:In-Reply-To:References:List-ID:From; b=nwWGY7ENL4GcjCkred0+KVENnkZ2cII/ut+TOEZeeSR0ibs6eVMc3NUSD6/o3FL9P ozRqGIvDMGZAKcYrKViuCCuFUrlwIqirgVlxpo/IOzFHNii4bm3iN0/K6hweobLx6w 5mlTqBLPYOEAGmBd4jnRt9hbrx8uD94SHLXIKVj0= Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726473AbgF1MjF (ORCPT ); Sun, 28 Jun 2020 08:39:05 -0400 Received: from mail.kernel.org ([198.145.29.99]:53090 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726373AbgF1MjF (ORCPT ); Sun, 28 Jun 2020 08:39:05 -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 22C4B208B6; Sun, 28 Jun 2020 12:39:03 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1593347945; bh=wg5Pg+8P6WOTrxR8szcB8s+eO4PjjMh9OumP07CxuHQ=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=hT8JXES9ySwnNfY27ktTRt2Toslb6h1TBpGdHFoCfa0xO95N1W7/f0owap+aEJ2mq lJEKcFQf3RzhRaXdpOUnxutt3FSHiqhNgqyRwSyIvoV1rdJaOMrQXC5+c/oDF1l4d9 hE/WYNGHrTtX2epU0bvBTJAeVfU/uMPOIJwGlmXo= From: Jonathan Cameron To: linux-iio@vger.kernel.org Cc: alexandru.Ardelean@analog.com, Andy Shevchenko , Jonathan Cameron , Vladimir Barinov , Nikita Yushchenko Subject: [PATCH 04/23] iio:adc:hi8435: Drop of_match_ptr protection. Date: Sun, 28 Jun 2020 13:36:35 +0100 Message-Id: <20200628123654.32830-5-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 Allows use of ACPI with PRP0001 and is generally something we are trying to avoid having people cut and paste into new drivers without thinking about it. Signed-off-by: Jonathan Cameron Cc: Vladimir Barinov Cc: Nikita Yushchenko --- drivers/iio/adc/hi8435.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/drivers/iio/adc/hi8435.c b/drivers/iio/adc/hi8435.c index 235374ec7bab..074c30970465 100644 --- a/drivers/iio/adc/hi8435.c +++ b/drivers/iio/adc/hi8435.c @@ -15,8 +15,7 @@ #include #include #include -#include -#include +#include #include #include @@ -539,7 +538,7 @@ MODULE_DEVICE_TABLE(spi, hi8435_id); static struct spi_driver hi8435_driver = { .driver = { .name = DRV_NAME, - .of_match_table = of_match_ptr(hi8435_dt_ids), + .of_match_table = hi8435_dt_ids, }, .probe = hi8435_probe, .id_table = hi8435_id,