[PATCH V10 3/9] iio: imu: inv_icm42607: Add inv_icm42607 Core Driver
Andy Shevchenko
andriy.shevchenko at intel.com
Tue Jun 9 11:57:55 PDT 2026
On Mon, Jun 08, 2026 at 03:52:38PM -0500, Chris Morgan wrote:
> On Fri, Jun 05, 2026 at 07:08:35PM +0300, Andy Shevchenko wrote:
> > On Thu, Jun 04, 2026 at 03:18:25PM -0500, Chris Morgan wrote:
...
> > > +struct inv_icm42607_sensor_conf {
> > > + int mode;
> > > + int fs;
> > > + int odr;
> > > + int filter;
> >
> > All of them are supposed to be signed? Why?
> > > +};
>
> A later commit will use -1 for invalid values.
Okay, perhaps add a comment on top that negative values will mean invalid case?
...
> > > +#include <linux/delay.h>
> > > +#include <linux/dev_printk.h>
> > > +#include <linux/interrupt.h>
> > > +#include <linux/iio/iio.h>
> > > +#include <linux/module.h>
> > > +#include <linux/mutex.h>
> > > +#include <linux/property.h>
> > > +#include <linux/regmap.h>
> > > +#include <linux/regulator/consumer.h>
> >
> > IWYU, please.
>
> This may sound like a dumb question, but what's the best way to invoke
> iwyu for a kernel? None of the readmes or man pages seem to be getting
> me anywhere...
In this list we (I mean community related to IIO) discussed iwyu tool and
its best configuration. Yep, it's barely good and far from ideal, but that's
what we have currently. Otherwise `git grep ...` and cscope are your friends
to answer this. Also doing review on regular basis makes this knowledge
developed better.
...
> It will get extended, so I'll keep this for now if that's okay.
It's okay.
--
With Best Regards,
Andy Shevchenko
More information about the Linux-rockchip
mailing list