Commit 2cbc8b34 authored by Eva Rachel Retuya's avatar Eva Rachel Retuya Committed by Greg Kroah-Hartman

staging: iio: tsl2x7x_core: use preferred comment style

Adjust block comments by adding the necessary trailing */ on a separate
line. Checkpatch found this issue.
Signed-off-by: default avatarEva Rachel Retuya <eraretuya@gmail.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 437ba274
......@@ -187,9 +187,11 @@ struct tsl2X7X_chip {
const struct tsl2x7x_chip_info *chip_info;
const struct iio_info *info;
s64 event_timestamp;
/* This structure is intentionally large to accommodate
* updates via sysfs. */
/* Sized to 9 = max 8 segments + 1 termination segment */
/*
* This structure is intentionally large to accommodate
* updates via sysfs.
* Sized to 9 = max 8 segments + 1 termination segment
*/
struct tsl2x7x_lux tsl2x7x_device_lux[TSL2X7X_MAX_LUX_TABLE_SIZE];
};
......@@ -695,8 +697,10 @@ static int tsl2x7x_chip_on(struct iio_dev *indio_dev)
chip->als_saturation = als_count * 922; /* 90% of full scale */
chip->als_time_scale = (als_time + 25) / 50;
/* TSL2X7X Specific power-on / adc enable sequence
* Power on the device 1st. */
/*
* TSL2X7X Specific power-on / adc enable sequence
* Power on the device 1st.
*/
utmp = TSL2X7X_CNTL_PWR_ON;
ret = i2c_smbus_write_byte_data(chip->client,
TSL2X7X_CMD_REG | TSL2X7X_CNTRL, utmp);
......@@ -706,8 +710,10 @@ static int tsl2x7x_chip_on(struct iio_dev *indio_dev)
return ret;
}
/* Use the following shadow copy for our delay before enabling ADC.
* Write all the registers. */
/*
* Use the following shadow copy for our delay before enabling ADC.
* Write all the registers.
*/
for (i = 0, dev_reg = chip->tsl2x7x_config;
i < TSL2X7X_MAX_CONFIG_REG; i++) {
ret = i2c_smbus_write_byte_data(chip->client,
......@@ -722,8 +728,10 @@ static int tsl2x7x_chip_on(struct iio_dev *indio_dev)
mdelay(3); /* Power-on settling time */
/* NOW enable the ADC
* initialize the desired mode of operation */
/*
* NOW enable the ADC
* initialize the desired mode of operation
*/
utmp = TSL2X7X_CNTL_PWR_ON |
TSL2X7X_CNTL_ADC_ENBL |
TSL2X7X_CNTL_PROX_DET_ENBL;
......@@ -1164,8 +1172,10 @@ static ssize_t tsl2x7x_luxtable_show(struct device *dev,
chip->tsl2x7x_device_lux[i].ch0,
chip->tsl2x7x_device_lux[i].ch1);
if (chip->tsl2x7x_device_lux[i].ratio == 0) {
/* We just printed the first "0" entry.
* Now get rid of the extra "," and break. */
/*
* We just printed the first "0" entry.
* Now get rid of the extra "," and break.
*/
offset--;
break;
}
......@@ -1912,8 +1922,10 @@ static int tsl2x7x_probe(struct i2c_client *clientp,
return ret;
}
/* ALS and PROX functions can be invoked via user space poll
* or H/W interrupt. If busy return last sample. */
/*
* ALS and PROX functions can be invoked via user space poll
* or H/W interrupt. If busy return last sample.
*/
mutex_init(&chip->als_mutex);
mutex_init(&chip->prox_mutex);
......
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