linux-iio.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Jonathan Cameron <jic23@kernel.org>
To: Lars-Peter Clausen <lars@metafoo.de>
Cc: linux-iio@vger.kernel.org
Subject: Re: [PATCH 16/17] staging:iio:ade7758: Remove redundant call to iio_sw_buffer_preenable()
Date: Wed, 16 Oct 2013 19:16:46 +0100	[thread overview]
Message-ID: <525ED80E.8090004@kernel.org> (raw)
In-Reply-To: <1381769370-17100-16-git-send-email-lars@metafoo.de>

On 10/14/13 17:49, Lars-Peter Clausen wrote:
> The equivalent of iio_sw_buffer_preenable() is now done in the IIO buffer core,
> so there is no need to do this from the driver anymore.
> 
> Signed-off-by: Lars-Peter Clausen <lars@metafoo.de>
Applied to the togreg branch of iio.git

Thanks
> ---
>  drivers/staging/iio/meter/ade7758_ring.c | 5 -----
>  1 file changed, 5 deletions(-)
> 
> diff --git a/drivers/staging/iio/meter/ade7758_ring.c b/drivers/staging/iio/meter/ade7758_ring.c
> index 7a448ff..c0accf8 100644
> --- a/drivers/staging/iio/meter/ade7758_ring.c
> +++ b/drivers/staging/iio/meter/ade7758_ring.c
> @@ -87,15 +87,10 @@ static int ade7758_ring_preenable(struct iio_dev *indio_dev)
>  {
>  	struct ade7758_state *st = iio_priv(indio_dev);
>  	unsigned channel;
> -	int ret;
>  
>  	if (!bitmap_empty(indio_dev->active_scan_mask, indio_dev->masklength))
>  		return -EINVAL;
>  
> -	ret = iio_sw_buffer_preenable(indio_dev);
> -	if (ret < 0)
> -		return ret;
> -
>  	channel = find_first_bit(indio_dev->active_scan_mask,
>  				 indio_dev->masklength);
>  
> 

  reply	other threads:[~2013-10-16 17:16 UTC|newest]

Thread overview: 35+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-10-14 16:49 [PATCH 01/17] iio: Update buffer's bytes per datum after updating the scan mask Lars-Peter Clausen
2013-10-14 16:49 ` [PATCH 02/17] iio:st_accel: Drop redundant call to iio_sw_buffer_preenable() Lars-Peter Clausen
2013-10-16 18:11   ` Jonathan Cameron
2013-10-14 16:49 ` [PATCH 03/17] iio:ad7266: Remove redundant call to iio_sw_preenable() Lars-Peter Clausen
2013-10-16 18:12   ` Jonathan Cameron
2013-10-14 16:49 ` [PATCH 04/17] iio:ad7887: Remove redundant call to iio_sw_buffer_preenable() Lars-Peter Clausen
2013-10-16 18:12   ` Jonathan Cameron
2013-10-14 16:49 ` [PATCH 05/17] iio:ad_sigma_delta: " Lars-Peter Clausen
2013-10-16 18:12   ` Jonathan Cameron
2013-10-14 16:49 ` [PATCH 06/17] iio:ti_am335x: " Lars-Peter Clausen
2013-10-16 18:13   ` Jonathan Cameron
2013-10-14 16:49 ` [PATCH 07/17] iio:st_gyro: " Lars-Peter Clausen
2013-10-16 18:13   ` Jonathan Cameron
2013-10-14 16:49 ` [PATCH 08/17] iio:triggered-buffer: " Lars-Peter Clausen
2013-10-16 18:13   ` Jonathan Cameron
2013-10-14 16:49 ` [PATCH 09/17] iio:st_magn: " Lars-Peter Clausen
2013-10-16 18:14   ` Jonathan Cameron
2013-10-14 16:49 ` [PATCH 10/17] iio:st_pressure: " Lars-Peter Clausen
2013-10-16 18:14   ` Jonathan Cameron
2013-10-14 16:49 ` [PATCH 11/17] iio:gp2ap020a00f: " Lars-Peter Clausen
2013-10-16 18:14   ` Jonathan Cameron
2013-10-14 16:49 ` [PATCH 12/17] staging:iio:lis3l02dq: " Lars-Peter Clausen
2013-10-16 18:15   ` Jonathan Cameron
2013-10-14 16:49 ` [PATCH 13/17] staging:iio:mxs-lradc: " Lars-Peter Clausen
2013-10-16 18:15   ` Jonathan Cameron
2013-10-14 16:49 ` [PATCH 14/17] staging:iio:simple-dummy: " Lars-Peter Clausen
2013-10-16 18:16   ` Jonathan Cameron
2013-10-14 16:49 ` [PATCH 15/17] staging:iio:ad5933: " Lars-Peter Clausen
2013-10-16 18:16   ` Jonathan Cameron
2013-10-14 16:49 ` [PATCH 16/17] staging:iio:ade7758: " Lars-Peter Clausen
2013-10-16 18:16   ` Jonathan Cameron [this message]
2013-10-14 16:49 ` [PATCH 17/17] iio: Remove unused iio_sw_buffer_preenable() Lars-Peter Clausen
2013-10-16 18:17   ` Jonathan Cameron
2013-10-14 22:00 ` [PATCH 01/17] iio: Update buffer's bytes per datum after updating the scan mask Jonathan Cameron
2013-10-16 18:09 ` 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=525ED80E.8090004@kernel.org \
    --to=jic23@kernel.org \
    --cc=lars@metafoo.de \
    --cc=linux-iio@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 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).