mirror of https://gitee.com/openkylin/linux.git
staging: iio: tsl2583: fix multiline comment syntax
The definition of the tsl2583_device_lux struct has a series of single line comments. There are two other cases where the multiline comments did not have an initial blank line. Change these comments to use the proper multiline syntax. Signed-off-by: Brian Masney <masneyb@onstation.org> Signed-off-by: Jonathan Cameron <jic23@kernel.org>
This commit is contained in:
parent
a3549966ee
commit
2a1e3f074c
|
@ -93,9 +93,11 @@ struct tsl2583_lux {
|
||||||
unsigned int ch1;
|
unsigned int ch1;
|
||||||
};
|
};
|
||||||
|
|
||||||
/* This structure is intentionally large to accommodate updates via sysfs. */
|
/*
|
||||||
/* Sized to 11 = max 10 segments + 1 termination segment */
|
* This structure is intentionally large to accommodate updates via sysfs.
|
||||||
/* Assumption is one and only one type of glass used */
|
* Sized to 11 = max 10 segments + 1 termination segment. Assumption is that
|
||||||
|
* one and only one type of glass used.
|
||||||
|
*/
|
||||||
static struct tsl2583_lux tsl2583_device_lux[11] = {
|
static struct tsl2583_lux tsl2583_device_lux[11] = {
|
||||||
{ 9830, 8520, 15729 },
|
{ 9830, 8520, 15729 },
|
||||||
{ 12452, 10807, 23344 },
|
{ 12452, 10807, 23344 },
|
||||||
|
@ -261,7 +263,8 @@ static int tsl2583_get_lux(struct iio_dev *indio_dev)
|
||||||
lux = (lux + (chip->als_time_scale >> 1)) /
|
lux = (lux + (chip->als_time_scale >> 1)) /
|
||||||
chip->als_time_scale;
|
chip->als_time_scale;
|
||||||
|
|
||||||
/* Adjust for active gain scale.
|
/*
|
||||||
|
* Adjust for active gain scale.
|
||||||
* The tsl2583_device_lux tables above have a factor of 8192 built in,
|
* The tsl2583_device_lux tables above have a factor of 8192 built in,
|
||||||
* so we need to shift right.
|
* so we need to shift right.
|
||||||
* User-specified gain provides a multiplier.
|
* User-specified gain provides a multiplier.
|
||||||
|
@ -553,7 +556,8 @@ static ssize_t in_illuminance_lux_table_store(struct device *dev,
|
||||||
|
|
||||||
get_options(buf, ARRAY_SIZE(value), value);
|
get_options(buf, ARRAY_SIZE(value), value);
|
||||||
|
|
||||||
/* We now have an array of ints starting at value[1], and
|
/*
|
||||||
|
* We now have an array of ints starting at value[1], and
|
||||||
* enumerated by value[0].
|
* enumerated by value[0].
|
||||||
* We expect each group of three ints is one table entry,
|
* We expect each group of three ints is one table entry,
|
||||||
* and the last table entry is all 0.
|
* and the last table entry is all 0.
|
||||||
|
|
Loading…
Reference in New Issue