Add newlines to improve code readability in preparation for moving the
driver out of staging.
Signed-off-by: Brian Masney <masneyb@onstation.org>
Signed-off-by: Jonathan Cameron <jic23@kernel.org>
write_done:
mutex_unlock(&chip->lock);
+
return ret;
}
read_done:
mutex_unlock(&chip->lock);
+
return ret;
}
indio_dev = devm_iio_device_alloc(&client->dev, sizeof(*chip));
if (!indio_dev)
return -ENOMEM;
+
chip = iio_priv(indio_dev);
i2c_set_clientdata(client, indio_dev);
indio_dev->name = name;
indio_dev->dev.parent = &client->dev;
indio_dev->modes = INDIO_DIRECT_MODE;
+
return devm_iio_device_register(&client->dev, indio_dev);
}
chip->suspended = true;
mutex_unlock(&chip->lock);
+
return 0;
}
chip->suspended = false;
mutex_unlock(&chip->lock);
+
return err;
}