linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
To: Nikita Yushchenko <nikita.yoush@cogentembedded.com>
Cc: Jonathan Cameron <jic23@kernel.org>,
	Lars-Peter Clausen <lars@metafoo.de>,
	Linus Walleij <linus.walleij@linaro.org>,
	Alexandru Ardelean <aardelean@deviqon.com>,
	Cai Huoqing <caihuoqing@baidu.com>,
	linux-iio@vger.kernel.org, linux-kernel@vger.kernel.org
Subject: Re: [PATCH v2] iio: stm: don't always auto-enable I2C and SPI interface drivers
Date: Mon, 10 Jan 2022 17:50:10 +0200	[thread overview]
Message-ID: <YdxVsvWN7pOV/iLy@smile.fi.intel.com> (raw)
In-Reply-To: <YdxSZ53cBGcNjbvb@smile.fi.intel.com>

On Mon, Jan 10, 2022 at 05:36:08PM +0200, Andy Shevchenko wrote:
> 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 :-)

Or full view (except single occurrences):

% git log --no-merges --oneline -- drivers/iio/common/st_sensors/ drivers/iio/*/st_* | sed -e 's,^[^ ]\+ \(.*\):[^:]\+$,\1,' | sort | uniq -c | sort -n | grep -v '^      1'
      2 iio: imu: st_lsm6dsx: st_lsm6dsx
      2 iio: light
      2 iio: lps331ap
      2 iio:magnetometer: st_magn
      2 iio: magnetometer: st_magn_spi
      2 iio: magn: st_magn
      2 iio: pressure: st_press
      2 IIO: st_accel_i2c.c
      2 iio: st_gyro
      2 iio: st_magn
      2 iio:st_magn
      2 iio:st_pressure:lps22hb
      2 iio: st_pressure: st_accel
      2 treewide
      3 iio: accel: st_sensors
      3 iio:imu
      3 iio: light: st_uvis25
      3 iio: magnetometer
      3 iio: st-accel
      3 iio: st_lsm6dsx
      4 iio: accel: st_accel_spi
      4 iio: common: st_sensors
      4 iio:magn
      4 iio: st_pressure
      5 iio: accel
      5 iio: pressure: st_pressure
      5 iio: st-sensors
      6 iio:magnetometer
      6 iio: pressure-core: st
      6 iio: sensors-core: st
      7 iio:accel
      7 iio:common
      7 iio: magnetometer: st_magn
      7 iio:st_sensors
      8 iio:gyro
      8 iio: gyro: st_gyro
      8 iio: st_accel
      8 iio:st_pressure
      9 iio:pressure
     14 iio
     16 iio: accel: st_accel
     52 iio: st_sensors
    133 iio: imu: st_lsm6dsx

-- 
With Best Regards,
Andy Shevchenko



      reply	other threads:[~2022-01-10 15:51 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-01-09 12:43 [PATCH v2] iio: stm: don't always auto-enable I2C and SPI interface drivers Nikita Yushchenko
2022-01-10 11:05 ` Andy Shevchenko
2022-01-10 12:25 ` Andy Shevchenko
2022-01-10 12:30   ` Nikita Yushchenko
2022-01-10 15:36     ` Andy Shevchenko
2022-01-10 15:50       ` Andy Shevchenko [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=YdxVsvWN7pOV/iLy@smile.fi.intel.com \
    --to=andriy.shevchenko@linux.intel.com \
    --cc=aardelean@deviqon.com \
    --cc=caihuoqing@baidu.com \
    --cc=jic23@kernel.org \
    --cc=lars@metafoo.de \
    --cc=linus.walleij@linaro.org \
    --cc=linux-iio@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=nikita.yoush@cogentembedded.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).