staging: nvec: fix block comments
authorSimon Guinot <simon.guinot@sequanux.org>
Wed, 9 Dec 2015 07:14:06 +0000 (08:14 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 8 Feb 2016 04:00:04 +0000 (20:00 -0800)
This patch fixes a couple of checkpatch warnings about block comments.

Signed-off-by: Simon Guinot <simon.guinot@sequanux.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/nvec/nvec.c
drivers/staging/nvec/nvec_power.c

index 4ae44a5168f94778c9ad3fec504f37608b63055d..dba17660a4c5f1a81d579a670563e0c7fe20ce79 100644 (file)
@@ -508,8 +508,10 @@ static void nvec_rx_completed(struct nvec_chip *nvec)
 
        spin_lock(&nvec->rx_lock);
 
-       /* add the received data to the work list
-          and move the ring buffer pointer to the next entry */
+       /*
+        * Add the received data to the work list and move the ring buffer
+        * pointer to the next entry.
+        */
        list_add_tail(&nvec->rx->node, &nvec->rx_data);
 
        spin_unlock(&nvec->rx_lock);
index 04a7402ae2df4531fee978a24c1fc82e3e712095..b4a0545e8806fe7f345c8228ad1657b32e7fbd5c 100644 (file)
@@ -207,8 +207,10 @@ static int nvec_power_bat_notifier(struct notifier_block *nb,
        case TYPE:
                memcpy(power->bat_type, &res->plc, res->length - 2);
                power->bat_type[res->length - 2] = '\0';
-               /* this differs a little from the spec
-                  fill in more if you find some */
+               /*
+                * This differs a little from the spec fill in more if you find
+                * some.
+                */
                if (!strncmp(power->bat_type, "Li", 30))
                        power->bat_type_enum = POWER_SUPPLY_TECHNOLOGY_LION;
                else
@@ -356,12 +358,14 @@ static void nvec_power_poll(struct work_struct *work)
        if (counter >= ARRAY_SIZE(bat_iter))
                counter = 0;
 
-/* AC status via sys req */
+       /* AC status via sys req */
        nvec_write_async(power->nvec, buf, 2);
        msleep(100);
 
-/* select a battery request function via round robin
-   doing it all at once seems to overload the power supply */
+       /*
+        * Select a battery request function via round robin doing it all at
+        * once seems to overload the power supply.
+        */
        buf[0] = NVEC_BAT;
        buf[1] = bat_iter[counter++];
        nvec_write_async(power->nvec, buf, 2);