Received: by 2002:a25:d783:0:0:0:0:0 with SMTP id o125csp365507ybg; Thu, 19 Mar 2020 01:00:36 -0700 (PDT) X-Google-Smtp-Source: ADFU+vt2TKPiSQa4UxP1hajIVOxaCy3UeGECrlrEguBljPwEfciDy0kyXj3uUOdIm1m+l9t3uFC3 X-Received: by 2002:a9d:1708:: with SMTP id i8mr1293396ota.250.1584604836223; Thu, 19 Mar 2020 01:00:36 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1584604836; cv=pass; d=google.com; s=arc-20160816; b=nz2czhgi1XuVuMVUmKQEedjmWd7+cAvuiiS5ra8MPHw/ocYzzZ2UeMaYW1GJF0eo57 /FWnjGgPGmTkhyEv4M0YQU9PxCoElBL7nhphzHfWC/hOHFQ1OHFY+Zt1c8eRqdhiNNFI 5Q7JQvVeorqz+s5cAJyVf0EK5Wo9BFLhkrg2TVFlGDkrasCBppizDImWZ0X0PML8ffD4 El9kGTYcJ/ivOSwFuHHyWL5iZ3/IjKrPf20rbl2q69Ac3h4eOjB0HUzTLrXKJ0PPYZu6 WNsPeZUW5973qfa3H8NTNEegSrEgIT4z5C2Dtv0LOHgWc0UpsAzXavO02GcNzCNk8aiW /S9Q== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:content-transfer-encoding :content-id:content-language:accept-language:in-reply-to:references :message-id:date:thread-index:thread-topic:subject:cc:to:from :dkim-signature; bh=dIk1sullkjZEXeaRr0ds+8ztGg6Hh3jbDoCxpQpH2NU=; b=A3JHrIT7GDO7RL4Ko/5iwz/HYzBVvaHV904c3WMrLxhwbcx2o3X03qe2pvYrZVEuIH WLRla6IyWiiZxp35werWUi/VnnIAHNJxHZC61dxmSmTH/15yDUNuB5vbWEZtgTZLscQi WON3KTJoWkNPkC7QaMVh2UAhlBpvydTeXX9CzesoObI4h1YWlEA6IhjIWfrJyWPs2uuH zDWlP7MkE/jQ63yGpRtFYHSLuEx5JjV4nM+N2pBxktK9QUsecsyoCR4lTIyF3EBzuwQe qYq13pkCCMMmhNxI9tFXEesGZpO+vvC69d80xUHFQVDHoXHep573o2evJokKCYhhynZn mZlA== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@analog.onmicrosoft.com header.s=selector2-analog-onmicrosoft-com header.b=BrVfrXjB; arc=pass (i=1 spf=pass spfdomain=analog.com dkim=pass dkdomain=analog.com dmarc=pass fromdomain=analog.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 v18si839844oth.1.2020.03.19.01.00.23; Thu, 19 Mar 2020 01:00:36 -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=@analog.onmicrosoft.com header.s=selector2-analog-onmicrosoft-com header.b=BrVfrXjB; arc=pass (i=1 spf=pass spfdomain=analog.com dkim=pass dkdomain=analog.com dmarc=pass fromdomain=analog.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 S1726936AbgCSH6j (ORCPT + 99 others); Thu, 19 Mar 2020 03:58:39 -0400 Received: from mx0a-00128a01.pphosted.com ([148.163.135.77]:41700 "EHLO mx0a-00128a01.pphosted.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726188AbgCSH6j (ORCPT ); Thu, 19 Mar 2020 03:58:39 -0400 Received: from pps.filterd (m0167088.ppops.net [127.0.0.1]) by mx0a-00128a01.pphosted.com (8.16.0.42/8.16.0.42) with SMTP id 02J7sYma004612; Thu, 19 Mar 2020 03:58:24 -0400 Received: from nam12-mw2-obe.outbound.protection.outlook.com (mail-mw2nam12lp2048.outbound.protection.outlook.com [104.47.66.48]) by mx0a-00128a01.pphosted.com with ESMTP id 2yu9jawhur-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Thu, 19 Mar 2020 03:58:24 -0400 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=i7PsLqatcaDOXczflUZKDKF+hFo8OUJYAOGg/F77hYaOG9AlIM2D7//tQuQ3iuIHxtXSEftgyYxTJs+mzrnAdioxF36HF4unAm9As+FsEch7GIvDdzrCkJPZOH3QT7vCRd/UM2cEaJ7GPJox7z5BO3ojBzv1cixjIw39+2Hi3O1MbvN8S0RcUVaOc0P1ps9jvmUUPH5qsOANcCPIT44vtJA63t9PBtx4liGgq4xW7UvuSXVdNbkkOMXONEGLtcfP0zzPx3/mCBxl4ak6rFyN+sEAkwtT9GzM6YoZBNRJEFybva7MkMOn3Om5uqaEJ4C0vC7UJq1OTnueRMBuQ9yPFA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=dIk1sullkjZEXeaRr0ds+8ztGg6Hh3jbDoCxpQpH2NU=; b=ISfcugNP7/D8+w1N6c84kPtAnaq7VNGeXtfG4oU3uxjplRm7plGQJknl0kJCuh8evpSoENFxnyL5DC3OUmUK7vBlGy0DBiO0kn1KCZFFflxrCJ/yxXPRTiwJFWZxTgCBvNHJPNC088Bk46aesV77L614m6B41gH/bNUHIrFfJGhn8mp9mojAmu4j+xFByyjHD8jo5GkVHlA68ZlxCiCkFVrKvqsTV6iAH6LcV95xliGqH67GsU+1CdgHB+ZH20rzq+l4F7P10+maxTWx9pPUTyEMoaug7bipZFUO7VBOeV454V7GTQyy7mI8VRNtrGL8+POUwTq4L+8/bYYFkd+fag== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=analog.com; dmarc=pass action=none header.from=analog.com; dkim=pass header.d=analog.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=analog.onmicrosoft.com; s=selector2-analog-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=dIk1sullkjZEXeaRr0ds+8ztGg6Hh3jbDoCxpQpH2NU=; b=BrVfrXjBDSuXKvDL4PXsT4Bv1PGJLf61oallOS+Um23WytVj3tAedIHW8K5ehhcUzr2AKKU+q/SW5UVI7q8ndyHhUvEXZX/BCuR0pMUO6ACIxkbX6vmatkzfL8uh/2YopTA98PfgIzZPwaYOvoS1BUGYqNxc9l4m4a1dbhFbdbU= Received: from DM6PR03MB4411.namprd03.prod.outlook.com (2603:10b6:5:10f::14) by DM6PR03MB3708.namprd03.prod.outlook.com (2603:10b6:5:b3::29) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.2814.16; Thu, 19 Mar 2020 07:58:23 +0000 Received: from DM6PR03MB4411.namprd03.prod.outlook.com ([fe80::c47f:ceee:cfda:6a7f]) by DM6PR03MB4411.namprd03.prod.outlook.com ([fe80::c47f:ceee:cfda:6a7f%3]) with mapi id 15.20.2814.025; Thu, 19 Mar 2020 07:58:23 +0000 From: "Ardelean, Alexandru" To: "ardeleanalex@gmail.com" , "lars@metafoo.de" , "linux-iio@vger.kernel.org" , "linux-kernel@vger.kernel.org" CC: "renatogeh@gmail.com" , "Hennerich, Michael" , "jic23@kernel.org" , "Caprioru, Mircea" Subject: Re: [PATCH 5/5] iio: adc: ad7793: use read_avail iio hook for scale available Thread-Topic: [PATCH 5/5] iio: adc: ad7793: use read_avail iio hook for scale available Thread-Index: AQHV/SppVVVrWL45DUGrOveHnZbXKqhOdEoAgAEaowA= Date: Thu, 19 Mar 2020 07:58:22 +0000 Message-ID: References: <20200318134042.30133-1-alexandru.ardelean@analog.com> <20200318134042.30133-6-alexandru.ardelean@analog.com> In-Reply-To: Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [188.26.73.247] x-ms-publictraffictype: Email x-ms-office365-filtering-ht: Tenant x-ms-office365-filtering-correlation-id: c8f04e2d-3c7d-4480-42b2-08d7cbdb4c2e x-ms-traffictypediagnostic: DM6PR03MB3708: x-ms-exchange-transport-forked: True x-microsoft-antispam-prvs: x-ms-oob-tlc-oobclassifiers: OLM:10000; x-forefront-prvs: 0347410860 x-forefront-antispam-report: SFV:NSPM;SFS:(10009020)(366004)(396003)(39860400002)(136003)(346002)(376002)(199004)(66556008)(6506007)(6512007)(91956017)(76116006)(478600001)(2906002)(107886003)(36756003)(66476007)(71200400001)(4326008)(5660300002)(316002)(186003)(2616005)(8936002)(26005)(6486002)(66446008)(64756008)(8676002)(53546011)(81156014)(81166006)(110136005)(66946007)(54906003)(86362001);DIR:OUT;SFP:1101;SCL:1;SRVR:DM6PR03MB3708;H:DM6PR03MB4411.namprd03.prod.outlook.com;FPR:;SPF:None;LANG:en;PTR:InfoNoRecords;A:1; received-spf: None (protection.outlook.com: analog.com does not designate permitted sender hosts) x-ms-exchange-senderadcheck: 1 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: BPzNY4PlFLXufGcY93S1rQeTpygeE3r9zUws7FOnWlwnW+q7uM+fkNYhhxU05WqP64VX7vKzoI3pL6fep/YxSsntyQ8/wSuATDYys0/U1Lx0+/+wCv512NzHXga+LB4GD0KIEo1VjEk1K985rqr/3utElbJaV20LO+m+ZaxuLV94YzwBfwK7fQuAp0AW8D+Crc7zG9fptAX+pQCxzlYafFX+uyDcs1NqhPTKvmazO7zYh76B4DSdR9WhRQ7f3Um8/ODs9DxFioflR+Bg4Nxj2b90GG5qwXiN+SmFAD9Vy82dPCpEYcFU+Y6u0hyTT6okxlPwoFJjQq9Qk4hsXKvK1MFkngLL/pxFceqQmC8lMF2phikrPwQsCGKHoCQ/OYKcMyNWQqwbX+6uq3pesoyhj6596y44B59PHG+db6E3kaJYz2iOyBG5XgxxY4LXZHDo x-ms-exchange-antispam-messagedata: vDxBPZPzZTqIa3iopnSgNDPj/RnDs1urG4URmklXO4p8pMQpepFr1ge0hdm5p3QDjObD1CiY0rho6wQgFADcp+cXA5y5qg8qSF7QX1Gs8B/2MZJGUauZuLaTv0e8B6XXj4myU8anHTEUEH3WTcMZ5g== Content-Type: text/plain; charset="utf-8" Content-ID: <11730AA20BF13849A771C9BC32B0544B@namprd03.prod.outlook.com> Content-Transfer-Encoding: base64 MIME-Version: 1.0 X-OriginatorOrg: analog.com X-MS-Exchange-CrossTenant-Network-Message-Id: c8f04e2d-3c7d-4480-42b2-08d7cbdb4c2e X-MS-Exchange-CrossTenant-originalarrivaltime: 19 Mar 2020 07:58:22.8623 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: eaa689b4-8f87-40e0-9c6f-7228de4d754a X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-userprincipalname: HzugVRvO6r6LCoiClRs4xZV6y80u47jHaBpj0r5JR5t1eV3YNaJ6IZW3bzpVCyYddhB8ZkqorzPvxZv9IGe+YKtfABa6p1gVtbr4B+t5q0U= X-MS-Exchange-Transport-CrossTenantHeadersStamped: DM6PR03MB3708 X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:6.0.138,18.0.645 definitions=2020-03-19_01:2020-03-18,2020-03-18 signatures=0 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 mlxlogscore=999 spamscore=0 bulkscore=0 impostorscore=0 clxscore=1011 suspectscore=0 phishscore=0 malwarescore=0 lowpriorityscore=0 adultscore=0 mlxscore=0 priorityscore=1501 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2003020000 definitions=main-2003190036 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID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