Received: by 2002:a05:6a10:8395:0:0:0:0 with SMTP id n21csp503503pxh; Tue, 9 Nov 2021 14:19:18 -0800 (PST) X-Google-Smtp-Source: ABdhPJw7uNnkkfQ0bsKXi+FcFXyOAm+5ZYHmSFBGqCyxIOF339RQLFnVGaTwgVq87n+mbCYGTJPy X-Received: by 2002:a17:906:4d4a:: with SMTP id b10mr14413612ejv.89.1636496358600; Tue, 09 Nov 2021 14:19:18 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1636496358; cv=none; d=google.com; s=arc-20160816; b=Rzto9hP4CHIRTSzXd7NV1NANhsUpZ/JQB8CXM9OtZnKErCIQWoRz2mrmc+iUMsFZHE jxsHfJ3JkFaGv/N380E9zbK7OfGThAg1/bRZVXJuBf6137UWuzXyUzyOShlMwvh0L8Yv rqPZegBPQZ/h3WvuM5viIbQjmla7PB6stoHmt3aDLgAdFkeS7bejPAGSt6GyDMZA8YAV SMlB5fsmOkNe14b3jVXz5IEo/l8fqu7Cj3JZT//5DkzNQ3bovgxhdRqIcXvsZpRTvBFe BUB/bGmIaW9lg+GP6RkEy6dJVyUemnF+BIavVXEj4cCrkfvWlEkcYot2LzbCHY1mwQCR aNfw== 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:reply-to :in-reply-to:references:mime-version:dkim-signature; bh=zF7zWyPkws0daJATKw16m2eAaCLss4SIeuJrKPXaNkY=; b=UGImhr4Ga1r1VV4LXKDyrW42VMhV3igY1NK1/rKfMszIekoIMo3C/kviXkFomYTjgW Jhs8smjyO7/0p0ko4irewu+SyfuCc/M5mz8XA+bzn2RFZljbMp6o0MixeRmCY4yljykF nM10Ulfpgwcx1lbri9E9kqkIsqjMxaDVP7qFAyBhGp0A+fUWcWauCMoFQL4nWgl1qF5e uto1tn8oxbLhb1YHJB6SelJ5CkSeeHDH7KqG2IfUjDEfBlgJqsud7pBB9KQ0EUFgsiwo zCPgYTowMC38SR826vdif5KWFS2LMb4bi5vgUuy2nQ62He7oGEEUl3w1pV+JZe4ttN10 361Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=HyW7zwK4; 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 gv35si16436116ejc.56.2021.11.09.14.18.42; Tue, 09 Nov 2021 14:19:18 -0800 (PST) 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=20210112 header.b=HyW7zwK4; 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 S236205AbhKIL7n (ORCPT + 99 others); Tue, 9 Nov 2021 06:59:43 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50706 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235184AbhKIL7l (ORCPT ); Tue, 9 Nov 2021 06:59:41 -0500 Received: from mail-ua1-x935.google.com (mail-ua1-x935.google.com [IPv6:2607:f8b0:4864:20::935]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id DE812C061764; Tue, 9 Nov 2021 03:56:55 -0800 (PST) Received: by mail-ua1-x935.google.com with SMTP id az37so37950146uab.13; Tue, 09 Nov 2021 03:56:55 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=mime-version:references:in-reply-to:reply-to:from:date:message-id :subject:to:cc; bh=zF7zWyPkws0daJATKw16m2eAaCLss4SIeuJrKPXaNkY=; b=HyW7zwK4N6jkoBGlaPvCVIwme4vRFBHGR/NdupJ5A1ykIjug0vp9DqiVgx6uk2RJJa 9RGRs1VcRt+vLo4zMV8LZjH36ItgiuN7Y+bXyV/ywm3NFSM8XsUxrhZGy2VFR88Zw+AZ CFAxy8uFJ45mJ0BBmC04tTW7ijlNKvrn4Dwb/xlMMV8FiKN3dXAAuBHONbGslzjgEYw0 oGYlJlSI4DucKU4qnE982t6Y7FHG51npsOneoqWc9skKM37ojcA2EpgLMKahq9k/okY8 1L6TlbrkXfhS3PPltZj5NGOdea0JELjhlD0/SRIXNbKurbK+MxRb9MpkFOXANnIPa/7d Hgmw== 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:reply-to :from:date:message-id:subject:to:cc; bh=zF7zWyPkws0daJATKw16m2eAaCLss4SIeuJrKPXaNkY=; b=Nu3Sz7Rhx14HPoDEO+MsCRoeWQiHOZFsXIDKffUZIJxtLGwp/UIO1a3+ihzC+OqUtv d4yf7L97yIDLSOt+Sa89+u9QrqiDFcBTemHj5ISrCU+yyKdqJaGddUXm7hBO9cSZ+Hkd S4w9rq5KN4JiSNA3fa/av2ewMHjKJLDubaybXH2sC9giv1G7R4wH7uBmJgRWlNM0ciHj x/RjPUVrclnD/MMMllAH/CHr3Ize8NKItqxZIdM4yazMQ1ltp4NvBMMftE6iml2wHPwv ULgadmpG80MIY+r0uepPBA+dArd8QuIBEdZcEN7QNZPOd9zf6uK/P9YAA1Ss0imwRful 1cMg== X-Gm-Message-State: AOAM530g91wI235lBFMTpihipoyxvwrazOINDd9vDYC6qngUodjh9vs6 sEL8OCBXm6lAiw32Nf/tHi4/vgXWeuEM7oJhV0U= X-Received: by 2002:a05:6102:3166:: with SMTP id l6mr30092957vsm.51.1636459015051; Tue, 09 Nov 2021 03:56:55 -0800 (PST) MIME-Version: 1.0 References: <20210715141742.15072-1-andrea.merello@gmail.com> <20211028101840.24632-1-andrea.merello@gmail.com> <20211028101840.24632-11-andrea.merello@gmail.com> <85ef90ad-0d3a-6cb7-529f-667562b2ad71@infradead.org> In-Reply-To: <85ef90ad-0d3a-6cb7-529f-667562b2ad71@infradead.org> Reply-To: andrea.merello@gmail.com From: Andrea Merello Date: Tue, 9 Nov 2021 12:56:43 +0100 Message-ID: Subject: Re: [v2 10/10] iio: imu: add BNO055 I2C driver To: Randy Dunlap Cc: Jonathan Cameron , Mauro Carvalho Chehab , linux-iio , linux-kernel , devicetree , Lars-Peter Clausen , Rob Herring , Andy Shevchenko , Matt Ranostay , Alexandru Ardelean , Jacopo Mondi , Andrea Merello Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Il giorno ven 29 ott 2021 alle ore 00:04 Randy Dunlap ha scritto: > > On 10/28/21 3:18 AM, 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. > > > > Signed-off-by: Andrea Merello > > --- > > drivers/iio/imu/bno055/Kconfig | 6 ++++ > > drivers/iio/imu/bno055/Makefile | 1 + > > drivers/iio/imu/bno055/bno055_i2c.c | 54 +++++++++++++++++++++++++++++ > > 3 files changed, 61 insertions(+) > > create mode 100644 drivers/iio/imu/bno055/bno055_i2c.c > > > > diff --git a/drivers/iio/imu/bno055/Kconfig b/drivers/iio/imu/bno055/Kconfig > > index 941e43f0368d..87200787d548 100644 > > --- a/drivers/iio/imu/bno055/Kconfig > > +++ b/drivers/iio/imu/bno055/Kconfig > > @@ -7,3 +7,9 @@ config BOSH_BNO055_SERIAL > > tristate "Bosh BNO055 attached via serial bus" > > depends on SERIAL_DEV_BUS > > select BOSH_BNO055_IIO > > + > > +config BOSH_BNO055_I2C > > + tristate "Bosh BNO055 attached via I2C bus" > > + depends on I2C > > + select REGMAP_I2C > > + select BOSH_BNO055_IIO > > Hi, > > The config entries that have user prompt strings should also > have help text. scripts/checkpatch.pl should have told you > about that... I'll add it, thanks. But FYI checkpatch doesn't complain about that here. > -- > ~Randy