Received: by 2002:ad5:4acb:0:0:0:0:0 with SMTP id n11csp1809679imw; Tue, 5 Jul 2022 16:09:33 -0700 (PDT) X-Google-Smtp-Source: AGRyM1v0paca1M7sJjjMX7il9e4I1OyAd71aMHMfS0I0Id7IZgZZm9YFUmTx/KsTBIiKEiVgJzzu X-Received: by 2002:a17:906:5d0d:b0:726:be93:1118 with SMTP id g13-20020a1709065d0d00b00726be931118mr35159387ejt.503.1657062573283; Tue, 05 Jul 2022 16:09:33 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1657062573; cv=none; d=google.com; s=arc-20160816; b=Suyh/jjRm5w4zly67uEjcpq6rasQ1K2c0U85SQpGWnnYEVwR1LovUEgO97+klMK3CW YYN7zqEgNk4UiVOS4DE8PPok5on7UkAKDJHS8+hA1FF3Cjs2b0+xymA+5Rj3zprF7ilX 99xtZAL1vOIY2pK1h/H1pAwOtByV3DJgwm9qbn9Tl89grqEVqrq3Vomt7/oFDh5/LGkX L8yrXGIJ2YoDvo5K6KwNypoc6pjhccxNx27t2Idf9kl4i4wP55dO/bmG7A2p8WphT4VA R8AgdrCLje+u9zGX9CM38czLSpocs+xkNpqHymtLdB1nIieWGdl4TlwziTTqeRUzGqjK 2gFw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:date:cc:to:from:subject :message-id:dkim-signature; bh=zL3YaBsI2xTGiJj2TbzH8GBqtIjY97YUDCwE5WljzJo=; b=zm5Kh0blix0Dnrfp/U8p6JlPUylgwOyNfcwXkt85djy8OuayQTLGAsNB0qivCr/gG4 adhYhc7dw22HHCGOlPVheoxfcFUVTanRj5qXh3EqXxtt3scvBjXPxRe0iEm5E9HS50M8 Sgm5yczKU/rrvSZV4FZtt9hrKk7yd+YOgbBpVMLybBYI2GGgpAK8qTVup016m1SWEO8e wy2fF1xyLMGRJK94H3bDDd7UTg+r/0/F/rPZmt+DVhxnKmGQykCgkOK8lUXstRyDjnR0 XDHWC4Cb+pAN+N3NdHwtbZqYxfDQqjEZGb3HfXKb4c4MWzUM2ef2FI+6tVyxIHocnzjz NeLw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=ozr5AtTt; 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 p8-20020a05640243c800b0043a681d4a39si8044010edc.499.2022.07.05.16.09.08; Tue, 05 Jul 2022 16:09:33 -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=ozr5AtTt; 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 S232742AbiGEW4u (ORCPT + 99 others); Tue, 5 Jul 2022 18:56:50 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53624 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229994AbiGEW4t (ORCPT ); Tue, 5 Jul 2022 18:56:49 -0400 Received: from mail-wr1-x42b.google.com (mail-wr1-x42b.google.com [IPv6:2a00:1450:4864:20::42b]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 19B3614D00; Tue, 5 Jul 2022 15:56:48 -0700 (PDT) Received: by mail-wr1-x42b.google.com with SMTP id b26so19564231wrc.2; Tue, 05 Jul 2022 15:56:48 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=message-id:subject:from:to:cc:date:in-reply-to:references :user-agent:mime-version:content-transfer-encoding; bh=zL3YaBsI2xTGiJj2TbzH8GBqtIjY97YUDCwE5WljzJo=; b=ozr5AtTt/pUS+XSeTixcByO7KyRlNo+uPXS8SCZ5Jlg6rUP5T6qUx/wxMYIIOxN4BU mZ8xHIt1d2D053oiV1hAq4ZXeSRZ3W88EgdxNgC9UXBkjzr1+JXSNppWOcVTnno0l2nh JVE4lO/TFfQW9tSAdpotJTUGf5XOaWdW2RQecuLnMvsCi6iX3KMT0t2rax2jXEUI52dK hwXhWjZG7ar4AzZ8Fz8mNGev6nE6NA/nTfgPxD1gk7aKXbn8TOnWmiZwPMtvo8CGbNog kvH2CqX8XCumzB9xgOTubOwslmlApYIC+F65CE3L3UoKxzKIq43jb61WG07WhhDZ2W8M 4Ukg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:message-id:subject:from:to:cc:date:in-reply-to :references:user-agent:mime-version:content-transfer-encoding; bh=zL3YaBsI2xTGiJj2TbzH8GBqtIjY97YUDCwE5WljzJo=; b=mUm+M/q7DprsEdzkwvK/2OS57/V3sSoJqJlTd6spEmSmbspiXnxnUecz3vUObDazvg r7G7zYY+s8PTv9vfkU8/ZY6UdI+owF9SsfkPkSPOJgcChyAESMLKFVZVrv1t4COp8ERY I64NBcmb47O+iUTjC0+xxyfv655z84QpweU6upG7Adz1MsWAImQ+Gl3hRHFXHie3coSS qEAD+eFjm2nj8ssleqJgo8oDBRLhLb5/s08ly/Fx2csC7bZjy5ygYKAjMei2Ev0AKPmz 71UqSuRrAZ+XOoqXNy540vnIK1ogLQ3r7z5d2ntP56mesJGvn7FTQ1X+kugMpKa5ArrJ P8WA== X-Gm-Message-State: AJIora+11cf0s8U6uO2vobFxk0oFBgK5sv55pPmLd3H8MNBqfPGqFa1C ZtvcuA2OWhPrLwWybfBjOe2lHItNIxU= X-Received: by 2002:a5d:6da8:0:b0:21d:2598:4e28 with SMTP id u8-20020a5d6da8000000b0021d25984e28mr36105913wrs.373.1657061806688; Tue, 05 Jul 2022 15:56:46 -0700 (PDT) Received: from [192.168.90.207] (214.red-83-37-4.dynamicip.rima-tde.net. [83.37.4.214]) by smtp.gmail.com with ESMTPSA id bn24-20020a056000061800b0020fe35aec4bsm33178876wrb.70.2022.07.05.15.56.45 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 05 Jul 2022 15:56:46 -0700 (PDT) Message-ID: <886b99b4a0f2ddb8cd89faba9e23b5d710f59f12.camel@gmail.com> Subject: Re: [PATCH v2 3/5] iio: pressure: bmp280: simplify driver initialization logic From: Angel Iglesias To: Andy Shevchenko Cc: Jonathan Cameron , Lars-Peter Clausen , Paul Cercueil , Ulf Hansson , "Rafael J. Wysocki" , linux-iio , Linux Kernel Mailing List Date: Wed, 06 Jul 2022 00:56:45 +0200 In-Reply-To: References: <20220704002957.207850-1-ang.iglesiasg@gmail.com> Content-Type: text/plain; charset="UTF-8" User-Agent: Evolution 3.42.4 (3.42.4-2.module_f35+14217+587aad52) MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 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, 2022-07-04 at 22:10 +0200, Andy Shevchenko wrote: > On Mon, Jul 4, 2022 at 2:46 AM Angel Iglesias wrote: > > > > Extended chip_info structure with default values for configuration params > > to simplify and unify initialization logic for different supported sensors > > ... > > > +       ret = data->chip_info->read_calib(data, chip_id); > > +       if (ret < 0) { > > +               dev_err(data->dev, > > +                       "failed to read calibration coefficients\n"); > > +               return ret; > > return dev_err_probe(...); Got it, thank you! > >         } > > Thanks, Angel Iglesias