return 0;
}
- static struct iio_dev *scmi_alloc_iiodev(struct device *dev,
- struct scmi_handle *handle,
- const struct scmi_sensor_info *sensor_info)
-static int scmi_iio_buffers_setup(struct iio_dev *scmi_iiodev)
-{
- struct iio_buffer *buffer;
-
- buffer = devm_iio_kfifo_allocate(&scmi_iiodev->dev);
- if (!buffer)
- return -ENOMEM;
-
- iio_device_attach_buffer(scmi_iiodev, buffer);
- scmi_iiodev->modes |= INDIO_BUFFER_SOFTWARE;
- scmi_iiodev->setup_ops = &scmi_iio_buffer_ops;
- return 0;
-}
-
+ static struct iio_dev *
+ scmi_alloc_iiodev(struct scmi_device *sdev,
+ const struct scmi_sensor_proto_ops *ops,
+ struct scmi_protocol_handle *ph,
+ const struct scmi_sensor_info *sensor_info)
{
struct iio_chan_spec *iio_channels;
struct scmi_iio_priv *sensor;