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=-7.1 required=3.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_PATCH,MAILING_LIST_MULTI, SIGNED_OFF_BY,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED 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 B59DFC433E0 for ; Sun, 28 Jun 2020 19:51:21 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 90E482053B for ; Sun, 28 Jun 2020 19:51:21 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (1024-bit key) header.d=konsulko.com header.i=@konsulko.com header.b="BYDvY0cl" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726783AbgF1TvV (ORCPT ); Sun, 28 Jun 2020 15:51:21 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52342 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726685AbgF1TvU (ORCPT ); Sun, 28 Jun 2020 15:51:20 -0400 Received: from mail-il1-x144.google.com (mail-il1-x144.google.com [IPv6:2607:f8b0:4864:20::144]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id DCD4CC03E979 for ; Sun, 28 Jun 2020 12:51:20 -0700 (PDT) Received: by mail-il1-x144.google.com with SMTP id w9so12693448ilk.13 for ; Sun, 28 Jun 2020 12:51:20 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=konsulko.com; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=PTaTNMgDBTKEJkKYK3hXvkEj0XOWe29+rMTikboLhDw=; b=BYDvY0clRoKRVPu3q5fwDIu2KBc8NeuX5aEgBOEdTd+7PslABMALrnLnRXphFlqbNG mFfdxk95Yvl3nd6/5Glr+c2jGM0unakzQYg2r33Z8GZUi81wO5k2MsjwvtHCHn0DubPy 4sXRqfABOL/BWti31mJn4IJwRCoVRGX4um0pI= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=PTaTNMgDBTKEJkKYK3hXvkEj0XOWe29+rMTikboLhDw=; b=h0OGAELk9DZqCGDkA+vkj11roe3Ga+43KtbLzQ9i5SCr/7dHP6Zt6I+NGu9VIKbwh4 RLpzrebmrQzdQDA4TxwS5qkLXy4+oF0jiKvotRdf57PIfOpmn7oXAeZLpWWEzLSDeWUK q43cj5Zl5FB7HZA68gN1JsErx3+EhgSkOSBsbBRD+4+71hKcIlDrmbcCmDDgg24496Hc mMhtKwgVF4m1JEH/Mu8nd6quyWHRG1FFcZqOWsH18GNYbj2WpT+scBa4dH+KANzguASZ gFkAWyMQqlgMuYQdfcFgvTt0ga4zs3T/niVzrzTw9I8mAylJMf8cZdyuwbfZXkQaEYo7 81gg== X-Gm-Message-State: AOAM5326lCSO8ZdCaBSjRWRNYK7mJTxAYdl9B/xC/T9SWD8uugvO5jXf UdmqIPfXj+BZGGrRjr0cRvwNOK9ftAUG0MVRfFJ0GQ== X-Google-Smtp-Source: ABdhPJzD17+QdPehbBqYDZThHafD+lT1YwLUkwCYEuuKQ2d3M6k3i0RIYNBLFP4PofIScoeQ7kTaZlkixjjvupSrB9o= X-Received: by 2002:a05:6e02:4c6:: with SMTP id f6mr2085940ils.98.1593373880193; Sun, 28 Jun 2020 12:51:20 -0700 (PDT) MIME-Version: 1.0 References: <20200628123654.32830-1-jic23@kernel.org> <20200628123654.32830-21-jic23@kernel.org> In-Reply-To: <20200628123654.32830-21-jic23@kernel.org> From: Matt Ranostay Date: Sun, 28 Jun 2020 12:51:09 -0700 Message-ID: Subject: Re: [PATCH 20/23] iio:adc:ti-adc161s626: Drop of_match_ptr protection. To: Jonathan Cameron Cc: "open list:IIO SUBSYSTEM AND DRIVERS" , Alexandru Ardelean , Andy Shevchenko , Jonathan Cameron Content-Type: text/plain; charset="UTF-8" Sender: linux-iio-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-iio@vger.kernel.org On Sun, Jun 28, 2020 at 5:39 AM Jonathan Cameron wrote: > > From: Jonathan Cameron > > Dropping this allows use of ACPI PRP0001. > > I'm also looking to drop all of_match_ptr use in IIO in order to avoid > it getting cut and paste into new drivers in the future. > > Also add a direct include of mod_devicetable.h to reflect the use > of struct of_device_id. > > Signed-off-by: Jonathan Cameron Acked-by: Matt Ranostay > Cc: Matt Ranostay > --- > drivers/iio/adc/ti-adc161s626.c | 3 ++- > 1 file changed, 2 insertions(+), 1 deletion(-) > > diff --git a/drivers/iio/adc/ti-adc161s626.c b/drivers/iio/adc/ti-adc161s626.c > index f27ca3161530..607791ffe7f0 100644 > --- a/drivers/iio/adc/ti-adc161s626.c > +++ b/drivers/iio/adc/ti-adc161s626.c > @@ -11,6 +11,7 @@ > */ > > #include > +#include > #include > #include > #include > @@ -257,7 +258,7 @@ MODULE_DEVICE_TABLE(spi, ti_adc_id); > static struct spi_driver ti_adc_driver = { > .driver = { > .name = TI_ADC_DRV_NAME, > - .of_match_table = of_match_ptr(ti_adc_dt_ids), > + .of_match_table = ti_adc_dt_ids, > }, > .probe = ti_adc_probe, > .remove = ti_adc_remove, > -- > 2.27.0 >