Received: by 10.223.176.46 with SMTP id f43csp1042756wra; Fri, 26 Jan 2018 10:52:51 -0800 (PST) X-Google-Smtp-Source: AH8x226VHCVYbu5WfEPT96YG7N+l307ffrS0ccbulX+GUQ4SrSWEXj1HYyKoGADGkXIK/i+J6GCU X-Received: by 10.99.149.8 with SMTP id p8mr15663020pgd.186.1516992771077; Fri, 26 Jan 2018 10:52:51 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1516992771; cv=none; d=google.com; s=arc-20160816; b=NYFl2EoB4wvitUyjg+Nn5EppMAXB5WnFA9GMhtEcKDCbyvJvrAROePl6pZMpCXQojw 9q+Vs7MHhKr5EOJ+NiiIIE/hiZJ/VlHErUuWXSYQmN+1WYrXEj45VZ7CD2DfuWHTukq8 qoQ4JeUMsO4KAJLEz7XT7DzCDmCS7UpArGXE6ZJHT3T1SGM3sTN57Fk0154csBRkyd2o e/E5jDTznOPXcyZQ4yDwW4FAALMgwze1LueGjXEjmVmNgegBCsAH4GVp6BuX74Y6Usbq QO3R7VODpbUbjHVfMbNVvlAvEQXz/EokjmcYfke6zEm0CNPOeHeCZr16KaDXS6PoLv8q Itdg== 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 :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject:arc-authentication-results; bh=/nuVQ/cb8Mhdzph+297d2m7p+bWdILOxy7xZKNkFMoo=; b=WS4Y/Ke+d8ydjB0J7tsCR8IaKfOKkEMxH3L1PFPiZcH88N4XKgoAHzGNT85YjuCHuo G2mJueTA3COnZOjHYu9hMrAnwoLpKKaUtykd+ABOpSYtzs/vqGOkSGJAMc8iZGSR0a9W xfTz6FbACmWB0tIJ9VI4jlJozzwIDJkM3fO1VZLkhDzM+HqTfoYmoVZfFr/YJ/KknFqs uKZQhYx3Fb06TP4bgpz1B/Q3BUaJo7WBQVmFrQFt7x1xwL7koQoKPhQVqecqUOyEbUPz 4fbZZelWM4gNTxWZzhYXixhtc5kaeOPCP5SyyhxXJGhGF5QtjYiqXYc2pDr3W+ixZMP5 wrCA== 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 o5-v6si1484166plh.780.2018.01.26.10.52.37; Fri, 26 Jan 2018 10:52:51 -0800 (PST) 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 S1752631AbeAZSwG (ORCPT + 99 others); Fri, 26 Jan 2018 13:52:06 -0500 Received: from www381.your-server.de ([78.46.137.84]:48612 "EHLO www381.your-server.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752599AbeAZSwD (ORCPT ); Fri, 26 Jan 2018 13:52:03 -0500 Received: from [88.198.220.132] (helo=sslproxy03.your-server.de) by www381.your-server.de with esmtpsa (TLSv1.2:DHE-RSA-AES256-GCM-SHA384:256) (Exim 4.85_2) (envelope-from ) id 1ef8pr-0008Qv-4h; Fri, 26 Jan 2018 19:34:47 +0100 Received: from [2003:86:2c06:1d00:8200:bff:fe9b:6612] by sslproxy03.your-server.de with esmtpsa (TLSv1.2:DHE-RSA-AES256-SHA:256) (Exim 4.84_2) (envelope-from ) id 1ef8pq-0000MR-Qe; Fri, 26 Jan 2018 19:34:46 +0100 Subject: Re: [PATCH v3 1/2] iio: adc: driver for ti adc081s/adc101s/adc121s To: Andy Shevchenko , Milan Stevanovic Cc: Jonathan Cameron , Michael Hennerich , Linux Kernel Mailing List , Hartmut Knaack , Peter Meerwald , linux-iio@vger.kernel.org, Philippe Ombredanne , Matt Ranostay References: <1515961960-35157-1-git-send-email-milan.o.stevanovic@gmail.com> From: Lars-Peter Clausen Message-ID: <7eb264e1-810a-ae6d-08fe-c6df2fe5d126@metafoo.de> Date: Fri, 26 Jan 2018 19:34:45 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.5.2 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit X-Authenticated-Sender: lars@metafoo.de X-Virus-Scanned: Clear (ClamAV 0.99.2/24253/Thu Jan 25 02:22:43 2018) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 01/26/2018 07:19 PM, Andy Shevchenko wrote: > On Sun, Jan 14, 2018 at 10:32 PM, Milan Stevanovic > wrote: >> Add Linux device driver for TI single-channel CMOS >> 8/10/12-bit analog-to-digital converter with a >> high-speed serial interface. >> >> Signed-off-by: Milan Stevanovic > >> + * Analog Devices AD7466/7/8 AD7476/5/7/8 (A) SPI ADC driver >> + * TI ADC081S/ADC101S/ADC121S 8/10/12-bit SPI ADC driver > > Guys, I'm not sure I understood this mix. > > We have like few TI drivers here: > > drivers/iio/adc/ti-adc0832.c:352:module_spi_driver(adc0832_driver); > drivers/iio/adc/ti-adc084s021.c:269:module_spi_driver(adc084s021_driver); > drivers/iio/adc/ti-adc108s102.c:343:module_spi_driver(adc108s102_driver); > drivers/iio/adc/ti-adc12138.c:547:module_spi_driver(adc12138_driver); > drivers/iio/adc/ti-adc128s052.c:211:module_spi_driver(adc128_driver); > drivers/iio/adc/ti-adc161s626.c:276:module_spi_driver(ti_adc_driver); > drivers/iio/adc/ti-ads7950.c:519:module_spi_driver(ti_ads7950_driver); > drivers/iio/adc/ti-ads8688.c:481:module_spi_driver(ads8688_driver); > drivers/iio/adc/ti-tlc4541.c:266:module_spi_driver(tlc4541_driver); > > What's wrong with them? > > Is it here code duplication between two vendors? > Looking at this list ti-adc161s626 could probably be combined with the ad7476 driver. It fits the bill, single channel ADC with SPI interface and no control registers.