Linux IIO development
 help / color / mirror / Atom feed
From: Jonathan Cameron <jic23@kernel.org>
To: linux-iio@vger.kernel.org
Cc: Jonathan Cameron <jic23@kernel.org>,
	Patrick Vasseur <patrick.vasseur@c-s.fr>,
	"Signed-off-by: Christophe Leroy" <christophe.leroy@c-s.fr>
Subject: [PATCH 2/2] iio:adc:ad7923 move to info_mask_(shared_by_type/separate)
Date: Sun,  3 Mar 2013 20:03:53 +0000	[thread overview]
Message-ID: <1362341033-9506-3-git-send-email-jic23@kernel.org> (raw)
In-Reply-To: <1362341033-9506-1-git-send-email-jic23@kernel.org>

The original info_mask is going away in favour of the broken out versions.

Signed-off-by: Jonathan Cameron <jic23@kernel.org>
cc: Patrick Vasseur <patrick.vasseur@c-s.fr>
cc: Signed-off-by: Christophe Leroy <christophe.leroy@c-s.fr>
---
 drivers/iio/adc/ad7923.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/drivers/iio/adc/ad7923.c b/drivers/iio/adc/ad7923.c
index 28b2bda..766c740 100644
--- a/drivers/iio/adc/ad7923.c
+++ b/drivers/iio/adc/ad7923.c
@@ -69,8 +69,8 @@ struct ad7923_state {
 		.type = IIO_VOLTAGE,					\
 		.indexed = 1,						\
 		.channel = index,					\
-		.info_mask = IIO_CHAN_INFO_RAW_SEPARATE_BIT |		\
-		IIO_CHAN_INFO_SCALE_SHARED_BIT,				\
+		.info_mask_separate = BIT(IIO_CHAN_INFO_RAW),		\
+		.info_mask_shared_by_type = BIT(IIO_CHAN_INFO_SCALE),	\
 		.address = index,					\
 		.scan_index = index,					\
 		.scan_type = {						\
-- 
1.8.1.4

      parent reply	other threads:[~2013-03-03 20:03 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-03-03 20:03 [PATCH 0/2] IIO break info_mask into a pair of masks - Additional drivers Jonathan Cameron
2013-03-03 20:03 ` [PATCH 1/2] iio:adc:exynos move to info_mask_(shared_by_type/separate) Jonathan Cameron
2013-03-05 23:44   ` Naveen Krishna Ch
2013-03-17 19:44     ` Jonathan Cameron
2013-03-03 20:03 ` 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=1362341033-9506-3-git-send-email-jic23@kernel.org \
    --to=jic23@kernel.org \
    --cc=christophe.leroy@c-s.fr \
    --cc=linux-iio@vger.kernel.org \
    --cc=patrick.vasseur@c-s.fr \
    /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