Commit 724330a9 authored by Brian Masney's avatar Brian Masney Committed by Jonathan Cameron

staging: iio: tsl2x7x: put function definitions on a single line

The functions tsl2x7x_invoke_change() and tsl2x7x_prox_calculate() are
short enough that the return value and static declaration can be moved
onto the same line with the function name. This patch makes that change
to increase code readability.
Signed-off-by: default avatarBrian Masney <masneyb@onstation.org>
Signed-off-by: default avatarJonathan Cameron <Jonathan.Cameron@huawei.com>
parent 3d8e4400
...@@ -752,8 +752,7 @@ static int tsl2x7x_chip_off(struct iio_dev *indio_dev) ...@@ -752,8 +752,7 @@ static int tsl2x7x_chip_off(struct iio_dev *indio_dev)
* put device back into proper state, and unlock * put device back into proper state, and unlock
* resource. * resource.
*/ */
static static int tsl2x7x_invoke_change(struct iio_dev *indio_dev)
int tsl2x7x_invoke_change(struct iio_dev *indio_dev)
{ {
struct tsl2X7X_chip *chip = iio_priv(indio_dev); struct tsl2X7X_chip *chip = iio_priv(indio_dev);
int device_status = chip->tsl2x7x_chip_status; int device_status = chip->tsl2x7x_chip_status;
...@@ -777,9 +776,8 @@ int tsl2x7x_invoke_change(struct iio_dev *indio_dev) ...@@ -777,9 +776,8 @@ int tsl2x7x_invoke_change(struct iio_dev *indio_dev)
return ret; return ret;
} }
static static void tsl2x7x_prox_calculate(int *data, int length,
void tsl2x7x_prox_calculate(int *data, int length, struct tsl2x7x_prox_stat *statP)
struct tsl2x7x_prox_stat *statP)
{ {
int i; int i;
int sample_sum; int sample_sum;
......
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