Received: by 2002:a05:6a10:7420:0:0:0:0 with SMTP id hk32csp4434705pxb; Mon, 21 Feb 2022 21:30:57 -0800 (PST) X-Google-Smtp-Source: ABdhPJwl6v1kmOY1s851nAxZDEIPvqVq01wofNA/Z25WmodES5p+ayMbnplCXh2tdo7tgz5TyrIn X-Received: by 2002:a17:90a:588c:b0:1b8:8780:5ce with SMTP id j12-20020a17090a588c00b001b8878005cemr2392781pji.187.1645507857712; Mon, 21 Feb 2022 21:30:57 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1645507857; cv=none; d=google.com; s=arc-20160816; b=gXpPp5DJ/yINRLO5LsHMlLt7RJ2Fch8fc3KJkAG5pOQhOHgdItsoW00XHTaNbiayG4 LS4asHTC0c1uRWjHb091kMzXd/OttELtwG2yiARr8UoW2FwaOFSnsXmeZvKs0VgkpZ8c Hshyvc7aL9Y5aCizdfGeiqqX6cKQLMLVZb4LwFYjcItVZeBrGbGPwbpCP9et/AIYvxXR QkXClwHZNlDcIvJC9wlMNcG+JYw5U2e2AH6B7EmolzyosmMH4a/+yLKJgZRr9Mu0Hm60 b31M3jm1Sl5Gl2KXlaFuaQC7ok2ZmUyzbbi3MXvfEs9VPICiv5GhM2fbzQUc0y+mi/us kNeA== 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=gfBXBmzZF5qhk7h6/Jp4L/7fgHtVsQgStWyonPiVpuU=; b=AymjW/hREXtIWEeBjJ0WhNBOL0MEIgnScgrInHnf1kkPqsw9neuANLw/RfeLzV7RoM pKZ7NY8U6Zz8LjN5kjqsNWeEzECLagzFpyL8OamzlhB2Mk84OQyMtI12NASsdxphiI8T ksmW/pdpAzetiakwzJg9fccmPfjO1X1gVmZIhQ504b/V1BbN/ncPI8yHXij/EUe1SJ4+ WmqTm+l13qpKd4IBQNjImPzz8xbyZxOOlerS/U40wIzmQIn4f9Fy6DBMRprF7BQsqjZY ht44aTWQxmf0Z61gBkzMalwibyY0S4b8iK/4CNkm1HgB2pMIV9L7S2FroReu9J0WvGFh +gEw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=W1hsMaav; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1: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 lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [2620:137:e000::1:18]) by mx.google.com with ESMTPS id 4si10069201pgx.345.2022.02.21.21.30.57 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 21 Feb 2022 21:30:57 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) client-ip=2620:137:e000::1:18; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=W1hsMaav; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1: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: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 8277CBD891; Mon, 21 Feb 2022 20:59:33 -0800 (PST) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233721AbiBUUdC (ORCPT + 99 others); Mon, 21 Feb 2022 15:33:02 -0500 Received: from mxb-00190b01.gslb.pphosted.com ([23.128.96.19]:50972 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229451AbiBUUdB (ORCPT ); Mon, 21 Feb 2022 15:33:01 -0500 Received: from mail-ed1-x533.google.com (mail-ed1-x533.google.com [IPv6:2a00:1450:4864:20::533]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6B4FB22BFF; Mon, 21 Feb 2022 12:32:37 -0800 (PST) Received: by mail-ed1-x533.google.com with SMTP id s14so14397194edw.0; Mon, 21 Feb 2022 12:32:37 -0800 (PST) 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=gfBXBmzZF5qhk7h6/Jp4L/7fgHtVsQgStWyonPiVpuU=; b=W1hsMaavN95NBCPxSXgBvjQ374ra+69M5BwWgZJT68k7fRfJnAWqxTzv+owt3yWl3s gb1dK/5kOiJpT1VOQ/b7k0upvPL3g0vQO7/qM0a6uL7I0nQ3Yu6OshPNh9kJLhJ71AaL RYskCFImoPi8o/RmixGPAd0J0TyHno4ljDtou01uzdoEfCNctecnx25pzDL+IQrv1lDY op2ktN0H8RolhlCusqjXpwTKPYJbd2seipXpxkJJAziF8OA5mzMt9OZ4lkYG1eWmNOJe gc+Zy/TsMwv+WzffDsD5xSz3L2Tgqdw8x79ojPqL4WN0jUge9C9Lwx5UUiBlnFgthYyP qE/g== 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=gfBXBmzZF5qhk7h6/Jp4L/7fgHtVsQgStWyonPiVpuU=; b=jq/qJBPzy6Q6JP+iNzmdse217tWbyOdwHrsgbmI7rW1Zkj74YYMnChxwoOFyuLnijJ V3aGBZUuq551My3idN8g/4uWQHfB7qoJrN1wJFou4iEdER5WNDGPTHF3P+fISgmAf5LV Ds+zBgh8wmDU0/tCWH3yhCdHsrJM34fgZ5E2D5QAMKt6Z8F0o8RANsesU1lqNliPN5cH closCdt5n+Pf17/CZta+JvR1MFpxxF0RC5OEUqTmx27VuWK+b2PLGqnosGCWAsDYJOhh Gx7q7RXaDjICzNspoQZStNeMVZQHyNgOvr9MTbAhndnKkRhjQej2GWdW88IJOI87QEIU eZCA== X-Gm-Message-State: AOAM531pwn3o1hFrnOEJJbhBaQF/pKk3cxpz/lDAlNzN9GaRbIuNwM/y t3q/jEv/Q1xycynuwbZYCvyQDNNeJzGhUaCC4KQ= X-Received: by 2002:a05:6402:198:b0:410:83e3:21d7 with SMTP id r24-20020a056402019800b0041083e321d7mr23590064edv.159.1645475555879; Mon, 21 Feb 2022 12:32:35 -0800 (PST) MIME-Version: 1.0 References: <20220217162710.33615-1-andrea.merello@gmail.com> <20220217162710.33615-13-andrea.merello@gmail.com> In-Reply-To: <20220217162710.33615-13-andrea.merello@gmail.com> From: Andy Shevchenko Date: Mon, 21 Feb 2022 21:32:00 +0100 Message-ID: Subject: Re: [v3 12/13] iio: imu: add BNO055 I2C driver To: Andrea Merello Cc: jic23@kernel.org, mchehab+huawei@kernel.org, linux-iio@vger.kernel.org, linux-kernel@vger.kernel.org, devicetree@vger.kernel.org, lars@metafoo.de, robh+dt@kernel.org, matt.ranostay@konsulko.com, ardeleanalex@gmail.com, jacopo@jmondi.org, Andrea Merello Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-1.7 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,RDNS_NONE, SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE autolearn=no 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 Thu, Feb 17, 2022 at 5:27 PM Andrea Merello wrote: > > This path adds an I2C driver for communicating to a BNO055 IMU via I2C > bus and it enables the BNO055 core driver to work in this scenario. ... > +#include > +#include > +#include Keep it sorted? ... > +static int bno055_i2c_probe(struct i2c_client *client, > + const struct i2c_device_id *id) You may switch it to use ->probe_new() (you may leave I2C ID table for possibility to instantiate this via user space). ... > + struct regmap *regmap = > + devm_regmap_init_i2c(client, &bno055_regmap_config); Please, split the definition and assignment. > + if (IS_ERR(regmap)) { > + dev_err(&client->dev, "Unable to init register map"); > + return PTR_ERR(regmap); return dev_err_probe(...); ... > + .probe = bno055_i2c_probe, > + .id_table = bno055_i2c_id Missed comma. -- With Best Regards, Andy Shevchenko