Received: by 10.192.165.148 with SMTP id m20csp1468957imm; Sat, 21 Apr 2018 08:58:09 -0700 (PDT) X-Google-Smtp-Source: AIpwx4/aKhUm4ZaYAaQj3o7iSneNvqesfRc+ChE/c8YIGNB49wf+W2CQdQH4OAyKWb8+VEJO/Yj4 X-Received: by 2002:a17:902:ab83:: with SMTP id f3-v6mr13891411plr.344.1524326289316; Sat, 21 Apr 2018 08:58:09 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1524326289; cv=none; d=google.com; s=arc-20160816; b=tTLZ4cDsw2DUTsw/vZL28Ic+5v16TUZk+eRKzJDQTQSJs37MbRbC8+Y9q8U4Ju9fEV 9A84rFmyJeZRE53FbBc+LUo24dyug/BxA0jTZSi7l4k416REDChtr9Nc4jfK6EwEjEg3 awQpWr1JKZxN/8H1sWxPu2vFYmq3HJ1PCCkyVMFeQ2eHYNSlINfdTDn1I9czfpun/Q5Z 2KqF5gpfuRTQTG5/1ZVz+f0gpQAq+ox4NoMB1GqLgA3eTVPW7w2D9083k9GC8Tb7qw2E dr3Arz6DiKYcBzFKKMPOHlAV937TxJ3lQBCPqWZkl8/jDjEHABcQ/0Lt0rejTBlDgW7N QvRA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:subject:cc:to:from:date :dmarc-filter:arc-authentication-results; bh=czJYEJ0YDO/Qh2pKkG4r7xRbByatTcDz7//XXDAW1nU=; b=koKZVIj2Ng5f8iBq0I0k6sWHuI0uqN72rHibxCHw9Cbm2VEKB6rWUCEW0QRnm4cGXq b/irXoGpvenFPgJN4KHudIMwblTSNNM1JhntImQ9ePIUwn7t0pk6nfoCebODPKEI+5EA RIpZG9Kq+QYusvVixs3ZdEExsjNk+SQ7HshgiJ38IUUr2933+dJlYVZhyh4gLWa2mC3K ZTCkjNNZ5MuGHuYByfNvmhaPYVRi4wjbhPMlaax+57mQBB6Z2o0etR+yWyE73PZ9KPpA C04DlboMK6WaJ3naSXDSm8bR6Z+CrJR3AW3u+jIW72/59EFoPsx2XtI3i8rJzfua9W2G GZug== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 6si6276241pft.35.2018.04.21.08.57.30; Sat, 21 Apr 2018 08:58:09 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752947AbeDUPys (ORCPT + 99 others); Sat, 21 Apr 2018 11:54:48 -0400 Received: from mail.kernel.org ([198.145.29.99]:37810 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752786AbeDUPyr (ORCPT ); Sat, 21 Apr 2018 11:54:47 -0400 Received: from archlinux (cpc91196-cmbg18-2-0-cust659.5-4.cable.virginm.net [81.96.234.148]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 33B63214AB; Sat, 21 Apr 2018 15:54:45 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 33B63214AB Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=kernel.org Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=jic23@kernel.org Date: Sat, 21 Apr 2018 16:54:41 +0100 From: Jonathan Cameron To: Javier Arteaga Cc: Hartmut Knaack , Lars-Peter Clausen , Peter Meerwald-Stadler , Dan O'Donovan , linux-iio@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH 1/2] iio: adc128s052: allow driver to be matched using ACPI Message-ID: <20180421165441.0c64415d@archlinux> In-Reply-To: <20180419132036.27493-2-javier@emutex.com> References: <20180419132036.27493-1-javier@emutex.com> <20180419132036.27493-2-javier@emutex.com> X-Mailer: Claws Mail 3.16.0 (GTK+ 2.24.32; x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, 19 Apr 2018 14:20:35 +0100 Javier Arteaga wrote: > From: Dan O'Donovan > > Allow driver to be matched by compatible string in > ACPI device properties. > > Signed-off-by: Dan O'Donovan Hi Javier, I don't really see the connection between the change in here and what the description says... If you are probing from ACPI then there is no need to ensure a valid of table is supplied (even if we aren't building with OF) which is what I think this patch is trying to do... Jonathan > --- > drivers/iio/adc/ti-adc128s052.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/drivers/iio/adc/ti-adc128s052.c b/drivers/iio/adc/ti-adc128s052.c > index 7cf39b3e2416..56ec04d1c68f 100644 > --- a/drivers/iio/adc/ti-adc128s052.c > +++ b/drivers/iio/adc/ti-adc128s052.c > @@ -202,7 +202,7 @@ MODULE_DEVICE_TABLE(spi, adc128_id); > static struct spi_driver adc128_driver = { > .driver = { > .name = "adc128s052", > - .of_match_table = of_match_ptr(adc128_of_match), > + .of_match_table = adc128_of_match, > }, > .probe = adc128_probe, > .remove = adc128_remove,