aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/iio/adc/max1363.c
diff options
context:
space:
mode:
authorLars-Peter Clausen <lars@metafoo.de>2013-09-16 04:34:00 -0400
committerJonathan Cameron <jic23@kernel.org>2013-09-16 17:37:37 -0400
commit7a1aeba7ed0d5a1e83fd5a8ee2a2869430d40347 (patch)
tree1e51407bffb1b92595012f4e3f7417a950935aae /drivers/iio/adc/max1363.c
parent2432e1aeec80872db806b76476733036fcce55ee (diff)
iio:max1361: Use default triggered buffer setup ops
The max1361 driver uses the same callbacks as the triggered buffer default buffer setup ops, so just remove the max1361 specific ops and let it use the default ops. Signed-off-by: Lars-Peter Clausen <lars@metafoo.de> Signed-off-by: Jonathan Cameron <jic23@kernel.org>
Diffstat (limited to 'drivers/iio/adc/max1363.c')
-rw-r--r--drivers/iio/adc/max1363.c8
1 files changed, 1 insertions, 7 deletions
diff --git a/drivers/iio/adc/max1363.c b/drivers/iio/adc/max1363.c
index 4fb35d1d7494..1e7160de0b90 100644
--- a/drivers/iio/adc/max1363.c
+++ b/drivers/iio/adc/max1363.c
@@ -1484,12 +1484,6 @@ done:
1484 return IRQ_HANDLED; 1484 return IRQ_HANDLED;
1485} 1485}
1486 1486
1487static const struct iio_buffer_setup_ops max1363_buffered_setup_ops = {
1488 .postenable = &iio_triggered_buffer_postenable,
1489 .preenable = &iio_sw_buffer_preenable,
1490 .predisable = &iio_triggered_buffer_predisable,
1491};
1492
1493static int max1363_probe(struct i2c_client *client, 1487static int max1363_probe(struct i2c_client *client,
1494 const struct i2c_device_id *id) 1488 const struct i2c_device_id *id)
1495{ 1489{
@@ -1559,7 +1553,7 @@ static int max1363_probe(struct i2c_client *client,
1559 goto error_disable_reg; 1553 goto error_disable_reg;
1560 1554
1561 ret = iio_triggered_buffer_setup(indio_dev, NULL, 1555 ret = iio_triggered_buffer_setup(indio_dev, NULL,
1562 &max1363_trigger_handler, &max1363_buffered_setup_ops); 1556 &max1363_trigger_handler, NULL);
1563 if (ret) 1557 if (ret)
1564 goto error_disable_reg; 1558 goto error_disable_reg;
1565 1559