Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 317880
b: refs/heads/master
c: ee0312a
h: refs/heads/master
v: v3
  • Loading branch information
Lars-Peter Clausen authored and Jonathan Cameron committed Jul 9, 2012
1 parent b43d837 commit b5b1992
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 8 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 8c2c6ba6aa8f187b465fab13627566311a0c03fb
refs/heads/master: ee0312a05ddceb0fc871f39b8f56b4cabc5176aa
1 change: 0 additions & 1 deletion trunk/drivers/staging/iio/meter/ade7758.h
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,6 @@ struct ade7758_state {
u8 *tx;
u8 *rx;
struct mutex buf_lock;
unsigned long available_scan_masks[AD7758_NUM_WAVESRC];
struct iio_chan_spec *ade7758_ring_channels;
struct spi_transfer ring_xfer[4];
struct spi_message ring_msg;
Expand Down
7 changes: 1 addition & 6 deletions trunk/drivers/staging/iio/meter/ade7758_core.c
Original file line number Diff line number Diff line change
Expand Up @@ -883,7 +883,7 @@ static const struct iio_info ade7758_info = {

static int __devinit ade7758_probe(struct spi_device *spi)
{
int i, ret;
int ret;
struct ade7758_state *st;
struct iio_dev *indio_dev = iio_device_alloc(sizeof(*st));

Expand Down Expand Up @@ -916,11 +916,6 @@ static int __devinit ade7758_probe(struct spi_device *spi)
indio_dev->info = &ade7758_info;
indio_dev->modes = INDIO_DIRECT_MODE;

for (i = 0; i < AD7758_NUM_WAVESRC; i++)
set_bit(i, &st->available_scan_masks[i]);

indio_dev->available_scan_masks = st->available_scan_masks;

ret = ade7758_configure_ring(indio_dev);
if (ret)
goto error_free_tx;
Expand Down
1 change: 1 addition & 0 deletions trunk/drivers/staging/iio/meter/ade7758_ring.c
Original file line number Diff line number Diff line change
Expand Up @@ -114,6 +114,7 @@ static const struct iio_buffer_setup_ops ade7758_ring_setup_ops = {
.preenable = &ade7758_ring_preenable,
.postenable = &iio_triggered_buffer_postenable,
.predisable = &iio_triggered_buffer_predisable,
.validate_scan_mask = &iio_validate_scan_mask_onehot,
};

void ade7758_unconfigure_ring(struct iio_dev *indio_dev)
Expand Down

0 comments on commit b5b1992

Please sign in to comment.