Received: by 2002:a25:868d:0:0:0:0:0 with SMTP id z13csp442489ybk; Wed, 13 May 2020 04:19:38 -0700 (PDT) X-Google-Smtp-Source: APiQypJKbDNH+wLCeuXO01w8px6Ij7ExrInLAVdV2PU5q3piE0ECCA4CedVz+rOIEfwcD7GSBFdh X-Received: by 2002:a05:6402:1a2f:: with SMTP id be15mr22213130edb.385.1589368778641; Wed, 13 May 2020 04:19:38 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1589368778; cv=none; d=google.com; s=arc-20160816; b=IjChEgaRfo05uo+6iBmvHajzwEmhPYlM0uYNa0PSJrZBQWPMmb4uIXNKVXrc1Zkn21 l/kiK/W02VQZGF2nU+T9iesGwBcipovQbk8yNZ5M8zTCbB/oW2T8Xami+2x2hj14pbfB lF3sMlq7esGE+1pMGfqTNWh5i+b2aoob5a3TG44VVbYFcdcAupLZmGZvjWVAc61ioDJh ElxtX5bY+NVH5ikMyWgPlCsQkOB+FJaKMAnXpSnYU261qUHuHTSq7YdGRrL1Kd7g392v J+cb8WAQgw/2HIxVQNsG1Zr6IyLRDJMgQZBFYjriMr3MCm654dP+2z95VPUnWn7h+8QM BRkg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=hjiKJ7FJyTyiMTQabLbMdyXHxAd5Y5rApctKC8YRsHE=; b=gfrO5SaVvzX4uZsJTRvZZDUdtAcdM+kE32tVV8/JqMc4/8+Ym0TTySNHHjG6u7SfQ0 xdGsseEWnx6AVqACcMFOH9KkDm4gS/YUPfvfxIRE8Sxe1fexZUjAa9g6eWOOkxlJgqvn hhropf0rpu4Q/AVguPescQyELXr8FlZFd25eH67lA70Fx9NBSDdqB6Q7gIivCcs5kY9D LEKg9eQSmD54YxHGkUYPx3zwg3FVG005L5WKCy4MuDNpZM1i4RcR555O+lxaiHKnsFUD WL4/8BDPkgdvKDI1s6s+HAPL0LDxbGUEcO+ZfNqEwvsPHIamCvORDt7mPp4tAcCry8u5 kBPA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=p7i6gqiU; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id g24si1598345edj.457.2020.05.13.04.19.16; Wed, 13 May 2020 04:19:38 -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=pass header.i=@gmail.com header.s=20161025 header.b=p7i6gqiU; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2388595AbgEMKAl (ORCPT + 99 others); Wed, 13 May 2020 06:00:41 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49534 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2387696AbgEMJvo (ORCPT ); Wed, 13 May 2020 05:51:44 -0400 Received: from mail-pf1-x441.google.com (mail-pf1-x441.google.com [IPv6:2607:f8b0:4864:20::441]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 833F4C061A0C; Wed, 13 May 2020 02:51:44 -0700 (PDT) Received: by mail-pf1-x441.google.com with SMTP id x2so7775815pfx.7; Wed, 13 May 2020 02:51:44 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=hjiKJ7FJyTyiMTQabLbMdyXHxAd5Y5rApctKC8YRsHE=; b=p7i6gqiUSXTtK8sEqLVDaHCAQ4YPJvlMltihgkLN7PhyQ+GkAQ13GNyAEymKYACWAF Z8VAhvK8B1LJYKmMS2KF1M/TV8DHztjkQco/ZFyFDXNzKiaIx4RZz7xBWFDR16ITIdCx jHEg/QgmnkBftkMGLGoPfM0qxMz1CpHKozcnhaKuOi2jeiARYIRZPQByw9cY8tbS/AAk hC1GDea4nZlaXy0tn6iJbsACuFTdha5CqiXFVYBskwh9+LslZOdOnNMFMqY7kJ7Opqbs yTRB1F1Q/nICpbSz/IUXIDs8pDHgXq//6RETRj7c91UGb18dnxDJt9uZo1YSTMW8mSq8 4WWw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=hjiKJ7FJyTyiMTQabLbMdyXHxAd5Y5rApctKC8YRsHE=; b=LYQZCWjglxnBoqWh97RtefJXqLeJE4Nx6JnWUgs/mmwkBOSRvz7QMmo5T1mkK38pVo kiU0S8Pmxxi4ebGYCCUttfEhnXBKiUC3KUl6CuKCr0wB2a6lX8hbfhLnnPDSwgf6exS/ sm5GUe9faNTQJP8gOphIg+LqpXYewSqEZAj0T0LZ6VCA6NcBfSTOSTLu8HwO5Z5MSP6K JiYFkBlEL0tJR6YIQGbX+wwhIq5YoNwBoZV0vLLiRavuwoc4iA7Itk7OHROULeCe3tZt +vXmSE/QFIymMPCYit3rrU3MZj/s0ilq9RUEUl8o8jGOUdIcqRHQPf3XceeRyWtB86Ee Viuw== X-Gm-Message-State: AGi0PubInIQmkABs6348LPCQKrUzly6g1CCNxkd9iMR0Ma3wvDSuixSm Sj+rfdJq7Wo67LSDmWS749eX9AxF4OY7QsIq3O4= X-Received: by 2002:a62:7f11:: with SMTP id a17mr24262558pfd.36.1589363503255; Wed, 13 May 2020 02:51:43 -0700 (PDT) MIME-Version: 1.0 References: <1589361736-816-1-git-send-email-jprakash@codeaurora.org> <1589361736-816-6-git-send-email-jprakash@codeaurora.org> In-Reply-To: <1589361736-816-6-git-send-email-jprakash@codeaurora.org> From: Andy Shevchenko Date: Wed, 13 May 2020 12:51:36 +0300 Message-ID: Subject: Re: [PATCH V4 5/5] iio: adc: Clean up ADC code common to PMIC5 and PMIC7 To: Jishnu Prakash 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 Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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. ... > @@ -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. -- With Best Regards, Andy Shevchenko