Re: [PATCH v2] iio: stm: don't always auto-enable I2C and SPI interface drivers

From: Andy Shevchenko
Date: Mon Jan 10 2022 - 10:37:31 EST


On Mon, Jan 10, 2022 at 03:30:08PM +0300, Nikita Yushchenko wrote:
> > Just noticed, what stm supposed to mean? `git log` against those drivers
> > suggests something else.
>
> I copied it from git log, can't remember from where exactly.
> Perhaps 'st_sensors' is better.

% git log --no-merges --oneline -- drivers/iio/common/st_sensors/ drivers/iio/*/st_* | cut -f2-4 -d' ' | grep -o "[ :]st[^:]\+:" | tr -d ':' | tr -d ' ' | sort | uniq -c | sort -n
1 st_accel_core
1 st_accel_i2c
1 st_gyro_spi
1 st_lsm9ds0
1 st_lsmdsx
1 st-magn
1 st_magn_core
1 st_pressure_core
1 stsensors
2 st_accel_i2c.c
2 st_magn_spi
2 st_press
2 st_pressure_spi
3 st-accel
4 st_accel_spi
4 st_uvis25
5 st-sensors
11 st_gyro
15 st_magn
21 st_pressure
27 st_accel
68 st_sensors
140 st_lsm6dsx

(Yes, I know that command line can be simplified :-)

--
With Best Regards,
Andy Shevchenko