Skip to content

Commit

Permalink
staging: iio: ad5933: switch buffer mode to software
Browse files Browse the repository at this point in the history
Since commit 152a6a8 ,
the semantic of the INDIO_BUFFER_HARDWARE flag has changed,
in the sense that buffers are hard/soft hybrid
buffers.

Since commit 2d6ca60 ,
the INDIO_BUFFER_HARDWARE flag has been re-purposed for
DMA buffers.

This driver has lagged behind these changes, and
in order for buffers to work, the INDIO_BUFFER_SOFTWARE
needs to be used.

Signed-off-by: Alexandru Ardelean <alexandru.ardelean@analog.com>
  • Loading branch information
commodo authored and dbogdan committed Jan 25, 2018
1 parent 8277d20 commit 03c32c8
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions drivers/staging/iio/impedance-analyzer/ad5933.c
Original file line number Diff line number Diff line change
Expand Up @@ -642,8 +642,6 @@ static int ad5933_register_ring_funcs_and_init(struct iio_dev *indio_dev)
/* Ring buffer functions - here trigger setup related */
indio_dev->setup_ops = &ad5933_ring_setup_ops;

indio_dev->modes |= INDIO_BUFFER_HARDWARE;

return 0;
}

Expand Down Expand Up @@ -754,7 +752,7 @@ static int ad5933_probe(struct i2c_client *client,
indio_dev->dev.parent = &client->dev;
indio_dev->info = &ad5933_info;
indio_dev->name = id->name;
indio_dev->modes = INDIO_DIRECT_MODE;
indio_dev->modes = (INDIO_BUFFER_SOFTWARE | INDIO_DIRECT_MODE);
indio_dev->channels = ad5933_channels;
indio_dev->num_channels = ARRAY_SIZE(ad5933_channels);

Expand Down

0 comments on commit 03c32c8

Please sign in to comment.