Received: by 10.223.176.46 with SMTP id f43csp1019701wra; Fri, 26 Jan 2018 10:27:52 -0800 (PST) X-Google-Smtp-Source: AH8x225arR63y0QSX8+6nKb5sDRji3aWf20zb8ui+lip0tMSuBYq6rimcL01VpXOkFOEFo6j145f X-Received: by 10.101.73.12 with SMTP id p12mr1252864pgs.286.1516991272813; Fri, 26 Jan 2018 10:27:52 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1516991272; cv=none; d=google.com; s=arc-20160816; b=QMDXjL58NBFwrRwQJDLP2HSDwTMXuIeXrlPfIrme3i3XepQZbACmz6tJYfPRhrz8oe 0ZCd2e/IBBvN+q7f0PE0nO+igD9PsnrlOahNDmAFiRhi0nQSol4d4d+ZdispM3aMTx3g GlHl60Z2QkZdREAoz3K6sZ8wwFmLKQcWYIW3yYKKKxRyU/Q0NzeyE+BAL/mwHCTZI9JL G7NyzqEGEJXwFnfCbrwTaqR44/UHRuiHYAFeaN4D2IVR9/EvHLf1g7z0YIqCeA8Dqjq1 pkahaFOCkqsRs6UZlFCj0LkDnVdUq/TAU3u8KCIBfL6i0VkjqFTkrYGlX2ZeTwsOVAYX sohg== 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=LfwLSlR7kitcsvOkgTaL5e82acgPfIZwxNMNoglekls=; b=DOQrzXEbay+gZdmvoL8rG/rNhyN66uw2ITazPHQJwsJce0OeZF2V5sU2WwdRLZJhOS v4czEX2a1Xw86jpqwMWaH7WtJNbkeyOwwL3bvB1GKWMPwUUs05iWFp4Z9moqzy0x5XaE NYTZHU+6R3RiZWYfy7NfpJghRLHjzrO6TLxs7JOtEkaX3jPoWvKsrcG8sudOAAqi2Zf7 uJkPL/RCYfgvYWLGBurlm9oVabC3LRG6ixJp0ccgQpEU1LY7QbGvUrw+C9qop+oiykXo 8fpg3b1hR0/CKojLdGKOWqBpa8eOBqKuBiBuJ9RuxDFGUC8MHH5b0dkiqpL8NCDy2J1f aAhw== 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 s11si3309780pgp.162.2018.01.26.10.27.38; Fri, 26 Jan 2018 10:27:52 -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 S1751632AbeAZS0B (ORCPT + 99 others); Fri, 26 Jan 2018 13:26:01 -0500 Received: from www381.your-server.de ([78.46.137.84]:43832 "EHLO www381.your-server.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751291AbeAZSZ7 (ORCPT ); Fri, 26 Jan 2018 13:25:59 -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 1ef8hD-0008D5-Ev; Fri, 26 Jan 2018 19:25:51 +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 1ef8hD-0005B4-2k; Fri, 26 Jan 2018 19:25:51 +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 References: <1515961960-35157-1-git-send-email-milan.o.stevanovic@gmail.com> From: Lars-Peter Clausen Message-ID: <783221ff-7366-5a50-f022-8b7b8a21e998@metafoo.de> Date: Fri, 26 Jan 2018 19:25:50 +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. You often have the case where two or even more vendors produce parts that are (mostly) pin and register map compatible. This is typically to fulfill the second source requirement that some customers have. It is not uncommon to see drivers that support parts from different vendors. > > 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? They are probably not register map compatible with those other drivers. (Or nobody cared to check if they are register map compatible). > > Is it here code duplication between two vendors? >