Commit c849d253 authored by Roel Van Nyen's avatar Roel Van Nyen Committed by Greg Kroah-Hartman

Staging: iio: Fix remaining code style issues

fix code style issues
Signed-of-by: default avatarRoel Van Nyen <roel.vannyen@gmail.com>
Cc: Jonathan Cameron <jic23@cam.ac.uk>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@suse.de>
parent 18e7e78e
...@@ -809,7 +809,7 @@ int iio_device_register(struct iio_dev *dev_info) ...@@ -809,7 +809,7 @@ int iio_device_register(struct iio_dev *dev_info)
ret = iio_device_register_eventset(dev_info); ret = iio_device_register_eventset(dev_info);
if (ret) { if (ret) {
dev_err(dev_info->dev.parent, dev_err(dev_info->dev.parent,
"Failed to register event set \n"); "Failed to register event set\n");
goto error_free_sysfs; goto error_free_sysfs;
} }
if (dev_info->modes & INDIO_RING_TRIGGERED) if (dev_info->modes & INDIO_RING_TRIGGERED)
......
...@@ -126,8 +126,7 @@ int iio_store_to_sw_ring(struct iio_sw_ring_buffer *ring, ...@@ -126,8 +126,7 @@ int iio_store_to_sw_ring(struct iio_sw_ring_buffer *ring,
spin_lock(&ring->buf.shared_ev_pointer.lock); spin_lock(&ring->buf.shared_ev_pointer.lock);
ret = iio_push_or_escallate_ring_event(&ring->buf, ret = iio_push_or_escallate_ring_event(&ring->buf,
IIO_EVENT_CODE_RING_100_FULL, IIO_EVENT_CODE_RING_100_FULL, timestamp);
timestamp);
spin_unlock(&ring->buf.shared_ev_pointer.lock); spin_unlock(&ring->buf.shared_ev_pointer.lock);
if (ret) if (ret)
goto error_ret; goto error_ret;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment