[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20191019013526.GA8593@nessie>
Date: Sat, 19 Oct 2019 01:35:26 +0000
From: Dan Robertson <dan@...obertson.com>
To: Randy Dunlap <rdunlap@...radead.org>
Cc: Jonathan Cameron <jic23@...nel.org>, linux-iio@...r.kernel.org,
Peter Meerwald-Stadler <pmeerw@...erw.net>,
Andy Shevchenko <andy.shevchenko@...il.com>,
devicetree@...r.kernel.org, Hartmut Knaack <knaack.h@....de>,
Rob Herring <robh+dt@...nel.org>,
Mark Rutland <mark.rutland@....com>,
linux-kernel@...r.kernel.org
Subject: Re: [PATCH v4 2/2] iio: (bma400) add driver for the BMA400
On Thu, Oct 17, 2019 at 09:25:37PM -0700, Randy Dunlap wrote:
> On 10/17/19 8:18 PM, Dan Robertson wrote:
> > +config BMA400
> > + tristate "Bosch BMA400 3-Axis Accelerometer Driver"
> > + depends on I2C
> > + select REGMAP
> > + select BMA400_I2C if (I2C)
>
> Since BMA400 already depends on I2C, the "if (I2C)" above is
> redundant so it's not needed.
You are correct. I'll remove the depends on I2C.
> > +struct bma400_data {
> > + struct device *dev;
> > + struct mutex mutex; /* data register lock */
>
> needs #include <linux/mutex.h>
Good point.
> > +static int bma400_get_accel_scale_idx(struct bma400_data *data, int val)
> > +{
> > + int i;
> > +
> > + for (i = 1; i < ARRAY_SIZE(bma400_scale_table); i += 2) {
>
> needs #include <linux/kernel.h>
> for ARRAY_SIZE()
Thanks
Cheers,
- Dan
Download attachment "signature.asc" of type "application/pgp-signature" (834 bytes)
Powered by blists - more mailing lists