Re: [PATCH v2 1/8] staging: iio: isl29018: add newlines to improve readability

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 10/10/16 08:19, Brian Masney wrote:
> Add newlines to improve code readability in preparation for moving the
> driver out of staging.
> 
> Signed-off-by: Brian Masney <masneyb@xxxxxxxxxxxxx>
Applied to the togreg branch of iio.git and pushed out as testing for
the autobuilders to play with it.

Thanks,

Jonathan
> ---
>  drivers/staging/iio/light/isl29018.c | 6 ++++++
>  1 file changed, 6 insertions(+)
> 
> diff --git a/drivers/staging/iio/light/isl29018.c b/drivers/staging/iio/light/isl29018.c
> index 52bfb1cb..26bbbb8 100644
> --- a/drivers/staging/iio/light/isl29018.c
> +++ b/drivers/staging/iio/light/isl29018.c
> @@ -399,6 +399,7 @@ static int isl29018_write_raw(struct iio_dev *indio_dev,
>  
>  write_done:
>  	mutex_unlock(&chip->lock);
> +
>  	return ret;
>  }
>  
> @@ -464,6 +465,7 @@ static int isl29018_read_raw(struct iio_dev *indio_dev,
>  
>  read_done:
>  	mutex_unlock(&chip->lock);
> +
>  	return ret;
>  }
>  
> @@ -726,6 +728,7 @@ static int isl29018_probe(struct i2c_client *client,
>  	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);
> @@ -765,6 +768,7 @@ static int isl29018_probe(struct i2c_client *client,
>  	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);
>  }
>  
> @@ -782,6 +786,7 @@ static int isl29018_suspend(struct device *dev)
>  	chip->suspended = true;
>  
>  	mutex_unlock(&chip->lock);
> +
>  	return 0;
>  }
>  
> @@ -797,6 +802,7 @@ static int isl29018_resume(struct device *dev)
>  		chip->suspended = false;
>  
>  	mutex_unlock(&chip->lock);
> +
>  	return err;
>  }
>  
> 

--
To unsubscribe from this list: send the line "unsubscribe linux-iio" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html



[Index of Archives]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Input]     [Linux Kernel]     [Linux SCSI]     [X.org]

  Powered by Linux