[PATCH] drivers: staging: unisys: visornic: Fixed block comment coding style warnings
Fixed block comment checkpatch warnings. Signed-off-by: Gavin O'Leary <gavinolea...@gmail.com> --- drivers/staging/unisys/visornic/visornic_main.c | 11 ++- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/drivers/staging/unisys/visornic/visornic_main.c b/drivers/staging/unisys/visornic/visornic_main.c index 0519470..eefbacc 100644 --- a/drivers/staging/unisys/visornic/visornic_main.c +++ b/drivers/staging/unisys/visornic/visornic_main.c @@ -1315,12 +1315,14 @@ visornic_rx(struct uiscmdrsp *cmdrsp) } if (found_mc) break; /* accept packet, dest - matches a multicast - address */ +* matches a multicast +* address +*/ } } else if (skb->pkt_type == PACKET_HOST) { break; /* accept packet, h_dest must match vnic - mac address */ +* mac address +*/ } else if (skb->pkt_type == PACKET_OTHERHOST) { /* something is not right */ dev_err(>netdev->dev, @@ -1618,8 +1620,7 @@ service_resp_queue(struct uiscmdrsp *cmdrsp, struct visornic_devdata *devdata, unsigned long flags; struct net_device *netdev; - /* TODO: CLIENT ACQUIRE -- Don't really need this at the -* moment */ + /* TODO: CLIENT ACQUIRE -- Don't really need this at the moment */ for (;;) { if (!visorchannel_signalremove(devdata->dev->visorchannel, IOCHAN_FROM_IOPART, -- 1.9.1 ___ devel mailing list de...@linuxdriverproject.org http://driverdev.linuxdriverproject.org/mailman/listinfo/driverdev-devel
[PATCH] staging: unisys: visornic: Made comments look nicer
Made comments not break coding style guidlines and easier to read. Signed-off-by: Gavin O'Leary <gavinolea...@gmail.com> --- drivers/staging/unisys/visornic/visornic_main.c | 29 +++-- 1 file changed, 17 insertions(+), 12 deletions(-) diff --git a/drivers/staging/unisys/visornic/visornic_main.c b/drivers/staging/unisys/visornic/visornic_main.c index 0519470..50ad44e 100644 --- a/drivers/staging/unisys/visornic/visornic_main.c +++ b/drivers/staging/unisys/visornic/visornic_main.c @@ -1215,11 +1215,13 @@ visornic_rx(struct uiscmdrsp *cmdrsp) "repost_return failed"); return rx_count; } - /* length rcvd is greater than firstfrag in this skb rcv buf */ - skb->tail += RCVPOST_BUF_SIZE; /* amount in skb->data */ - skb->data_len = skb->len - RCVPOST_BUF_SIZE;/* amount that - will be in - frag_list */ + /* length rcvd is greater than firstfrag in this skb rcv buf*/ + + /*amount in skb->data */ + skb->tail += RCVPOST_BUF_SIZE; + + /* amount that will be in frag_list */ + skb->data_len = skb->len - RCVPOST_BUF_SIZE; } else { /* data fits in this skb - no chaining - do * PRECAUTIONARY check @@ -1313,14 +1315,18 @@ visornic_rx(struct uiscmdrsp *cmdrsp) break; } } + + /* accept packet, dest matches a multicast +* address +*/ if (found_mc) - break; /* accept packet, dest - matches a multicast - address */ + break; } + + /* accept packet, dest matches a multicast address */ } else if (skb->pkt_type == PACKET_HOST) { - break; /* accept packet, h_dest must match vnic - mac address */ + break; + } else if (skb->pkt_type == PACKET_OTHERHOST) { /* something is not right */ dev_err(>netdev->dev, @@ -1618,8 +1624,7 @@ service_resp_queue(struct uiscmdrsp *cmdrsp, struct visornic_devdata *devdata, unsigned long flags; struct net_device *netdev; - /* TODO: CLIENT ACQUIRE -- Don't really need this at the -* moment */ + /* TODO: CLIENT ACQUIRE -- Don't really need this at the moment */ for (;;) { if (!visorchannel_signalremove(devdata->dev->visorchannel, IOCHAN_FROM_IOPART, -- 1.9.1 ___ devel mailing list de...@linuxdriverproject.org http://driverdev.linuxdriverproject.org/mailman/listinfo/driverdev-devel
[PATCH] staging: unisys: visornic: Made comments look nicer
Made comments not break coding style guidlines and easier to read. Signed-off-by: Gavin O'Leary <gavinolea...@gmail.com> --- drivers/staging/unisys/visornic/visornic_main.c | 29 +++-- 1 file changed, 17 insertions(+), 12 deletions(-) diff --git a/drivers/staging/unisys/visornic/visornic_main.c b/drivers/staging/unisys/visornic/visornic_main.c index 0519470..50ad44e 100644 --- a/drivers/staging/unisys/visornic/visornic_main.c +++ b/drivers/staging/unisys/visornic/visornic_main.c @@ -1215,11 +1215,13 @@ visornic_rx(struct uiscmdrsp *cmdrsp) "repost_return failed"); return rx_count; } - /* length rcvd is greater than firstfrag in this skb rcv buf */ - skb->tail += RCVPOST_BUF_SIZE; /* amount in skb->data */ - skb->data_len = skb->len - RCVPOST_BUF_SIZE;/* amount that - will be in - frag_list */ + /* length rcvd is greater than firstfrag in this skb rcv buf*/ + + /*amount in skb->data */ + skb->tail += RCVPOST_BUF_SIZE; + + /* amount that will be in frag_list */ + skb->data_len = skb->len - RCVPOST_BUF_SIZE; } else { /* data fits in this skb - no chaining - do * PRECAUTIONARY check @@ -1313,14 +1315,18 @@ visornic_rx(struct uiscmdrsp *cmdrsp) break; } } + + /* accept packet, dest matches a multicast +* address +*/ if (found_mc) - break; /* accept packet, dest - matches a multicast - address */ + break; } + + /* accept packet, dest matches a multicast address */ } else if (skb->pkt_type == PACKET_HOST) { - break; /* accept packet, h_dest must match vnic - mac address */ + break; + } else if (skb->pkt_type == PACKET_OTHERHOST) { /* something is not right */ dev_err(>netdev->dev, @@ -1618,8 +1624,7 @@ service_resp_queue(struct uiscmdrsp *cmdrsp, struct visornic_devdata *devdata, unsigned long flags; struct net_device *netdev; - /* TODO: CLIENT ACQUIRE -- Don't really need this at the -* moment */ + /* TODO: CLIENT ACQUIRE -- Don't really need this at the moment */ for (;;) { if (!visorchannel_signalremove(devdata->dev->visorchannel, IOCHAN_FROM_IOPART, -- 1.9.1 ___ devel mailing list de...@linuxdriverproject.org http://driverdev.linuxdriverproject.org/mailman/listinfo/driverdev-devel
[PATCH] staging: unisys: visornic: Fixed Checkpatch Warnings
Fixed the coding style checkpatch warnings. Signed-off-by: Gavin O'Leary <gavinolea...@gmail.com> --- drivers/staging/unisys/visornic/visornic_main.c | 16 ++-- 1 file changed, 10 insertions(+), 6 deletions(-) diff --git a/drivers/staging/unisys/visornic/visornic_main.c b/drivers/staging/unisys/visornic/visornic_main.c index 0519470..0366624 100644 --- a/drivers/staging/unisys/visornic/visornic_main.c +++ b/drivers/staging/unisys/visornic/visornic_main.c @@ -1218,8 +1218,9 @@ visornic_rx(struct uiscmdrsp *cmdrsp) /* length rcvd is greater than firstfrag in this skb rcv buf */ skb->tail += RCVPOST_BUF_SIZE; /* amount in skb->data */ skb->data_len = skb->len - RCVPOST_BUF_SIZE;/* amount that - will be in - frag_list */ +* will be in +* frag_list +*/ } else { /* data fits in this skb - no chaining - do * PRECAUTIONARY check @@ -1315,12 +1316,14 @@ visornic_rx(struct uiscmdrsp *cmdrsp) } if (found_mc) break; /* accept packet, dest - matches a multicast - address */ +* matches a multicast +* address +*/ } } else if (skb->pkt_type == PACKET_HOST) { break; /* accept packet, h_dest must match vnic - mac address */ +* mac address +*/ } else if (skb->pkt_type == PACKET_OTHERHOST) { /* something is not right */ dev_err(>netdev->dev, @@ -1619,7 +1622,8 @@ service_resp_queue(struct uiscmdrsp *cmdrsp, struct visornic_devdata *devdata, struct net_device *netdev; /* TODO: CLIENT ACQUIRE -- Don't really need this at the -* moment */ +* moment +*/ for (;;) { if (!visorchannel_signalremove(devdata->dev->visorchannel, IOCHAN_FROM_IOPART, -- 1.9.1 ___ devel mailing list de...@linuxdriverproject.org http://driverdev.linuxdriverproject.org/mailman/listinfo/driverdev-devel
[PATCH] staging: dgap: dgap.c: fixed whitespace error caused by my patch
Signed-off-by: Gavin O'Leary <gavinolea...@gmail.com> --- drivers/staging/dgap/dgap.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/staging/dgap/dgap.c b/drivers/staging/dgap/dgap.c index 9e07a39..7845516 100644 --- a/drivers/staging/dgap/dgap.c +++ b/drivers/staging/dgap/dgap.c @@ -4819,7 +4819,7 @@ static int dgap_tty_ioctl(struct tty_struct *tty, unsigned int cmd, case TCSBRKP: /* support for POSIX tcsendbreak() -* +* * According to POSIX.1 spec (7.2.2.1.2) breaks should be * between 0.25 and 0.5 seconds so we'll ask for something * in the middle: 0.375 seconds. -- 1.9.1 ___ devel mailing list de...@linuxdriverproject.org http://driverdev.linuxdriverproject.org/mailman/listinfo/driverdev-devel
[PATCH] staging: dgap: dgap.c: Fixed a comment warning
Signed-off-by: Gavin O'Leary <gavinolea...@gmail.com> --- drivers/staging/dgap/dgap.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/staging/dgap/dgap.c b/drivers/staging/dgap/dgap.c index bad3551..9e07a39 100644 --- a/drivers/staging/dgap/dgap.c +++ b/drivers/staging/dgap/dgap.c @@ -4819,7 +4819,7 @@ static int dgap_tty_ioctl(struct tty_struct *tty, unsigned int cmd, case TCSBRKP: /* support for POSIX tcsendbreak() - +* * According to POSIX.1 spec (7.2.2.1.2) breaks should be * between 0.25 and 0.5 seconds so we'll ask for something * in the middle: 0.375 seconds. -- 1.9.1 ___ devel mailing list de...@linuxdriverproject.org http://driverdev.linuxdriverproject.org/mailman/listinfo/driverdev-devel
[PATCH] staging: unisys: visorbus: visorbus_main.c: made checkpatch warning-free
Made visorbus_main.c checkpatch warning-free by fixing the comment style issues. Signed-off-by: Gavin O'Leary <gavinolea...@gmail.com> --- drivers/staging/unisys/visorbus/visorbus_main.c | 15 ++- 1 file changed, 10 insertions(+), 5 deletions(-) diff --git a/drivers/staging/unisys/visorbus/visorbus_main.c b/drivers/staging/unisys/visorbus/visorbus_main.c index a272b48..eac97d2 100644 --- a/drivers/staging/unisys/visorbus/visorbus_main.c +++ b/drivers/staging/unisys/visorbus/visorbus_main.c @@ -1078,7 +1078,8 @@ away: } /* Write the contents of to the struct - * spar_vbus_channel_protocol.chp_info. */ + * spar_vbus_channel_protocol.chp_info. + */ static int write_vbus_chp_info(struct visorchannel *chan, @@ -1096,7 +1097,8 @@ write_vbus_chp_info(struct visorchannel *chan, } /* Write the contents of to the struct - * spar_vbus_channel_protocol.bus_info. */ + * spar_vbus_channel_protocol.bus_info. + */ static int write_vbus_bus_info(struct visorchannel *chan, @@ -1370,7 +1372,8 @@ pause_state_change_complete(struct visor_device *dev, int status) /* Notify the chipset driver that the pause is complete, which * will presumably want to send some sort of response to the - * initiator. */ + * initiator. + */ (*chipset_responders.device_pause) (dev, status); } @@ -1390,7 +1393,8 @@ resume_state_change_complete(struct visor_device *dev, int status) /* Notify the chipset driver that the resume is complete, * which will presumably want to send some sort of response to -* the initiator. */ +* the initiator. +*/ (*chipset_responders.device_resume) (dev, status); } @@ -1437,7 +1441,8 @@ initiate_chipset_device_pause_resume(struct visor_device *dev, bool is_pause) * existing problem prevents us from ever getting a bus * resume... This hack would fail to work should we * ever have a bus that contains NO devices, since we -* would never even get here in that case. */ +* would never even get here in that case. +*/ fix_vbus_dev_info(dev); if (!drv->resume) goto away; -- 1.9.1 ___ devel mailing list de...@linuxdriverproject.org http://driverdev.linuxdriverproject.org/mailman/listinfo/driverdev-devel