Received: by 2002:ad5:4acb:0:0:0:0:0 with SMTP id n11csp589559imw; Mon, 4 Jul 2022 15:44:26 -0700 (PDT) X-Google-Smtp-Source: AGRyM1s01ebNN1875FowaaRjxWf6Fzde5KveBth6riZjxJ/4y4xOJLtgAlPcZ7ib76hCClqN4YMr X-Received: by 2002:a05:6a00:8cb:b0:510:9ec4:8f85 with SMTP id s11-20020a056a0008cb00b005109ec48f85mr38443397pfu.24.1656974666025; Mon, 04 Jul 2022 15:44:26 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1656974666; cv=none; d=google.com; s=arc-20160816; b=zI0ZTcAs0FU10SwFmZxirxwN4uaNrE69TLuFBq0OMPgZN+rt96TlWuCxqaw0kPxUYa 3goImm13iQA+9CZa+Bikg4JIp+PVW5BgjlU8SwHchF3VYrA2Za8wA1RSzAJN2Z1VIzHa L8ANz1Nd+LZPba7yuYlEX30xN/6qSYJiQOW2egb08HvweAcjBfZNCqeuRw+4tRvtXzet dkCvqu6b3kFZ0ysjmPenkbnjAonGzaLAh0rZ/0kt+WQs9anlhKbdhu28Lpr04B4B6TCb jQXKJSPj70W+YA5d0lO73dCU7ZMPh1KZYMIRIIbdamjkY9atMCPjEerRqHXLBCDjhh69 b2iw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=cumV9qPENekMjwnvtuGOttD9N1tqu/fT5FfTmap5cpM=; b=Yfxh9Os38AQrHw4mL0QZ0yXc9HxxGh3+DCgoAhH48htksrEQoamhwpPmPlOUVaDAzF sYTVAYk+8gjmUGmnDGkDcinlzm11zORhTwIyTD1gbMRANtpoqvLUV7NrJarWrzpMAftZ 3vvG4CRn1FCHgR1vLgNBS9sp0inGKYH/fuWSwi3WvM9cYEFFWQyn0fbb24UX1iViKjpz fJh1CwOyA1/oALITg6qRq0ccdwadgVkXz1lwWFFATEwMr+u720tJHbMO8YzEsRib6NN3 +xXraz9VzUNACWG1+Ljd/IhCMZPZQApTEDG885nJWwP6bNQhRNsWAzPGJscbswtfug3H HvNg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=PRykaQHr; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 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 out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id np11-20020a17090b4c4b00b001ece9122d4esi29173119pjb.86.2022.07.04.15.44.12; Mon, 04 Jul 2022 15:44:26 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=PRykaQHr; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 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 S232511AbiGDV7f (ORCPT + 99 others); Mon, 4 Jul 2022 17:59:35 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54050 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229790AbiGDV7e (ORCPT ); Mon, 4 Jul 2022 17:59:34 -0400 Received: from mail-yb1-xb2f.google.com (mail-yb1-xb2f.google.com [IPv6:2607:f8b0:4864:20::b2f]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E851AC0D; Mon, 4 Jul 2022 14:59:33 -0700 (PDT) Received: by mail-yb1-xb2f.google.com with SMTP id j7so12443019ybj.10; Mon, 04 Jul 2022 14:59:33 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=cumV9qPENekMjwnvtuGOttD9N1tqu/fT5FfTmap5cpM=; b=PRykaQHrNaAsX39gxzj8c2LxjhYS234XvpUDTTccMpfcfE0d5X6R+l2OfdVj4lxW+d gdWMk/pIW4rn+/cSbOALBcswmyf+i5r2FcYvTPboPN7di8gGeie/OWq0N5W9fBUMJH1V 7y6HQ29Za2SPFP1oiIdfjox0UQEKN9qaWQWQVPGSLGkCtk5BcAaHU+xw2j7vX2yfL/3I tuv9hrWfnljhlkJkzGm8pcKqApxyzjZ/raoprKdwdG2rq/7NK/xYnLqv+jJ/eGAQXQVT ehweRucwBELCfiF1TpO5JQpDc9Sl3vhqC4ViyfaSXCdNNrisX0I2yaHUH6B1HNK366DA tpZA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=cumV9qPENekMjwnvtuGOttD9N1tqu/fT5FfTmap5cpM=; b=yueZNbS+d9S+SvKIGow4fE7XsUjclUIMINL6DSkIQksGT/kXxue3HjZi7uBN/Vdjr/ ArY66STsNOr/hVCxJuEULWWnb5SX9mBU9Tj0wMglX1MZsug/0yBzkXchsRWBWsHaLmJ+ R8C43umRVUCrDyifjHYB/acTZGJFYw+uMtDrm0hKIE5aSbN44kj7gR49UxoqikkO3JVY TQKGDne/4Asimjdxv8XJHCckw3cfDKF6C8UV2O//nzBXxzOzkMIPPFQN4GtKLqoSiGGz jbOtnc1P5TGFW1h/cGRQWN45bXG439t+PJhijQuPLwyGhUudyVr/jEaXznNqS6SdgaES EIjA== X-Gm-Message-State: AJIora+dvzYtECxxpMiXfbtTBo+IrrTtvRTwl9ksOp24auZVMXanSdef WHWW3BV2fESQa/wGG3Lvt/jqVD3Pfm2Fga/VuUs= X-Received: by 2002:a05:6902:10c9:b0:668:e27c:8f7 with SMTP id w9-20020a05690210c900b00668e27c08f7mr33692356ybu.128.1656971973165; Mon, 04 Jul 2022 14:59:33 -0700 (PDT) MIME-Version: 1.0 References: <20220704172116.195841-1-marcus.folkesson@gmail.com> <20220704172116.195841-9-marcus.folkesson@gmail.com> In-Reply-To: <20220704172116.195841-9-marcus.folkesson@gmail.com> From: Andy Shevchenko Date: Mon, 4 Jul 2022 23:58:56 +0200 Message-ID: Subject: Re: [PATCH v3 8/9] iio: adc: mcp3911: add support for oversampling ratio To: Marcus Folkesson Cc: Kent Gustavsson , Jonathan Cameron , Lars-Peter Clausen , Rob Herring , Krzysztof Kozlowski , linux-iio , devicetree , Linux Kernel Mailing List Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM, RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Jul 4, 2022 at 7:22 PM Marcus Folkesson wrote: > > The chip supports oversampling ratio, so expose it to userspace. ... > + ret = mcp3911_read(adc, > + MCP3911_REG_CONFIG, val, 2); One line? > + if (ret) > + goto out; -- With Best Regards, Andy Shevchenko