Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp4774331yba; Wed, 8 May 2019 02:32:01 -0700 (PDT) X-Google-Smtp-Source: APXvYqxPohaGWbpdCkS35ugd5EJK+RqTYNWlcNmLmWZld4J7SLspyarY9CrWxu2x9k1P926FyXFs X-Received: by 2002:a17:902:15c5:: with SMTP id a5mr29268619plh.39.1557307921497; Wed, 08 May 2019 02:32:01 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1557307921; cv=none; d=google.com; s=arc-20160816; b=aeGkF5OoP3U+VaerpXfeQACmrCml4FiBYEZiZfqGgl8tcesjUXDiUqS6ASMYa6WK1D PudYXhdUmxrHQZL0qq/EeRE8kGCADQ3XvfISeBcRPvm6z902r2QUJMp06gP3cWn2mcJj +VjuMVxHVOKGF9ct5G0GCKVSPeoES2RyS8QIexuRJcZYdESna2OKGP6+R8ba23S3nmGe PdgYk1B/+wn3kF62TcDAtL+H6EQmBG9vEBAbPZRRYENKGZ4n3KCpS1+aV8DWUx/0VIS4 IZvnCO14OW4bovWO0q+z8pfpBEBkUKK+v8RxTBMS4k0trIJLg8l981wprnfOY/TZXy1P OyIQ== 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 :dkim-signature; bh=3oq0gIqipBZriyxeQpa6NYSmnWoyGHaohhxiL2LPJlo=; b=vodGpskJ88DerXZyEdFRZnhOXK+wtzO38Mqe3aNn6ubd4iHIvYfgw16o3yB1WE/rtt o9pj5aNmlFhmLnAAaSJja7sZlBU1NU6v0A6X3HbuwEVvc+kq4sEm/xMHGO+qC0GljD4l 8RmQ+ewvFt9lSlKdTk0buTgsnqZViM9PPYAqzMGArooB5kyzXkJ89BK7V3RtebEgu2Ou Tm9eNKMKGt6f3dEuE7gPuqj4BSWyUMKL3Q8T1DTQIUlAd++0TvUhqdL/VfU3SErtY8IH 92ab0PDG3kgwaYtPdxZ8PLk0ZES9DUtzu8VqA8wEaq1fDEmfw8jYqb8fchhDzmBs9MVn HIhw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@analog.onmicrosoft.com header.s=selector1-analog-com header.b=XP1A4RIZ; 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 cd7si11118687plb.96.2019.05.08.02.31.44; Wed, 08 May 2019 02:32:01 -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=selector1-analog-com header.b=XP1A4RIZ; 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 S1726444AbfEHHuQ (ORCPT + 99 others); Wed, 8 May 2019 03:50:16 -0400 Received: from mail-eopbgr700052.outbound.protection.outlook.com ([40.107.70.52]:21440 "EHLO NAM04-SN1-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1725778AbfEHHuP (ORCPT ); Wed, 8 May 2019 03:50:15 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=analog.onmicrosoft.com; s=selector1-analog-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=3oq0gIqipBZriyxeQpa6NYSmnWoyGHaohhxiL2LPJlo=; b=XP1A4RIZbLyjzrbsjxhl+XDRPDmFLVn5jxtaRg5fXAbrS0/GXoCkMyUZpMMzpfOJ+eeTGtdl5hHNTUZr/DKtcidyE6MiOPOmH6KLsXPCZqzTGBkFGotCDCAGSkIcehq7cpJ2mZ6UBL4CN1Uj0vOAojNmxEST2IRNLtHpyHBtvKk= Received: from BY5PR03CA0013.namprd03.prod.outlook.com (2603:10b6:a03:1e0::23) by BN3PR03MB2257.namprd03.prod.outlook.com (2a01:111:e400:c5f1::17) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.1856.11; Wed, 8 May 2019 07:50:10 +0000 Received: from CY1NAM02FT056.eop-nam02.prod.protection.outlook.com (2a01:111:f400:7e45::204) by BY5PR03CA0013.outlook.office365.com (2603:10b6:a03:1e0::23) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384) id 15.20.1856.11 via Frontend Transport; Wed, 8 May 2019 07:50:10 +0000 Authentication-Results: spf=pass (sender IP is 137.71.25.57) smtp.mailfrom=analog.com; linuxfoundation.org; dkim=none (message not signed) header.d=none;linuxfoundation.org; dmarc=bestguesspass action=none header.from=analog.com; Received-SPF: Pass (protection.outlook.com: domain of analog.com designates 137.71.25.57 as permitted sender) receiver=protection.outlook.com; client-ip=137.71.25.57; helo=nwd2mta2.analog.com; Received: from nwd2mta2.analog.com (137.71.25.57) by CY1NAM02FT056.mail.protection.outlook.com (10.152.74.160) with Microsoft SMTP Server (version=TLS1_0, cipher=TLS_RSA_WITH_AES_256_CBC_SHA) id 15.20.1856.11 via Frontend Transport; Wed, 8 May 2019 07:50:09 +0000 Received: from NWD2HUBCAS8.ad.analog.com (nwd2hubcas8.ad.analog.com [10.64.69.108]) by nwd2mta2.analog.com (8.13.8/8.13.8) with ESMTP id x487o8fq011479 (version=TLSv1/SSLv3 cipher=AES256-SHA bits=256 verify=OK); Wed, 8 May 2019 00:50:08 -0700 Received: from NWD2MBX7.ad.analog.com ([fe80::190e:f9c1:9a22:9663]) by NWD2HUBCAS8.ad.analog.com ([fe80::90a0:b93e:53c6:afee%12]) with mapi id 14.03.0415.000; Wed, 8 May 2019 03:50:08 -0400 From: "Ardelean, Alexandru" To: "melissa.srw@gmail.com" CC: "kernel-usp@googlegroups.com" , "lars@metafoo.de" , "ardeleanalex@gmail.com" , "knaack.h@gmx.de" , "linux-kernel@vger.kernel.org" , "jic23@kernel.org" , "21cnbao@gmail.com" <21cnbao@gmail.com>, "Hennerich, Michael" , "linux-iio@vger.kernel.org" , "devel@driverdev.osuosl.org" , "pmeerw@pmeerw.net" , "gregkh@linuxfoundation.org" , "Popa, Stefan Serban" Subject: Re: [PATCH 2/4] staging: iio: ad7150: use FIELD_GET and GENMASK Thread-Topic: [PATCH 2/4] staging: iio: ad7150: use FIELD_GET and GENMASK Thread-Index: AQHVAmZEuvjZKalljUODTfy22uS+XaZd7oYAgAJ7MACAALnZAA== Date: Wed, 8 May 2019 07:50:07 +0000 Message-ID: <1220395cfe158e2116a1f2826ef6ce96074463b4.camel@analog.com> References: <7f7d36348bca1de25bd70350b7c665be6441250f.1556919363.git.melissa.srw@gmail.com> <179d019c34cc69e50f19499a6089ac94740b59f5.camel@analog.com> <20190507204456.wwjjkeuzq44jy7w7@smtp.gmail.com> In-Reply-To: <20190507204456.wwjjkeuzq44jy7w7@smtp.gmail.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [10.50.1.244] x-adiroutedonprem: True Content-Type: text/plain; charset="utf-8" Content-ID: <7FA9E8C580B32C428CCE2C9F93B26605@analog.com> Content-Transfer-Encoding: base64 MIME-Version: 1.0 X-EOPAttributedMessage: 0 X-MS-Office365-Filtering-HT: Tenant X-Forefront-Antispam-Report: CIP:137.71.25.57;IPV:NLI;CTRY:US;EFV:NLI;SFV:NSPM;SFS:(10009020)(346002)(376002)(136003)(396003)(39860400002)(2980300002)(189003)(199004)(356004)(4326008)(107886003)(102836004)(446003)(53546011)(436003)(426003)(2351001)(70206006)(478600001)(11346002)(7636002)(7736002)(8936002)(36756003)(23676004)(76176011)(7696005)(2486003)(8676002)(6246003)(246002)(54906003)(118296001)(2501003)(316002)(5640700003)(5660300002)(1361003)(106002)(186003)(26005)(229853002)(7416002)(6116002)(3846002)(336012)(70586007)(47776003)(14444005)(6916009)(14454004)(50466002)(486006)(476003)(126002)(305945005)(2616005)(2906002)(86362001);DIR:OUT;SFP:1101;SCL:1;SRVR:BN3PR03MB2257;H:nwd2mta2.analog.com;FPR:;SPF:Pass;LANG:en;PTR:nwd2mail11.analog.com;MX:1;A:1; X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: a2f487d0-abb9-47c0-cbaa-08d6d389cbc9 X-Microsoft-Antispam: BCL:0;PCL:0;RULEID:(2390118)(7020095)(4652040)(8989299)(4534185)(4627221)(201703031133081)(201702281549075)(8990200)(5600141)(711020)(4605104)(4709054)(2017052603328)(7193020);SRVR:BN3PR03MB2257; X-MS-TrafficTypeDiagnostic: BN3PR03MB2257: X-Microsoft-Antispam-PRVS: X-MS-Oob-TLC-OOBClassifiers: OLM:6790; X-Forefront-PRVS: 0031A0FFAF X-MS-Exchange-SenderADCheck: 1 X-Microsoft-Antispam-Message-Info: 9S1Sp473BbNxU36JLnFOdZijNZ/dlQkbaJIFPnCx+1V46yoLCZEr9Jb+DmHSOXfkPiEF9+OZSz08tbFw90E8o8MALbl4M2c++/mrbODEDFNob2e4VyVg55rmkzknSKd+8823rOoHCNz/5yE0FS9SA/3W6WnQOpTyW4y41jSLuvb/PcXISgFqxLNPYrQITz2bszV1DBi1X/QmyaOeR4brwWdrC94iF0zptwAc6tncwZquTVdbZI72UJafNPkIxmkFy1tbTYsYTHohLwz0RDcxoPtrqJOxZFyTeUhloSrTTIl04JZdDlxL+mRTsxc89bAWleYMOfPPh17X70jYqZv9FY7v3Up/UUDmfU6OCtI6hkJVJ0sT5YLPILNzdwnHEX6O+DA8l6jwc8w/56yJCGZKoI9fouiYdB0EsLHA0jz45Rk= X-OriginatorOrg: analog.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 08 May 2019 07:50:09.5283 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: a2f487d0-abb9-47c0-cbaa-08d6d389cbc9 X-MS-Exchange-CrossTenant-Id: eaa689b4-8f87-40e0-9c6f-7228de4d754a X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=eaa689b4-8f87-40e0-9c6f-7228de4d754a;Ip=[137.71.25.57];Helo=[nwd2mta2.analog.com] X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: BN3PR03MB2257 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org T24gVHVlLCAyMDE5LTA1LTA3IGF0IDE3OjQ0IC0wMzAwLCBNZWxpc3NhIFdlbiB3cm90ZToNCj4g W0V4dGVybmFsXQ0KPiANCj4gDQo+IE9uIDA1LzA2LCBBcmRlbGVhbiwgQWxleGFuZHJ1IHdyb3Rl Og0KPiA+IE9uIFNhdCwgMjAxOS0wNS0wNCBhdCAxMzo0MyArMDMwMCwgQWxleGFuZHJ1IEFyZGVs ZWFuIHdyb3RlOg0KPiA+ID4gW0V4dGVybmFsXQ0KPiA+ID4gDQo+ID4gPiANCj4gPiA+IE9uIFNh dCwgTWF5IDQsIDIwMTkgYXQgMToyNSBBTSBNZWxpc3NhIFdlbiA8bWVsaXNzYS5zcndAZ21haWwu Y29tPg0KPiA+ID4gd3JvdGU6DQo+ID4gPiA+IA0KPiA+ID4gPiBVc2UgdGhlIGJpdGZpZWxkIG1h Y3JvIEZJRUxEX0dFVCwgYW5kIEdFTk1BU0sgdG8gZG8gdGhlIHNoaWZ0IGFuZA0KPiA+ID4gPiBt YXNrDQo+ID4gPiA+IGluDQo+ID4gPiA+IG9uZSBnby4gVGhpcyBtYWtlcyB0aGUgY29kZSBtb3Jl IHJlYWRhYmxlIHRoYW4gZXhwbGljaXQgbWFza2luZw0KPiA+ID4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