From: Jonathan Cameron <jic23@kernel.org>
To: Lorenzo Bianconi <lorenzo.bianconi@redhat.com>
Cc: linux-iio@vger.kernel.org, devicetree@vger.kernel.org
Subject: Re: [PATCH 5/7] iio: imu: st_lsm6dsx: add i2c embedded controller support
Date: Sun, 4 Nov 2018 18:21:43 +0000 [thread overview]
Message-ID: <20181104182143.364efce5@archlinux> (raw)
In-Reply-To: <CAJ0CqmWxHpoz+a-ZuKnnuyDXqF8G7BE3aOfaorD-uT2QX+Tirg@mail.gmail.com>
On Sun, 4 Nov 2018 19:00:39 +0100
Lorenzo Bianconi <lorenzo.bianconi@redhat.com> wrote:
> >
> > On Sun, 4 Nov 2018 15:39:04 +0100
> > Lorenzo Bianconi <lorenzo.bianconi@redhat.com> wrote:
> >
> > > i2c controller embedded in lsm6dx series can connect up to four
> > > slave devices using accelerometer sensor as trigger for i2c
> > > read/write operations.
> > > Introduce sensor hub support for lsm6dso sensor. Add register map
> > > for lis2mdl magnetometer sensor
> > >
> > > Signed-off-by: Lorenzo Bianconi <lorenzo.bianconi@redhat.com>
> >
> > I'd completely forgotten how this driver did the multiple device registration
> > so this had me completely confused initially ;)
> >
> > Perhaps just state here that the result is an entirely separate apparent device
> > and what it's functionality is at this point in the patch set?
> >
>
> ack, will do in v2
>
> > A few minor comments inline. This looks like it is coming together quite
> > nicely to me.
> >
>
> Thx :). I will address your comments in v2, just one question inline.
> Regards,
>
> Lorenzo
>
> > Jonathan
...
> > > +
> > > +static ssize_t st_lsm6dsx_shub_scale_avail(struct device *dev,
> > > + struct device_attribute *attr,
> > > + char *buf)
> > > +{
> > > + struct st_lsm6dsx_sensor *sensor = iio_priv(dev_get_drvdata(dev));
> > > + const struct st_lsm6dsx_ext_dev_settings *settings;
> > > + int i, len = 0;
> > > +
> > > + settings = sensor->ext_info.settings;
> > > + for (i = 0; i < ST_LSM6DSX_FS_LIST_SIZE; i++) {
> > > + u16 val = settings->fs_table.fs_avl[i].gain;
> > > +
> > > + if (val > 0)
> > > + len += scnprintf(buf + len, PAGE_SIZE - len, "0.%06u ",
> > > + val);
> > > + }
> > > + buf[len - 1] = '\n';
> > > +
> > > + return len;
> > > +}
> > > +
> > > +static IIO_DEV_ATTR_SAMP_FREQ_AVAIL(st_lsm6dsx_shub_sampling_freq_avail);
> > > +static IIO_DEVICE_ATTR(in_ext_scale_available, 0444,
> > > + st_lsm6dsx_shub_scale_avail, NULL, 0);
> > > +static struct attribute *st_lsm6dsx_ext_attributes[] = {
> > > + &iio_dev_attr_sampling_frequency_available.dev_attr.attr,
> > > + &iio_dev_attr_in_ext_scale_available.dev_attr.attr,
> >
> > What's this abi element?
> >
>
> what do you mean here? I did not get you sorry :)
>
Seems to be creating a sysfs file called
in_ext_scale_available which I don't think is documented anywhere?
Intent was probably in_scale_available? Or maybe in_magn_scale_available?
next prev parent reply other threads:[~2018-11-05 3:37 UTC|newest]
Thread overview: 27+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-11-04 14:38 [PATCH 0/7] add i2c controller support to st_lsm6dsx driver Lorenzo Bianconi
2018-11-04 14:39 ` [PATCH 1/7] iio: imu: st_lsm6dsx: introduce locked read/write utility routines Lorenzo Bianconi
2018-11-04 17:11 ` Jonathan Cameron
2018-11-04 14:39 ` [PATCH 2/7] iio: imu: st_lsm6dsx: reboot memory content after reset Lorenzo Bianconi
2018-11-04 17:12 ` Jonathan Cameron
2018-11-04 17:30 ` Lorenzo Bianconi
2018-11-04 14:39 ` [PATCH 3/7] iio: imu: st_lsm6dsx: remove static from st_lsm6dsx_set_watermark Lorenzo Bianconi
2018-11-04 14:39 ` [PATCH 4/7] iio: imu: st_lsm6dsx: introduce ST_LSM6DSX_ID_EXT sensor ids Lorenzo Bianconi
2018-11-04 17:18 ` Jonathan Cameron
2018-11-04 17:47 ` Lorenzo Bianconi
2018-11-04 18:18 ` Jonathan Cameron
2018-11-04 14:39 ` [PATCH 5/7] iio: imu: st_lsm6dsx: add i2c embedded controller support Lorenzo Bianconi
2018-11-04 17:42 ` Jonathan Cameron
2018-11-04 18:00 ` Lorenzo Bianconi
2018-11-04 18:21 ` Jonathan Cameron [this message]
2018-11-04 18:29 ` Lorenzo Bianconi
2018-11-04 14:39 ` [PATCH 6/7] iio: imu: st_lsm6dsx: add hw FIFO support to i2c controller Lorenzo Bianconi
2018-11-04 17:54 ` Jonathan Cameron
2018-11-04 18:14 ` Lorenzo Bianconi
2018-11-04 18:31 ` Jonathan Cameron
2018-11-04 18:56 ` Lorenzo Bianconi
2018-11-04 14:39 ` [PATCH 7/7] dt-bindings: iio: imu: st_lsm6dsx: add support to i2c pullup resistors Lorenzo Bianconi
2018-11-04 18:12 ` [PATCH 0/7] add i2c controller support to st_lsm6dsx driver Jonathan Cameron
2018-11-04 18:27 ` Lorenzo Bianconi
2018-11-04 18:34 ` Jonathan Cameron
2018-11-04 19:07 ` Lorenzo Bianconi
2018-11-11 14:33 ` Jonathan Cameron
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=20181104182143.364efce5@archlinux \
--to=jic23@kernel.org \
--cc=devicetree@vger.kernel.org \
--cc=linux-iio@vger.kernel.org \
--cc=lorenzo.bianconi@redhat.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).