Received: by 2002:a05:7412:2a8c:b0:e2:908c:2ebd with SMTP id u12csp3262551rdh; Thu, 28 Sep 2023 07:10:33 -0700 (PDT) X-Google-Smtp-Source: AGHT+IGJYu+gdjpaglcHRroTiONHO3WCCe0P/uud/QVAFbWxRCcFnJNvwb6jBNTiN27UOH7LqbO2 X-Received: by 2002:a05:6a00:1a08:b0:68e:3838:a2dc with SMTP id g8-20020a056a001a0800b0068e3838a2dcmr1426797pfv.24.1695910233158; Thu, 28 Sep 2023 07:10:33 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1695910233; cv=none; d=google.com; s=arc-20160816; b=j3GsEaTL3PYbM+owujsabEudVPPvV8Uwz0YLWNCWCXPZLEdZp3RfzzWlowanwwweiA kCgj16DHNG1aUl2udsx0FYVSLJm8Fuuzu7+V8TB7MzaFriCoAKGbet0XDPLvu25IpZNa nl9xQB0heYFEGROSu+IUeaSKGlw2SeuiPZY9cg2Cbbi04g0FuqVOt95pLoqtNzIVVZpt PqgxwsPf+k/5faR6cSdeJdXQfPSxgIskgstwgko/lBjoDrJcooDVSa27ycRC7ipiiUoP RHHIslggjCUOCrmsMLx8HtcWcEkXVmju7Fzh/C/KvlctqzfAMg8o3IbYduUaSE972yof Evrw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:to:content-transfer-encoding:in-reply-to:from :references:cc:content-language:subject:user-agent:mime-version:date :message-id:dkim-signature; bh=ROU8+ExR4QbhUibvmX7F0zp678ehgrkdHVtekRiu3/c=; fh=zDlc+g5URrTyjZY6SXKwARcKFf9vMzYqeY4ZytgxcBw=; b=dZEatPlYI1pkQiOOsE2wmuGjTC1vLU6DPZsPsqoqEIkXFtrGEuHVqSzsTFtkSSI9gN zdNH3yyasc2jqOzxmpn01tSYlbqkEjHPWb4bwW8aedy1LnOnNYH4E3qGxADpKbKQo0zD A5ODR20cp0hNi1gSfUyhjL7VeSskFPoGNtAs5yM/dm+knUhfGLgCGu6jmvUSYyvMff3W DhBoBJtv3z1BNLoNCSi18PX3yeT5yhQIwGFHfRbqyErlySDrz7fqZURSMYrAx4LSoRuQ RbmnjkMcbTWBVZkby/Ce9YsqSCb0CNejvHLz4yxM0HHPnmXLyna8qnifO+Vb5OUrMjD3 o4RA== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@gmail.com header.s=20230601 header.b=K+gB6NHK; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:7 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from snail.vger.email (snail.vger.email. [2620:137:e000::3:7]) by mx.google.com with ESMTPS id e131-20020a636989000000b0056a9b0297cesi18380968pgc.150.2023.09.28.07.10.31 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 28 Sep 2023 07:10:33 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:7 as permitted sender) client-ip=2620:137:e000::3:7; Authentication-Results: mx.google.com; dkim=fail header.i=@gmail.com header.s=20230601 header.b=K+gB6NHK; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:7 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by snail.vger.email (Postfix) with ESMTP id 8198682ECB21; Thu, 28 Sep 2023 06:29:16 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at snail.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231871AbjI1N3O (ORCPT + 99 others); Thu, 28 Sep 2023 09:29:14 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39536 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231788AbjI1N3M (ORCPT ); Thu, 28 Sep 2023 09:29:12 -0400 Received: from mail-ej1-x632.google.com (mail-ej1-x632.google.com [IPv6:2a00:1450:4864:20::632]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 82D59198; Thu, 28 Sep 2023 06:29:08 -0700 (PDT) Received: by mail-ej1-x632.google.com with SMTP id a640c23a62f3a-9ae7383b7ecso2561657266b.0; Thu, 28 Sep 2023 06:29:08 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1695907747; x=1696512547; darn=vger.kernel.org; h=content-transfer-encoding:in-reply-to:from:references:cc :content-language:subject:user-agent:mime-version:date:message-id :from:to:cc:subject:date:message-id:reply-to; bh=ROU8+ExR4QbhUibvmX7F0zp678ehgrkdHVtekRiu3/c=; b=K+gB6NHK7HDUKbX7ZlC0/7sh79v6fhP3ca/DGRnsUPDrRbbG491YhIrA7rwFS7eg+m mAsWOvOSY6d7NdnIJucOornadTX2SYeslZsX/j+4q6G7qz2MMbyloDeOOoZkq1cf+i3M owr+4P1xV9cO97aG+2WT7KwpTadmgM+pQUc1JY3HQesK1Sju/yKA1tfIkPsuAn1ZjkLi srCyWv/R/ZS/7V1ZFSPMi6KrxHRbmJBxA7U35HhDXkp5BbgAgepT+aQ01RkKEK5OOpia 4k7IxJDY/hOUyACNQKI5pa4jlOUJj+rxTWcBQDAsJO6kE6aKoZAt8afli6Qh/quS6dIN O/iQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1695907747; x=1696512547; h=content-transfer-encoding:in-reply-to:from:references:cc :content-language:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=ROU8+ExR4QbhUibvmX7F0zp678ehgrkdHVtekRiu3/c=; b=Ca6H+ZjaA0RCiVX5PvCmbRQPcoPFogyFbA84HTANZBERyI4tkH00k7mmE/6Z+dKsNO FCtsOCibf+bRwYtILHXjrYbNZraNuJQjV2K4TRntqQ2mp09EVCHQPA27sy0HLO9Cn1IE NrkeRKBsd3y74qjbSQV6ra03VgFgKbhb9unOikyNXOsoF3Gts/snYa6eKFtuLsyzirGV /z7uLhSpzM1jZ9v0lEFAnDbwM/v2g61Mhbq0AUA1HXx7SQ/T1i3WpFkjwzOc0APwvH+6 lhezhEmxM5T9dbQXURDt259IUoDO+0l1ph3pf7xEdawEVq0MYywH0xnhm22tBJ3ZSSeB D8RQ== X-Gm-Message-State: AOJu0YwQJvqZO1XjPIIxcmnp3u5rMIJPAWoWVz41LdAj+CQIYdCvpBtR q3kZ0xiVpYjC3Le419k7Dds= X-Received: by 2002:a17:906:5a46:b0:9ae:5513:e475 with SMTP id my6-20020a1709065a4600b009ae5513e475mr1377678ejc.9.1695907746714; Thu, 28 Sep 2023 06:29:06 -0700 (PDT) Received: from [10.76.84.110] ([5.2.194.157]) by smtp.gmail.com with ESMTPSA id gy18-20020a170906f25200b009a9fbeb15f5sm10868883ejb.46.2023.09.28.06.29.04 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 28 Sep 2023 06:29:05 -0700 (PDT) Message-ID: <823f03d7-2af4-f4f6-4e74-9beb299ab0e8@gmail.com> Date: Thu, 28 Sep 2023 16:29:03 +0300 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.15.1 Subject: Re: [PATCH v2 2/2] iio: adc: ad7173: add AD7173 driver Content-Language: en-US Cc: linus.walleij@linaro.org, brgl@bgdev.pl, andy@kernel.org, linux-gpio@vger.kernel.org, Lars-Peter Clausen , Jonathan Cameron , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Michael Walle , Andy Shevchenko , Arnd Bergmann , ChiaEn Wu , Niklas Schnelle , =?UTF-8?Q?Leonard_G=c3=b6hrs?= , Mike Looijmans , Haibo Chen , Hugo Villeneuve , Ceclan Dumitru , linux-iio@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org References: <20230928125443.615006-1-mitrutzceclan@gmail.com> <20230928125443.615006-2-mitrutzceclan@gmail.com> From: Ceclan Dumitru-Ioan In-Reply-To: <20230928125443.615006-2-mitrutzceclan@gmail.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-2.5 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM,MISSING_HEADERS, NICE_REPLY_A,RCVD_IN_DNSWL_BLOCKED,SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net To: unlisted-recipients:; (no To-header on input) Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (snail.vger.email [0.0.0.0]); Thu, 28 Sep 2023 06:29:16 -0700 (PDT) On 9/28/23 15:54, Dumitru Ceclan wrote: > The AD7173 family offer a complete integrated Sigma-Delta ADC solution > which can be used in high precision, low noise single channel > applications or higher speed multiplexed applications. The Sigma-Delta > ADC is intended primarily for measurement of signals close to DC but also > delivers outstanding performance with input bandwidths out to ~10kHz. > > Signed-off-by: Dumitru Ceclan Forgot changelog V1 -> V2 - keep original out-of-tree AD7173 naming - remove gpio_cleanup - handle 32bit realbits offset case - use iio_device_claim_direct_mode, drop own mutex - use dev_err_probe - cleanup headers include - use GENMASK() and FIELD_PREP() - use HZ_PER_MHZ - change #ifdef GPIOLIB to if( IS_ENABLED(CONFIG_GPIOLIB)) - use gpio-regmap - change boolean flag in info struct to number of gpios - NIH memset64 - use struct pointers for config comparison - use spi_write_then_read for ADC reset - use stack allocated buffer for reset - define constant for reset sequence size - use kcalloc instead of kzalloc - change of naming to fw of dt parse function - change de-referencing chain to local variable dev in multiple locations - drop write_raw_get_fmt - add driver private data to spi_device_id table - use fsleep() instead of usleep_range() - put config value inline - align read/write raw arguments - remove zeroed values from channel templates structure - define constants for temperature sensor positive and negative inputs - always enable temperature channel - configure spi clock phase and polarity from driver misc changes (test bit, return disable all, indentation fix, change statements to single line)