Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 304673
b: refs/heads/master
c: 2a0b871
h: refs/heads/master
i:
  304671: 31114b4
v: v3
  • Loading branch information
Lars-Peter Clausen authored and Greg Kroah-Hartman committed May 14, 2012
1 parent 30e53a3 commit 54fd847
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 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: 48f29345cee22a4dfaf384ab3bbb8ba14f92b6a9
refs/heads/master: 2a0b871c4fee4405772428ac6178adce30c41abf
7 changes: 3 additions & 4 deletions trunk/drivers/staging/iio/meter/ade7758_ring.c
Original file line number Diff line number Diff line change
Expand Up @@ -19,11 +19,10 @@

/**
* ade7758_spi_read_burst() - read data registers
* @dev: device associated with child of actual device (iio_dev or iio_trig)
* @indio_dev: the IIO device
**/
static int ade7758_spi_read_burst(struct device *dev)
static int ade7758_spi_read_burst(struct iio_dev *indio_dev)
{
struct iio_dev *indio_dev = dev_get_drvdata(dev);
struct ade7758_state *st = iio_priv(indio_dev);
int ret;

Expand Down Expand Up @@ -68,7 +67,7 @@ static irqreturn_t ade7758_trigger_handler(int irq, void *p)
u32 *dat32 = (u32 *)dat64;

if (!bitmap_empty(indio_dev->active_scan_mask, indio_dev->masklength))
if (ade7758_spi_read_burst(&indio_dev->dev) >= 0)
if (ade7758_spi_read_burst(indio_dev) >= 0)
*dat32 = get_unaligned_be32(&st->rx_buf[5]) & 0xFFFFFF;

/* Guaranteed to be aligned with 8 byte boundary */
Expand Down

0 comments on commit 54fd847

Please sign in to comment.