Received: by 2002:a25:1506:0:0:0:0:0 with SMTP id 6csp5090556ybv; Tue, 11 Feb 2020 09:01:25 -0800 (PST) X-Google-Smtp-Source: APXvYqwYM1ygQG0A9y6m8gmmOBVJkA/kqJAYCWs5lmCUR7D4FvSuNk/tuyhw3ksggP8jsdGvVADs X-Received: by 2002:a05:6830:1050:: with SMTP id b16mr6047086otp.140.1581440485052; Tue, 11 Feb 2020 09:01:25 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1581440485; cv=none; d=google.com; s=arc-20160816; b=bZ9rglTsInyHhrgnHafJGISChrETgRF6pDTRn2mmaImg0HGYIomFBPDo/zH/871U+p De/shwaHpWQgqCGXVzg1OSBDZT/vs7qDOYvLdhkkt2V8NW+TCcQPVzHffdgbfxGTSZYr HkVP8nF8jOSdjh0GeFTn2NptF6nnaACWJdJtrRATnUD/GlVkOlgxhwRqBrr5dWAtqwBV rqirK6VjELnN7LRx9V56+zKqUXkPkx6kjbZlXJ1LAh2Z1+PAZGv7pk+F1yEmR7KOtthO YTGqBdnMUrIwa5iCu33ommA/uO5fNdSjNA+ezbcruBWbXnsc848rokwADf5UCxTkFhzV tQrw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:content-transfer-encoding :content-id:user-agent:content-language:accept-language:in-reply-to :references:message-id:date:thread-index:thread-topic:subject:cc:to :from:dkim-signature; bh=8FH4GMVMTuncapNMvYvyQMea4jBp3XjADEQ2jECszFU=; b=B7SIEtYXghVos4G9xlFVEUEyRpRiyQJUv0PTDyitBqNZxpaeIoZ09ISHvhxlYoWLlO l+Tz0mnocoCyG2grRMr2FC3Umrj5gdxUQBtzxWtF5KeZ6pR9fOdgw2lpwdrBCQd2cbTG thBrVEJT2QuF9jbeU/IstPDo4gWTAOZZdNVpS2tSl3tOKFCM0N/wofYPBruNLCaygxEW ceBOBhxw3geh++ldP8yIKaof+ITpixkhCsh5A5sApMivFHPAvW2cp9+s4MinuCg8TQIm Wvg7sAdvs6TNGTEBR4lXOgxdqlo4P8MxYaHPdawuLMpg08n/q73Gui8z0HskSmkZSMZZ 8nmw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@st.com header.s=STMicroelectronics header.b=ScAg1fvL; 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=st.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id b191si1956904oii.266.2020.02.11.09.01.09; Tue, 11 Feb 2020 09:01:25 -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; dkim=pass header.i=@st.com header.s=STMicroelectronics header.b=ScAg1fvL; 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=st.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730521AbgBKPWi (ORCPT + 99 others); Tue, 11 Feb 2020 10:22:38 -0500 Received: from mx07-00178001.pphosted.com ([62.209.51.94]:36652 "EHLO mx07-00178001.pphosted.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730353AbgBKPWg (ORCPT ); Tue, 11 Feb 2020 10:22:36 -0500 Received: from pps.filterd (m0046668.ppops.net [127.0.0.1]) by mx07-00178001.pphosted.com (8.16.0.42/8.16.0.42) with SMTP id 01BFESwq030309; Tue, 11 Feb 2020 16:22:15 +0100 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=st.com; h=from : to : cc : subject : date : message-id : references : in-reply-to : content-type : content-id : content-transfer-encoding : mime-version; s=STMicroelectronics; bh=8FH4GMVMTuncapNMvYvyQMea4jBp3XjADEQ2jECszFU=; b=ScAg1fvLVaFAAZXimfYb21JBP1d4QQQj1s0uks6rBNnzfQLuHQXsUNtylpyjkgcUYJVn Njozwi8ONYzJLKyL6RX2VwsabBjM0dLcKHN4yDkcU/wFf8tQAO0QZiQ6HZJyvG068lDh EyUzGDrvKSYPJqdsdJup1blUtb2C+ISMFrgKwXAKsFs1NqakT6y9w4AJU4NXLVLpBH1v Ly/dg27xrTNb4rlIa+asVVTsMWHm5rYf4ICihUnXU8+PoomtKJypfKrJfXpVSOPA4uUa fErCgGiQUud1hIk1p/LpbfohBl6F+a8/6MTLbcUQneLQF2NVlKMlLYKZpVRTG744wVFo ew== Received: from beta.dmz-eu.st.com (beta.dmz-eu.st.com [164.129.1.35]) by mx07-00178001.pphosted.com with ESMTP id 2y1ufh6cdj-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Tue, 11 Feb 2020 16:22:15 +0100 Received: from euls16034.sgp.st.com (euls16034.sgp.st.com [10.75.44.20]) by beta.dmz-eu.st.com (STMicroelectronics) with ESMTP id BAF28100034; Tue, 11 Feb 2020 16:22:10 +0100 (CET) Received: from Webmail-eu.st.com (sfhdag6node2.st.com [10.75.127.17]) by euls16034.sgp.st.com (STMicroelectronics) with ESMTP id A50532BEC61; Tue, 11 Feb 2020 16:22:10 +0100 (CET) Received: from SFHDAG6NODE2.st.com (10.75.127.17) by SFHDAG6NODE2.st.com (10.75.127.17) with Microsoft SMTP Server (TLS) id 15.0.1347.2; Tue, 11 Feb 2020 16:22:10 +0100 Received: from SFHDAG6NODE2.st.com ([fe80::a56f:c186:bab7:13d6]) by SFHDAG6NODE2.st.com ([fe80::a56f:c186:bab7:13d6%20]) with mapi id 15.00.1347.000; Tue, 11 Feb 2020 16:22:10 +0100 From: Olivier MOYSAN To: Jonathan Cameron CC: "robh+dt@kernel.org" , "mark.rutland@arm.com" , "knaack.h@gmx.de" , "lars@metafoo.de" , "devicetree@vger.kernel.org" , "linux-iio@vger.kernel.org" , "linux-kernel@vger.kernel.org" , "pmeerw@pmeerw.net" , "linux-stm32@st-md-mailman.stormreply.com" , "linux-arm-kernel@lists.infradead.org" Subject: Re: [PATCH 2/4] iio: adc: sd modulator: add scale support Thread-Topic: [PATCH 2/4] iio: adc: sd modulator: add scale support Thread-Index: AQHV3plRO+Mdv2KS6Eiey+LjbbRUC6gWEBeA Date: Tue, 11 Feb 2020 15:22:10 +0000 Message-ID: <740eb007-3428-f336-fbe5-3713faaa6f4c@st.com> References: <20200204101008.11411-1-olivier.moysan@st.com> <20200204101008.11411-3-olivier.moysan@st.com> <20200208160327.334da020@archlinux> In-Reply-To: <20200208160327.334da020@archlinux> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: user-agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.4.1 x-ms-exchange-messagesentrepresentingtype: 1 x-ms-exchange-transport-fromentityheader: Hosted x-originating-ip: [10.75.127.46] Content-Type: text/plain; charset="utf-8" Content-ID: <8FAC793B44188043905F2B2F239FEEA3@st.com> Content-Transfer-Encoding: base64 MIME-Version: 1.0 X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:6.0.138,18.0.572 definitions=2020-02-11_04:2020-02-10,2020-02-11 signatures=0 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org SGkgSm9uYXRoYW4sDQoNCk9uIDIvOC8yMCA1OjAzIFBNLCBKb25hdGhhbiBDYW1lcm9uIHdyb3Rl Og0KPiBPbiBUdWUsIDQgRmViIDIwMjAgMTE6MTA6MDYgKzAxMDANCj4gT2xpdmllciBNb3lzYW4g PG9saXZpZXIubW95c2FuQHN0LmNvbT4gd3JvdGU6DQo+DQo+PiBBZGQgc2NhbGUgc3VwcG9ydCB0 byBzaWdtYSBkZWx0YSBtb2R1bGF0b3IuD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