Received: by 10.192.165.148 with SMTP id m20csp3901636imm; Mon, 23 Apr 2018 14:41:07 -0700 (PDT) X-Google-Smtp-Source: AIpwx4+5SWUt7f1EGBbUXNv+8+HVp7YbqaUNUwTKE6AkytcE52YAOvBlYYUEgZLQbzfMFoLjgLEh X-Received: by 2002:a17:902:683:: with SMTP id 3-v6mr22375159plh.206.1524519667814; Mon, 23 Apr 2018 14:41:07 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1524519667; cv=none; d=google.com; s=arc-20160816; b=cHuI6eyxizmylKrMBeuBiHbB9WmLb9INU9zTYjiCpgLKf7HY9wtUib8afih0qNKesS veYySaqJsNhm0EbX0Q3TOeKmk877yeSYDRDzMCKVYBHeSB35Cpy/S7qTitRb2LTD8eOk drP7dHLBMpSOCkciCL7Z4v5XeuUys2afe3DDItXxUhisI06EzFz1Eyj8VAeQx0d2Y/ei 3fMxrBlVBZQ12rh8HVLGzoWVyBCgNNelp66DftIfxUWhjG5HigNSVbmn1qQf4xVsLvbT KrEVFXa5qigyAReMAnyME8BmD63SpBoVYtFt5f4++RNf3SPqIohVJMj31a8vfjnhYoXW rxng== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from:arc-authentication-results; bh=/TxuffUvNeO/p5u6VMAdBvldua7W9YQ6F8uB3VeVdMs=; b=wcG8PWdulEvbRLD3GLfCLIgMAA5Eb7JzAj1pXJty9K/ITN1MuWdZVQ6Yvdj1R9VTLS tLpl/rtFmb43Hu8HkQ90DGt/RUiTHtIkhuRXkUQZ+m5ayw7hSh0lX/SYLOoe8EkJJkmp SF8d8oVLJ6zgyfCnVDP/U6XuSy/l/jkVLfRF5Ep9uyKR4bTBnjnjD5CLKOJf/Ri/n8BV yFxy1+9+Wp3EVYWoUbIsejiEWet+ElFsglRTal4mqShP63EPJJEL/E32zCCdcTcfC9g7 93hUx32+J+qb35srZvf7N5FwGtJLSYXF0HVXGFHIQs/6caM4EsQVf//YmeZlfembHOED GXDA== 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 f14si10040340pgt.115.2018.04.23.14.40.53; Mon, 23 Apr 2018 14:41:07 -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 S932628AbeDWVih (ORCPT + 99 others); Mon, 23 Apr 2018 17:38:37 -0400 Received: from bert.emutex.com ([91.103.1.109]:54290 "EHLO bert.emutex.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932522AbeDWVi3 (ORCPT ); Mon, 23 Apr 2018 17:38:29 -0400 Received: from [92.51.199.138] (helo=statler.emutex.com) by bert.emutex.com with esmtp (Exim 4.84) (envelope-from ) id 1fAjAv-0007oN-Bu; Mon, 23 Apr 2018 22:39:05 +0100 Received: from 182.red-79-157-43.dynamicip.rima-tde.net ([79.157.43.182] helo=localhost) by statler.emutex.com with esmtpsa (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.84) (envelope-from ) id 1fAjAG-0003fw-QW; Mon, 23 Apr 2018 22:38:25 +0100 From: Javier Arteaga To: Jonathan Cameron Cc: Javier Arteaga , Hartmut Knaack , Lars-Peter Clausen , Peter Meerwald-Stadler , Dan O'Donovan , linux-iio@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH v2 1/3] iio: adc128s052: Add pin-compatible IDs Date: Mon, 23 Apr 2018 22:38:03 +0100 Message-Id: <20180423213805.12591-2-javier@emutex.com> X-Mailer: git-send-email 2.17.0 In-Reply-To: <20180423213805.12591-1-javier@emutex.com> References: <20180423213805.12591-1-javier@emutex.com> X-Spam-Score: -1.0 (-) X-Spam-Report: Spam detection software, running on the system "statler.emutex.com", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see the administrator of that system for details. Content preview: 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 --- drivers/iio/adc/ti-adc128s052.c | 16 ++++++++++++---- 1 file changed, 12 insertions(+), 4 deletions(-) [...] Content analysis details: (-1.0 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -1.0 ALL_TRUSTED Passed through trusted hosts only via SMTP Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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 --- drivers/iio/adc/ti-adc128s052.c | 16 ++++++++++++---- 1 file changed, 12 insertions(+), 4 deletions(-) diff --git a/drivers/iio/adc/ti-adc128s052.c b/drivers/iio/adc/ti-adc128s052.c index 7cf39b3e2416..e6716c326c5e 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", }, + { } }; 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); -- 2.17.0