Re: [PATCH v2] iio: imu: st_lsm6dsx: drop huge include in sensor-hub driver

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Mon, Apr 6, 2020 at 2:20 PM Lorenzo Bianconi <lorenzo@xxxxxxxxxx> wrote:
> > On Mon, Apr 6, 2020 at 1:52 PM Lorenzo Bianconi <lorenzo@xxxxxxxxxx> wrote:
> > >
> > > st_sensors.h contains common stm sensor definitions but in
> >
> > > st_lsm6dsx_shub driver it is used just to introduce the default
> >
> > Still doesn't fully clear why only this part of the st_lsm6dsx is not
> > okay with the header.
> > You need to explain that common/st_sensors is for separate ST sensor
> > drivers, while LSM6DSx is a driver for certain IMU which *does not*
> > use ST common infrastructure.
>
> I guess it is pretty simple and evident: we did not use it at all before
> the LISM3DL commit and at moment we need it just for ST_SENSORS_DEFAULT_WAI_ADDRESS
> definition. It is better to hard code the value directly.

Yes, my point is that for a reader (*) of this commit message is not
fully clear why on a sudden we did that.

(*) the reader may not know full history.

> > > wai address for LIS3MDL sensor.
> > > Drop this largely unconnected include and introduce the default wai
> > > address in st_lsm6dsx_ext_dev_settings register map

-- 
With Best Regards,
Andy Shevchenko



[Index of Archives]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Input]     [Linux Kernel]     [Linux SCSI]     [X.org]

  Powered by Linux