All of lore.kernel.org
 help / color / mirror / Atom feed
From: Alexandru Ardelean <alexandru.ardelean@analog.com>
To: <linux-iio@vger.kernel.org>, <linux-kernel@vger.kernel.org>
Cc: <jic23@kernel.org>, <lars@metafoo.de>,
	Alexandru Ardelean <alexandru.ardelean@analog.com>
Subject: [RFC PATCH 4/5] iio: adc: ad7768-1: remove explicit modes initialization
Date: Thu, 3 Dec 2020 12:04:22 +0200	[thread overview]
Message-ID: <20201203100423.77270-5-alexandru.ardelean@analog.com> (raw)
In-Reply-To: <20201203100423.77270-1-alexandru.ardelean@analog.com>

The INDIO_DIRECT_MODE mode bit will be set by iio_device_alloc() and
iio_triggered_buffer_setup() will set the INDIO_BUFFER_TRIGGERED bit.

Signed-off-by: Alexandru Ardelean <alexandru.ardelean@analog.com>
---
 drivers/iio/adc/ad7768-1.c | 1 -
 1 file changed, 1 deletion(-)

diff --git a/drivers/iio/adc/ad7768-1.c b/drivers/iio/adc/ad7768-1.c
index 5c0cbee03230..0b2fa526d03c 100644
--- a/drivers/iio/adc/ad7768-1.c
+++ b/drivers/iio/adc/ad7768-1.c
@@ -617,7 +617,6 @@ static int ad7768_probe(struct spi_device *spi)
 	indio_dev->num_channels = ARRAY_SIZE(ad7768_channels);
 	indio_dev->name = spi_get_device_id(spi)->name;
 	indio_dev->info = &ad7768_info;
-	indio_dev->modes = INDIO_DIRECT_MODE | INDIO_BUFFER_TRIGGERED;
 
 	ret = ad7768_setup(st);
 	if (ret < 0) {
-- 
2.27.0


  parent reply	other threads:[~2020-12-03 10:05 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-12-03 10:04 [RFC PATCH 0/5] iio: move 'modes' initialization to core Alexandru Ardelean
2020-12-03 10:04 ` [RFC PATCH 1/5] iio: core: initialize 'modes' to INDIO_DIRECT_MODE by default Alexandru Ardelean
2020-12-03 10:04 ` [RFC PATCH 2/5] iio,counter: remove modes init for INDIO_DIRECT_MODE only drivers Alexandru Ardelean
2020-12-03 10:04 ` [RFC PATCH 3/5] iio: remove modes init for INDIO_DIRECT_MODE only drivers (manual) Alexandru Ardelean
2020-12-03 10:04 ` Alexandru Ardelean [this message]
2020-12-03 10:04 ` [RFC PATCH 5/5] iio: magnetometer: rm3100: remove explicit modes initialization Alexandru Ardelean
2020-12-05 16:59 ` [RFC PATCH 0/5] iio: move 'modes' initialization to core Jonathan Cameron
2020-12-21  7:39   ` Alexandru Ardelean

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=20201203100423.77270-5-alexandru.ardelean@analog.com \
    --to=alexandru.ardelean@analog.com \
    --cc=jic23@kernel.org \
    --cc=lars@metafoo.de \
    --cc=linux-iio@vger.kernel.org \
    --cc=linux-kernel@vger.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.