Received: by 2002:ac0:98c7:0:0:0:0:0 with SMTP id g7-v6csp2385160imd; Sun, 28 Oct 2018 08:56:51 -0700 (PDT) X-Google-Smtp-Source: AJdET5f8tv9ysSSMmN4n93JTmyOkUI6+IAFik3Zv0YhRNOeiY551pqFYm8VDpjznxNJrA9BydmI7 X-Received: by 2002:a17:902:6948:: with SMTP id k8-v6mr11120730plt.22.1540742211137; Sun, 28 Oct 2018 08:56:51 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1540742211; cv=none; d=google.com; s=arc-20160816; b=iVz1DjX9ovGVBev/GQMHk4Je/gOWvm9jcgnzGawDLHA/dz7ga8ApVEZWCj1dkHGnjK DnuxZyMZRz5pbZbMuI1cERUj1i15TTSSzIWiHI6RdMW3l8A+FJa6UpZHt5zcac+PiT9v x3tFld1qbO7U/OVQLOZYXCJjM1taC2xMPo0A/maVa0+fAWA7WNfMqwiCFKYJxUyd8xbd ofevr4vVVcz4bHZIEtdtspix0XSSuciyE6dBLYl4HW/vYobF31ynGo9PuoKUvSlLPmMj BmTcjg9vz5EqTNAMM4Rw+XjuQJ4fSY+MRfdQ8qOJmnKYAuTREPW5N1R/22m30wk/qqsw FL+Q== 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 :dkim-signature; bh=0OJb5MJ8hA3m7UccRfQi2zbWd5Z1rKc7u8ptfb65gPY=; b=U/bjGliaz/TOv8MFK50IYqjfEdUjyGC6CDJ4YXI5yk0PeR6NNJFqgPchY0j9++UeL8 q8UxI2XZcicNXYECMMIN7yBlIpErvun2sL3vZF6qUnnIok6OL3MHr1iutXAGWa8x1wkp 5CIkEBvTy3y4Plcwj5hmBh1Yrb1gcmkrrM6dFT2CCPfeou2LTxt8/i/K1RzIlk8tzQxZ X6KKrvmHUQnAnI9Xk68AoLINT3J+3hTmgxWbk/7BgqmwF7G6E++/qev/v6wZhlq1VWhe 3nR+35VoF47zUECLO06Mt1Ve+dUlwbaJgCj8OJVZyodpj8mKfZXZn3WMrCR2xc7dLqf1 8M1A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=JCvQhAGk; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id b137-v6si9822831pfb.144.2018.10.28.08.56.25; Sun, 28 Oct 2018 08:56:51 -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; dkim=pass header.i=@kernel.org header.s=default header.b=JCvQhAGk; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727723AbeJ2AUw (ORCPT + 99 others); Sun, 28 Oct 2018 20:20:52 -0400 Received: from mail.kernel.org ([198.145.29.99]:52136 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727115AbeJ2AUw (ORCPT ); Sun, 28 Oct 2018 20:20:52 -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 1FEE420831; Sun, 28 Oct 2018 15:35:53 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1540740956; bh=kuR8DUI+HJ8qJke+uEiBnvTXOiALFYFsGRx2/qfiJiM=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=JCvQhAGkcC7qNkjb/o7sDrGdVV2yPCehfWGqe4O0gj2BeFvxC4HMO7DO9Uk67tiEC PXLBYpjKxi9BjgMlDCaP0bgaol0rAXJMSOqiuCFeqNGFWbXHCgDhbtzgGXWDgsmSWB JmBYUasXQ1hgqgd9CGseau+gMyH1l9pym/UD306Y= Date: Sun, 28 Oct 2018 15:35:51 +0000 From: Jonathan Cameron To: Dan O'Donovan Cc: linux-kernel@vger.kernel.org, Andy Shevchenko , Hartmut Knaack , Lars-Peter Clausen , Peter Meerwald-Stadler , linux-iio@vger.kernel.org, Rob Herring , Mark Rutland , devicetree@vger.kernel.org, Carlos Iglesias , Javier Arteaga Subject: Re: [PATCH v3 1/3] iio: adc128s052: Add pin-compatible IDs Message-ID: <20181028153551.6f2cccac@archlinux> In-Reply-To: <1540481742-23596-2-git-send-email-dan@emutex.com> References: <20180423213805.12591-1-javier@emutex.com> <1540481742-23596-1-git-send-email-dan@emutex.com> <1540481742-23596-2-git-send-email-dan@emutex.com> X-Mailer: Claws Mail 3.17.1 (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, 25 Oct 2018 16:35:40 +0100 Dan O'Donovan wrote: > From: Javier Arteaga > > The datasheets for ADC122S021 and ADC124S021 list two more > pin-compatible alternatives for each device. > > Add their IDs as compatible strings. > > Suggested-by: Jonathan Cameron > Signed-off-by: Javier Arteaga > Signed-off-by: Dan O'Donovan > --- > .../devicetree/bindings/iio/adc/ti-adc128s052.txt | 9 ++++++++- > drivers/iio/adc/ti-adc128s052.c | 16 ++++++++++++---- > 2 files changed, 20 insertions(+), 5 deletions(-) > > diff --git a/Documentation/devicetree/bindings/iio/adc/ti-adc128s052.txt b/Documentation/devicetree/bindings/iio/adc/ti-adc128s052.txt > index daa2b2c..c07ce1a 100644 > --- a/Documentation/devicetree/bindings/iio/adc/ti-adc128s052.txt > +++ b/Documentation/devicetree/bindings/iio/adc/ti-adc128s052.txt > @@ -1,7 +1,14 @@ > * Texas Instruments' ADC128S052, ADC122S021 and ADC124S021 ADC chip > > Required properties: > - - compatible: Should be "ti,adc128s052", "ti,adc122s021" or "ti,adc124s021" > + - compatible: Should be one of: > + - "ti,adc128s052" Hmm. Ideally I think these should be in 'alphabetical' order. However I can see a certain logic to having the part whose name we are using for the driver listed first.. Not important enough to change. > + - "ti,adc122s021" > + - "ti,adc122s051" > + - "ti,adc122s101" > + - "ti,adc124s021" > + - "ti,adc124s051" > + - "ti,adc124s101" > - reg: spi chip select number for the device > - vref-supply: The regulator supply for ADC reference voltage > > diff --git a/drivers/iio/adc/ti-adc128s052.c b/drivers/iio/adc/ti-adc128s052.c > index 7cf39b3..e6716c3 100644 > --- a/drivers/iio/adc/ti-adc128s052.c > +++ b/drivers/iio/adc/ti-adc128s052.c > @@ -186,15 +186,23 @@ static int adc128_remove(struct spi_device *spi) > static const struct of_device_id adc128_of_match[] = { > { .compatible = "ti,adc128s052", }, > { .compatible = "ti,adc122s021", }, > + { .compatible = "ti,adc122s051", }, > + { .compatible = "ti,adc122s101", }, > { .compatible = "ti,adc124s021", }, > - { /* sentinel */ }, > + { .compatible = "ti,adc124s051", }, > + { .compatible = "ti,adc124s101", }, > + { } Dropping then sentinel shouldn't have occurred in this patch. I don't really care if it is there or not personally but we shouldn't be making changes without clear benefit. I'll put it back. > }; > MODULE_DEVICE_TABLE(of, adc128_of_match); > > static const struct spi_device_id adc128_id[] = { > - { "adc128s052", 0}, /* index into adc128_config */ > - { "adc122s021", 1}, > - { "adc124s021", 2}, > + { "adc128s052", 0 }, /* index into adc128_config */ > + { "adc122s021", 1 }, > + { "adc122s051", 1 }, > + { "adc122s101", 1 }, > + { "adc124s021", 2 }, > + { "adc124s051", 2 }, > + { "adc124s101", 2 }, > { } > }; > MODULE_DEVICE_TABLE(spi, adc128_id);