Received: by 2002:a25:1506:0:0:0:0:0 with SMTP id 6csp1790361ybv; Fri, 21 Feb 2020 03:33:10 -0800 (PST) X-Google-Smtp-Source: APXvYqwiwW4kf5DtArnNrVlHDjwkjn/LHv1t/2WcybQdAiNIbGj+fx1Vtnb1LtqziwM6vYGeSgdf X-Received: by 2002:a05:6808:aba:: with SMTP id r26mr1567475oij.4.1582284790525; Fri, 21 Feb 2020 03:33:10 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1582284790; cv=none; d=google.com; s=arc-20160816; b=jUzPmIzTssetUcRT1eW0YzeUPuUYigrGQ7/I9dWQEKR+F4+qiRVZ/3VRDlD8QRfl8b QL5rSOgOAyGNNQ1epqe+H/XVytQIp0zrpGrJntwcsPBpNhePeOA6U/fFa+fmOSOjsDDi 5arzRvYuRrngvyluzrnd5MZrazsDdu9x09FnM63wr7HuSf0/eShfoblek5Qm2xelPzWO RUtknhEYqtpIylLNN65/VqyytaMsHssBZTAMVJ6sW+728kLhLPbnfSGWI8mFlOU8Sjhf Rjnn3CgIbjRTJZZBirFKa0rQZ9Pf+CZ48W20+l4o2dd3bU5Lb+t/pZBTkXKPJQPyDXzr BZwA== 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:content-language:accept-language:in-reply-to:references :message-id:date:thread-index:thread-topic:subject:cc:to:from; bh=A3Q8vYA9O6udqCbXbek3FE8wVUwfd4Ju2EC6qzigmp8=; b=zqnDMiQjiAKsg0d445cs852bHfzDmptnCiXT5l0nU3vYQpcW9cnebOmDoTzi+KdKYV prQOU7FDH1pgylWzs583Or5W4AUVVnyKWFDDDDtENJs4Ygqq2MO+nWqSX7MSSoW1GsXY qQZCpvB1QStQmJlbD4EjO4g+6d98DMU9lNKv0FaXmocQZ62PZXRb9au4OZNgJlYPMMuB sDaCJ8PdEwwCHe7HluT3yE0cGoeqAOAGgbHoR39wwCfZnF1+ZF0Mw/Gm4rLJ6y7/cgaH cxx/4UjTyelJUGO82QCwtNolI7vaGMZY1EE9K0rydFPqFKxZIH4UeYA/RBWMUzhQ+ADW Lkfg== 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 2si618028ois.221.2020.02.21.03.32.57; Fri, 21 Feb 2020 03:33:10 -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 S1727720AbgBULbn (ORCPT + 99 others); Fri, 21 Feb 2020 06:31:43 -0500 Received: from mx0a-00128a01.pphosted.com ([148.163.135.77]:42582 "EHLO mx0a-00128a01.pphosted.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726976AbgBULbm (ORCPT ); Fri, 21 Feb 2020 06:31:42 -0500 Received: from pps.filterd (m0167089.ppops.net [127.0.0.1]) by mx0a-00128a01.pphosted.com (8.16.0.42/8.16.0.42) with SMTP id 01LBMI4E011673; Fri, 21 Feb 2020 06:31:41 -0500 Received: from nwd2mta3.analog.com ([137.71.173.56]) by mx0a-00128a01.pphosted.com with ESMTP id 2y8ucu7081-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Fri, 21 Feb 2020 06:31:41 -0500 Received: from SCSQMBX11.ad.analog.com (scsqmbx11.ad.analog.com [10.77.17.10]) by nwd2mta3.analog.com (8.14.7/8.14.7) with ESMTP id 01LBVdg7027649 (version=TLSv1/SSLv3 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128 verify=FAIL); Fri, 21 Feb 2020 06:31:40 -0500 Received: from SCSQMBX11.ad.analog.com (10.77.17.10) by SCSQMBX11.ad.analog.com (10.77.17.10) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.1779.2; Fri, 21 Feb 2020 03:31:38 -0800 Received: from SCSQMBX11.ad.analog.com ([fe80::85c7:ecf4:1eb:a06a]) by SCSQMBX11.ad.analog.com ([fe80::85c7:ecf4:1eb:a06a%11]) with mapi id 15.01.1779.002; Fri, 21 Feb 2020 03:31:38 -0800 From: "Tachici, Alexandru" To: "linux-kernel@vger.kernel.org" , "linux-iio@vger.kernel.org" CC: "jic23@kernel.org" Subject: Re: [PATCH] iio: industrialio-core: Fix debugfs read Thread-Topic: [PATCH] iio: industrialio-core: Fix debugfs read Thread-Index: AQHV6BBQxR5yYELnZUiE4S0ivwpcOKgmCt4A Date: Fri, 21 Feb 2020 11:31:38 +0000 Message-ID: References: <20200220170726.9580-1-alexandru.tachici@analog.com> In-Reply-To: <20200220170726.9580-1-alexandru.tachici@analog.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [10.48.65.175] x-adiroutedonprem: True Content-Type: text/plain; charset="utf-8" Content-ID: <8B74E03CB7FF6743BBA207F240F993DA@analog.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-21_03:2020-02-19,2020-02-21 signatures=0 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 bulkscore=0 spamscore=0 suspectscore=0 mlxscore=0 clxscore=1015 phishscore=0 priorityscore=1501 mlxlogscore=999 lowpriorityscore=0 adultscore=0 malwarescore=0 impostorscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2001150001 definitions=main-2002210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