From: Jonathan Cameron <jic23@kernel.org>
To: Alexandru Ardelean <alexandru.ardelean@analog.com>
Cc: <linux-iio@vger.kernel.org>, <linux-kernel@vger.kernel.org>,
<lars@metafoo.de>
Subject: Re: [PATCH v2 4/5] iio: ad_sigma_delta: remove unused IIO channel macros
Date: Sat, 21 Mar 2020 16:53:55 +0000 [thread overview]
Message-ID: <20200321165355.025fe7d6@archlinux> (raw)
In-Reply-To: <20200321090802.11537-4-alexandru.ardelean@analog.com>
On Sat, 21 Mar 2020 11:08:01 +0200
Alexandru Ardelean <alexandru.ardelean@analog.com> wrote:
> Now that all channel SigmaDelta IIO channel macros have been localized,
> remove the generic ones.
>
> Signed-off-by: Alexandru Ardelean <alexandru.ardelean@analog.com>
Applied.
Thanks,
Jonathan
> ---
> include/linux/iio/adc/ad_sigma_delta.h | 58 --------------------------
> 1 file changed, 58 deletions(-)
>
> diff --git a/include/linux/iio/adc/ad_sigma_delta.h b/include/linux/iio/adc/ad_sigma_delta.h
> index 5a127c0ed200..a3a838dcf8e4 100644
> --- a/include/linux/iio/adc/ad_sigma_delta.h
> +++ b/include/linux/iio/adc/ad_sigma_delta.h
> @@ -133,62 +133,4 @@ void ad_sd_cleanup_buffer_and_trigger(struct iio_dev *indio_dev);
>
> int ad_sd_validate_trigger(struct iio_dev *indio_dev, struct iio_trigger *trig);
>
> -#define __AD_SD_CHANNEL(_si, _channel1, _channel2, _address, _bits, \
> - _storagebits, _shift, _extend_name, _type, _mask_all) \
> - { \
> - .type = (_type), \
> - .differential = (_channel2 == -1 ? 0 : 1), \
> - .indexed = 1, \
> - .channel = (_channel1), \
> - .channel2 = (_channel2), \
> - .address = (_address), \
> - .extend_name = (_extend_name), \
> - .info_mask_separate = BIT(IIO_CHAN_INFO_RAW) | \
> - BIT(IIO_CHAN_INFO_OFFSET), \
> - .info_mask_shared_by_type = BIT(IIO_CHAN_INFO_SCALE), \
> - .info_mask_shared_by_all = _mask_all, \
> - .scan_index = (_si), \
> - .scan_type = { \
> - .sign = 'u', \
> - .realbits = (_bits), \
> - .storagebits = (_storagebits), \
> - .shift = (_shift), \
> - .endianness = IIO_BE, \
> - }, \
> - }
> -
> -#define AD_SD_DIFF_CHANNEL(_si, _channel1, _channel2, _address, _bits, \
> - _storagebits, _shift) \
> - __AD_SD_CHANNEL(_si, _channel1, _channel2, _address, _bits, \
> - _storagebits, _shift, NULL, IIO_VOLTAGE, \
> - BIT(IIO_CHAN_INFO_SAMP_FREQ))
> -
> -#define AD_SD_SHORTED_CHANNEL(_si, _channel, _address, _bits, \
> - _storagebits, _shift) \
> - __AD_SD_CHANNEL(_si, _channel, _channel, _address, _bits, \
> - _storagebits, _shift, "shorted", IIO_VOLTAGE, \
> - BIT(IIO_CHAN_INFO_SAMP_FREQ))
> -
> -#define AD_SD_CHANNEL(_si, _channel, _address, _bits, \
> - _storagebits, _shift) \
> - __AD_SD_CHANNEL(_si, _channel, -1, _address, _bits, \
> - _storagebits, _shift, NULL, IIO_VOLTAGE, \
> - BIT(IIO_CHAN_INFO_SAMP_FREQ))
> -
> -#define AD_SD_CHANNEL_NO_SAMP_FREQ(_si, _channel, _address, _bits, \
> - _storagebits, _shift) \
> - __AD_SD_CHANNEL(_si, _channel, -1, _address, _bits, \
> - _storagebits, _shift, NULL, IIO_VOLTAGE, 0)
> -
> -#define AD_SD_TEMP_CHANNEL(_si, _address, _bits, _storagebits, _shift) \
> - __AD_SD_CHANNEL(_si, 0, -1, _address, _bits, \
> - _storagebits, _shift, NULL, IIO_TEMP, \
> - BIT(IIO_CHAN_INFO_SAMP_FREQ))
> -
> -#define AD_SD_SUPPLY_CHANNEL(_si, _channel, _address, _bits, _storagebits, \
> - _shift) \
> - __AD_SD_CHANNEL(_si, _channel, -1, _address, _bits, \
> - _storagebits, _shift, "supply", IIO_VOLTAGE, \
> - BIT(IIO_CHAN_INFO_SAMP_FREQ))
> -
> #endif
next prev parent reply other threads:[~2020-03-21 16:54 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-03-21 9:07 [PATCH v2 1/5] iio: adc: ad7780: define/use own IIO channel macros Alexandru Ardelean
2020-03-21 9:07 ` [PATCH v2 2/5] iio: adc: ad7791: " Alexandru Ardelean
2020-03-21 16:51 ` Jonathan Cameron
2020-03-21 9:08 ` [PATCH v2 3/5] iio: adc: ad7793: " Alexandru Ardelean
2020-03-21 16:52 ` Jonathan Cameron
2020-03-21 9:08 ` [PATCH v2 4/5] iio: ad_sigma_delta: remove unused " Alexandru Ardelean
2020-03-21 16:53 ` Jonathan Cameron [this message]
2020-03-21 9:08 ` [PATCH v2 5/5] iio: adc: ad7793: use read_avail iio hook for scale available Alexandru Ardelean
2020-03-21 16:57 ` Jonathan Cameron
2020-03-22 9:38 ` Ardelean, Alexandru
2020-03-21 19:37 ` Andy Shevchenko
2020-03-22 9:18 ` Ardelean, Alexandru
2020-03-22 15:15 ` Jonathan Cameron
2020-03-21 16:50 ` [PATCH v2 1/5] iio: adc: ad7780: define/use own IIO channel macros 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=20200321165355.025fe7d6@archlinux \
--to=jic23@kernel.org \
--cc=alexandru.ardelean@analog.com \
--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.