staging: iio: tsl2x7x_core: use preferred comment style
authorEva Rachel Retuya <eraretuya@gmail.com>
Sat, 12 Mar 2016 08:19:21 +0000 (16:19 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 28 Mar 2016 14:30:36 +0000 (07:30 -0700)
Adjust block comments by adding the necessary trailing */ on a separate
line. Checkpatch found this issue.

Signed-off-by: Eva Rachel Retuya <eraretuya@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/iio/light/tsl2x7x_core.c

index 4948791..de069be 100644 (file)
@@ -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);