Received: by 2002:ad5:4acb:0:0:0:0:0 with SMTP id n11csp497774imw; Mon, 4 Jul 2022 13:33:23 -0700 (PDT) X-Google-Smtp-Source: AGRyM1vfms4vCJy6wX39JbG/NovymltOOcXzxQ9zgcrpy6Iiayq1ZrXYvTlmgPyzDtmxjYoYmxmp X-Received: by 2002:a17:906:9bd1:b0:72a:5b6f:a3c8 with SMTP id de17-20020a1709069bd100b0072a5b6fa3c8mr25771017ejc.21.1656966803733; Mon, 04 Jul 2022 13:33:23 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1656966803; cv=none; d=google.com; s=arc-20160816; b=YtSxTZqbOOSU0tpXGuuOgwKwHPJ1MUH+tSETNtorodVVfDT+L3yIqbeJmDQCjG7D6L 8Q5G5xTwlQDnhkLPUZRbegwpmhABhGXx8KbBYXfFCIHHq1yAkdj9xJFCUo6C746/CT02 3dyvQQPM4g2cNDaHKNhGcleSrXsDQTkQKqQdXfUPs0bBiJ0hjoA0+DMMHVdxtgneR7mO ICg1c5E9LSNXYMqiAihiTlOfCx5Zf1DB8yCG+0yEJDM5ZkN3M7fS3RZ/E8EvAYh6R1K3 3TVnmYVCxDq2YqnvwL1zW8UuEVem30Ae2X2XL7HL73LnvUjbUY/fx9MBTPrPwdQgZwYp FU3w== 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=xSzYUkSr64/MWOHJNv2lZcInEHifTq4lnA5LJoTdWTE=; b=inVGjdc8dTloLSU9NUZBg5BKo8lgEDdljsMttnonmZ/KcoxqQ3vhVYg+inJe2Kp7z5 smVzi6N+go5TizNePqRbul9T26481ay19yy0misNplkAnVz9dDVWfXyapHlT0xG+Sn4g F2IDnSAXUxBfcDomOVrSxkuUzA7tQzk7OPWrSqjezb4NqUHAtuMomOeOuqx6Pj7QQ7zd dLBk3xpTxdsc0Kd0KJj+TQdRu84WjP7G9uw0BeYJjBEUqx6lcJHoo5PiODHbpfiPHZqa jB2rDQpxGHSzucuaeANG7LwnihJ4sF+q+Jpe1jxBQRQRxtYH7BTEy2wg8Yx/mTNFJZaC E+mQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=SwdCBoRz; 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 cr18-20020a170906d55200b0072a9fdec3a9si12600520ejc.620.2022.07.04.13.32.58; Mon, 04 Jul 2022 13:33:23 -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=SwdCBoRz; 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 S233821AbiGDUKu (ORCPT + 99 others); Mon, 4 Jul 2022 16:10:50 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59794 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229525AbiGDUKs (ORCPT ); Mon, 4 Jul 2022 16:10:48 -0400 Received: from mail-yw1-x1131.google.com (mail-yw1-x1131.google.com [IPv6:2607:f8b0:4864:20::1131]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 15126654D; Mon, 4 Jul 2022 13:10:48 -0700 (PDT) Received: by mail-yw1-x1131.google.com with SMTP id 00721157ae682-31cac89d8d6so21020087b3.2; Mon, 04 Jul 2022 13:10:48 -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=xSzYUkSr64/MWOHJNv2lZcInEHifTq4lnA5LJoTdWTE=; b=SwdCBoRz62Cjj6rsKTCZILy+zDz5wtzRT+JYyDFXbWCvEDMSdlfpDAvA/I0U8dDLt7 worTk14l2UsThHlqIZCbXuIyYkQJMxpa/Yuq5lSO1R2PZF0R7LCozgFJA9VRY0OkNbVo Z94y7SPyCLer6ESZh8zI7qjT8smkU0dv+SmbyUGKZqrdLI34qoXdt/pixKtc2pvm2t7p r1JIzX5RmE0DkOnD2W21nFsYxB0S8FzAT5ufZef+dni7yw/2zhHVhce0ZOGLus03PaAs imJpVF9KjtBVdRfe3r34lkj2GhjjQSMhxij/6HB8ZkANlchrQEwPaZ91F+aLwwgDDoKM b0lg== 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=xSzYUkSr64/MWOHJNv2lZcInEHifTq4lnA5LJoTdWTE=; b=uR2pIWxi4ox3sd0kfEQ7osN6/HXoONYKfqEgXgZ4qRFbR6Vq/usrCYopRDTmoZK29a ealAD6Cw5kEx2/GWLONMz12lmVxfXDHqabMvX219o5BuUa52oQ3KG4YoP8FSQ9+xPo+b 2vOzKO2qUQ15oALZnyRKK31jLGcR2ea6HgMPr2SvVsSGpctAr05qbx4uXIUdZK3XUiTV tZoMDK1w+VPwdrfjM8w88rFuQcdxBblhy5dsZuRHONrcsWqI9gb1DsrZMOMyoBOKopF0 sDhwlODSDK2e/Ap5z1CIW9Zb4lQFEkVWS4/KfnhTVrNxG4qYC9DFJP1i7glt/RKlNF3c oTkg== X-Gm-Message-State: AJIora9pir7fHuH0qMU4sLr45zvlrji9qoLS/NpZUIO+QrsHKT12B9ch JQamU83/u87lFJ1LVl2BwO7iFyb8p90uQz1yd68= X-Received: by 2002:a81:72c4:0:b0:31c:b309:c4e8 with SMTP id n187-20020a8172c4000000b0031cb309c4e8mr3296654ywc.520.1656965446819; Mon, 04 Jul 2022 13:10:46 -0700 (PDT) MIME-Version: 1.0 References: <20220704002957.207850-1-ang.iglesiasg@gmail.com> In-Reply-To: <20220704002957.207850-1-ang.iglesiasg@gmail.com> From: Andy Shevchenko Date: Mon, 4 Jul 2022 22:10:10 +0200 Message-ID: Subject: Re: [PATCH v2 3/5] iio: pressure: bmp280: simplify driver initialization logic To: Angel Iglesias Cc: Jonathan Cameron , Lars-Peter Clausen , Paul Cercueil , Ulf Hansson , "Rafael J. Wysocki" , linux-iio , 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 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(...); > } -- With Best Regards, Andy Shevchenko