Received: by 2002:a25:1104:0:0:0:0:0 with SMTP id 4csp212743ybr; Fri, 22 May 2020 05:01:21 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwaVtoLnuFmUd5+qYW1d1ubqbNoXELpFu0P52M06DjZ6VHipV9sRb7mjlRPW5P1GAWeaFye X-Received: by 2002:a17:906:8608:: with SMTP id o8mr7439170ejx.274.1590148881023; Fri, 22 May 2020 05:01:21 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1590148881; cv=none; d=google.com; s=arc-20160816; b=xT+JiaTvN8jZePVpxyfdwIscqjd6ifpSgWoKtHTlIOpudqMCUZRtVedgPiCxWZzodx fDk/+U0H37dubhe5sIk4F2Qw44rm18cHuv7k+40khxjDUVCMFfVD7jOPo0I/eD0fj9pS wKIJbSdd4Ek/NOv6Gi6ybtWBwxbv21+PgHhHE5PdYPJjPREVdym8VNfPBGvqJRQjD+tK axwuCS5+KFK2qsjGMIG5C2IPQy7NajjRj9Lgt1blgmK49d1AToARhARluKMRLEuQ4Xtt AC7jm620oQ/eRDFARpUaxN3d8gCA+XFUGkzkuIlvm5kcAeasltcjbYbgMOMbEsbplcnv 9ZuQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-language :content-transfer-encoding:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject:dmarc-filter :dkim-signature; bh=qGzkd9q/kRUvHdHEx2YNsWgNzPbVwMgN6G1JnaxM+Dw=; b=cLtqDKUz2rB+HXYiSKX9b557AsAk+w/O772/rn+XLdOPaPEIN6UPjLAOcvKYs6oSft W4EFuQKoIVMaGTxBCi9GU/HXkV9Aw0Nn0FNUVkzSyqOJEHC6o+a8W7B/H0Mk41givMG9 SyF3qV+9tfShLUNToYh9SoYb2Hd1ejZERbgfH8hiRQ5YJRHfwlhe9lpWIOcYLrmN2bbn 6PjpC+eoU5dU3eS21YfamWSFo2MjSLPi/xaMkUNy+z/8TXLS5MYlHm+O4PxDYJG+fngz IYpUb34tVvylpcfCEdiQH/IFJ8lit3oXtxKfWT5ZCCQMfVrT23ZiOS6/VA71y+mbm6sB +qAw== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@mg.codeaurora.org header.s=smtp header.b=fs1eckSU; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id a13si4551614edr.32.2020.05.22.05.00.55; Fri, 22 May 2020 05:01:21 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=fail header.i=@mg.codeaurora.org header.s=smtp header.b=fs1eckSU; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729344AbgEVL7Z (ORCPT + 99 others); Fri, 22 May 2020 07:59:25 -0400 Received: from mail26.static.mailgun.info ([104.130.122.26]:15525 "EHLO mail26.static.mailgun.info" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728853AbgEVL7Y (ORCPT ); Fri, 22 May 2020 07:59:24 -0400 DKIM-Signature: a=rsa-sha256; v=1; c=relaxed/relaxed; d=mg.codeaurora.org; q=dns/txt; s=smtp; t=1590148764; h=Content-Transfer-Encoding: Content-Type: In-Reply-To: MIME-Version: Date: Message-ID: From: References: Cc: To: Subject: Sender; bh=qGzkd9q/kRUvHdHEx2YNsWgNzPbVwMgN6G1JnaxM+Dw=; b=fs1eckSUDYaigj5WNLtbj3j1wZsEXjgqvq+MPjnNEXGb78PTLDg/bN1EVJTVVH8FjO+7SU/G BlFTvf8b4PstDo1GsiuyyHId7BIz17xDpboD6mDEDZdMgOWWnx3ue1F3/T29KXisG0plCoqb pmzdG7pfscdlJljxNPyg3RaBEJY= X-Mailgun-Sending-Ip: 104.130.122.26 X-Mailgun-Sid: WyI0MWYwYSIsICJsaW51eC1rZXJuZWxAdmdlci5rZXJuZWwub3JnIiwgImJlOWU0YSJd Received: from smtp.codeaurora.org (ec2-35-166-182-171.us-west-2.compute.amazonaws.com [35.166.182.171]) by smtp-out-n02.prod.us-east-1.postgun.com with SMTP id 5ec7be9b40528fe39497defe (version=TLS1.2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256); Fri, 22 May 2020 11:59:23 GMT Received: by smtp.codeaurora.org (Postfix, from userid 1001) id 2D845C433CB; Fri, 22 May 2020 11:59:23 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-caf-mail-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-1.0 required=2.0 tests=ALL_TRUSTED,SPF_NONE, URIBL_BLOCKED autolearn=unavailable autolearn_force=no version=3.4.0 Received: from [192.168.1.102] (unknown [157.44.159.251]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) (Authenticated sender: jprakash) by smtp.codeaurora.org (Postfix) with ESMTPSA id 3D0DCC433C8; Fri, 22 May 2020 11:59:15 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 smtp.codeaurora.org 3D0DCC433C8 Authentication-Results: aws-us-west-2-caf-mail-1.web.codeaurora.org; dmarc=none (p=none dis=none) header.from=codeaurora.org Authentication-Results: aws-us-west-2-caf-mail-1.web.codeaurora.org; spf=none smtp.mailfrom=jprakash@codeaurora.org Subject: Re: [PATCH V4 5/5] iio: adc: Clean up ADC code common to PMIC5 and PMIC7 To: Andy Shevchenko Cc: agross@kernel.org, Bjorn Andersson , devicetree , Linux Kernel Mailing List , Matthias Kaehlcke , Linus Walleij , Jonathan Cameron , Amit Kucheria , smohanad@codeaurora.org, kgunda@codeaurora.org, aghayal@codeaurora.org, Jonathan Cameron , Hartmut Knaack , Lars-Peter Clausen , Peter Meerwald-Stadler , linux-arm-msm@vger.kernel.org, linux-iio , linux-arm-msm-owner@vger.kernel.org References: <1589361736-816-1-git-send-email-jprakash@codeaurora.org> <1589361736-816-6-git-send-email-jprakash@codeaurora.org> From: Jishnu Prakash Message-ID: Date: Fri, 22 May 2020 17:29:13 +0530 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:68.0) Gecko/20100101 Thunderbird/68.8.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Content-Language: en-US Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Andy, On 5/13/2020 3:21 PM, Andy Shevchenko wrote: > On Wed, May 13, 2020 at 12:24 PM Jishnu Prakash wrote: >> This commit includes the following changes: >> Add a common function used for read_raw callback for >> both PMIC5 and PMIC7 ADCs. >> Add exit function for ADC. >> Add info_property under adc_data to more efficiently >> distinguish PMIC5 and PMIC7 ADCs. > Something happened to the editor settings. We have lines up to 72 > (recommended) characters. In this case, I just meant to put each change on a different line. I'll fix it in the next post. > > ... > >> @@ -512,6 +518,7 @@ static int adc5_read_raw(struct iio_dev *indio_dev, >> &adc5_prescale_ratios[prop->prescale], >> adc->data, >> adc_code_volt, val); >> + >> if (ret) >> return ret; >> > Unrelated. I'll remove it in the next post. >