Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 18ce2d50 authored by Brian Masney's avatar Brian Masney Committed by Jonathan Cameron
Browse files

staging: iio: tsl2x7x: correct alignment of parenthesis



Correct error from checkpatch.pl to improve code readibility: Alignment
should match open parenthesis. An unnecessary cast to 'struct
tsl2x7x_lux *' was removed and the return value of static definition of
in_illuminance0_calibscale_available_show() was put on its own line
due to the length of that sysfs attribute.

Signed-off-by: default avatarBrian Masney <masneyb@onstation.org>
Signed-off-by: default avatarJonathan Cameron <Jonathan.Cameron@huawei.com>
parent 3e0c8f68
Loading
Loading
Loading
Loading
+18 −17
Original line number Diff line number Diff line
@@ -521,7 +521,7 @@ static void tsl2x7x_defaults(struct tsl2X7X_chip *chip)
		       sizeof(chip->pdata->platform_lux_table));
	else
		memcpy(chip->tsl2x7x_device_lux,
		(struct tsl2x7x_lux *)tsl2x7x_default_lux_table_group[chip->id],
		       tsl2x7x_default_lux_table_group[chip->id],
		       TSL2X7X_DEFAULT_TABLE_BYTES);
}

@@ -867,7 +867,8 @@ static void tsl2x7x_prox_cal(struct iio_dev *indio_dev)
		tsl2x7x_chip_on(indio_dev);
}

static ssize_t in_illuminance0_calibscale_available_show(struct device *dev,
static ssize_t
in_illuminance0_calibscale_available_show(struct device *dev,
					  struct device_attribute *attr,
					  char *buf)
{