staging:iio: Add support for multiple buffers
Route all buffer writes through the demux. Addition or removal of a buffer results in tear down and setup of all the buffers for a given device. Signed-off-by: Jonathan Cameron <jic23@kernel.org> Tested-by: srinivas pandruvada <srinivas.pandruvada@intel.com>
This commit is contained in:
@@ -856,6 +856,7 @@ struct iio_dev *iio_device_alloc(int sizeof_priv)
|
||||
return NULL;
|
||||
}
|
||||
dev_set_name(&dev->dev, "iio:device%d", dev->id);
|
||||
INIT_LIST_HEAD(&dev->buffer_list);
|
||||
}
|
||||
|
||||
return dev;
|
||||
|
||||
Reference in New Issue
Block a user