Linux IIO development
 help / color / mirror / Atom feed
From: Jonathan Cameron <jic23@kernel.org>
To: Andy Shevchenko <andriy.shevchenko@intel.com>
Cc: "Petre Rodan" <petre.rodan@subdimension.ro>,
	"David Lechner" <dlechner@baylibre.com>,
	"Nuno Sá" <nuno.sa@analog.com>,
	"Andy Shevchenko" <andy@kernel.org>,
	"Rob Herring" <robh@kernel.org>,
	"Krzysztof Kozlowski" <krzk+dt@kernel.org>,
	"Conor Dooley" <conor+dt@kernel.org>,
	linux-iio@vger.kernel.org, devicetree@vger.kernel.org,
	linux-kernel@vger.kernel.org
Subject: Re: [PATCH 2/2] iio: pressure: add Honeywell ABP2 driver
Date: Sat, 6 Dec 2025 20:13:49 +0000	[thread overview]
Message-ID: <20251206201349.12d6c5b5@jic23-huawei> (raw)
In-Reply-To: <aSRF-DL3rKjyFleg@smile.fi.intel.com>

> ...
> 
> > +int abp2_common_probe(struct device *dev, const struct abp2_ops *ops, int irq)
> > +{
> > +	int ret;
> > +	struct abp2_data *data;
> > +	struct iio_dev *indio_dev;
> > +	const char *triplet;
> > +	s64 tmp;
> > +
> > +	indio_dev = devm_iio_device_alloc(dev, sizeof(*data));
> > +	if (!indio_dev)
> > +		return -ENOMEM;
> > +
> > +	data = iio_priv(indio_dev);
> > +	data->dev = dev;
> > +	data->ops = ops;
> > +	data->irq = irq;
> > +
> > +	init_completion(&data->completion);
> > +
> > +	indio_dev->name = "abp2030pa";
> > +	indio_dev->info = &abp2_info;
> > +	indio_dev->channels = abp2_channels;
> > +	indio_dev->num_channels = ARRAY_SIZE(abp2_channels);  
> 
> > +	indio_dev->modes = INDIO_DIRECT_MODE;  
> 
> Doesn't IIO core take care of this?
Not currently.  We should revisit if we this ever actually proved
useful to set.  It dates back to very early in IIO where I assumed
we would want to differential devices that only do buffered capture from
those that can do that and single shot. I'm not sure we actually have
any in that category though :(

So maybe we can justify dropping this across all drivers at somepoint
or as you say just set it as a default value.

Jonathan

      parent reply	other threads:[~2025-12-06 20:13 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2025-11-22 21:42 [PATCH 0/2] iio: pressure: add Honeywell ABP2 driver Petre Rodan
2025-11-22 21:42 ` [PATCH 1/2] dt-bindings: iio: pressure: add honeywell,abp2030pa Petre Rodan
2025-11-23 10:25   ` Krzysztof Kozlowski
2025-11-22 21:42 ` [PATCH 2/2] iio: pressure: add Honeywell ABP2 driver Petre Rodan
2025-11-24 11:48   ` Andy Shevchenko
2025-11-24 17:29     ` Petre Rodan
2025-11-24 18:41       ` Andy Shevchenko
2025-11-24 21:08         ` Petre Rodan
2025-11-24 22:54           ` Andy Shevchenko
2025-11-27  7:01             ` Petre Rodan
2025-11-27  8:37               ` Andy Shevchenko
2025-12-06 20:29                 ` Jonathan Cameron
2025-12-06 20:13     ` Jonathan Cameron [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=20251206201349.12d6c5b5@jic23-huawei \
    --to=jic23@kernel.org \
    --cc=andriy.shevchenko@intel.com \
    --cc=andy@kernel.org \
    --cc=conor+dt@kernel.org \
    --cc=devicetree@vger.kernel.org \
    --cc=dlechner@baylibre.com \
    --cc=krzk+dt@kernel.org \
    --cc=linux-iio@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=nuno.sa@analog.com \
    --cc=petre.rodan@subdimension.ro \
    --cc=robh@kernel.org \
    /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