[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <85ef90ad-0d3a-6cb7-529f-667562b2ad71@infradead.org>
Date: Thu, 28 Oct 2021 15:04:51 -0700
From: Randy Dunlap <rdunlap@...radead.org>
To: Andrea Merello <andrea.merello@...il.com>, jic23@...nel.org,
mchehab+huawei@...nel.org, linux-iio@...r.kernel.org,
linux-kernel@...r.kernel.org, devicetree@...r.kernel.org
Cc: lars@...afoo.de, robh+dt@...nel.org, andy.shevchenko@...il.com,
matt.ranostay@...sulko.com, ardeleanalex@...il.com,
jacopo@...ndi.org, Andrea Merello <andrea.merello@....it>
Subject: Re: [v2 10/10] iio: imu: add BNO055 I2C driver
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 <andrea.merello@....it>
> ---
> 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...
--
~Randy
Powered by blists - more mailing lists