[PATCH 1/2 RESEND] staging: lirc: fix checkpath errors: blank lines

2014-07-01 Thread Raphael Poggi
This patch fix checkpath "WARNING: Missing a blank line after declarations"

Signed-off-by: Raphaël Poggi 
---
 drivers/staging/media/lirc/lirc_imon.c |3 +++
 1 file changed, 3 insertions(+)

diff --git a/drivers/staging/media/lirc/lirc_imon.c 
b/drivers/staging/media/lirc/lirc_imon.c
index a5b62ee..f8c3375 100644
--- a/drivers/staging/media/lirc/lirc_imon.c
+++ b/drivers/staging/media/lirc/lirc_imon.c
@@ -189,6 +189,7 @@ MODULE_PARM_DESC(debug, "Debug messages: 0=no, 
1=yes(default: no)");
 static void free_imon_context(struct imon_context *context)
 {
struct device *dev = context->driver->dev;
+
usb_free_urb(context->tx_urb);
usb_free_urb(context->rx_urb);
lirc_buffer_free(context->driver->rbuf);
@@ -656,6 +657,7 @@ static void imon_incoming_packet(struct imon_context 
*context,
mask = 0x80;
for (bit = 0; bit < 8; ++bit) {
int curr_bit = !(buf[octet] & mask);
+
if (curr_bit != context->rx.prev_bit) {
if (context->rx.count) {
submit_data(context);
@@ -775,6 +777,7 @@ static int imon_probe(struct usb_interface *interface,
struct usb_endpoint_descriptor *ep;
int ep_dir;
int ep_type;
+
ep = _desc->endpoint[i].desc;
ep_dir = ep->bEndpointAddress & USB_ENDPOINT_DIR_MASK;
ep_type = ep->bmAttributes & USB_ENDPOINT_XFERTYPE_MASK;
-- 
1.7.9.5

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/


[PATCH 1/2 RESEND] staging: lirc: fix checkpath errors: blank lines

2014-07-01 Thread Raphael Poggi
This patch fix checkpath WARNING: Missing a blank line after declarations

Signed-off-by: Raphaël Poggi poggi.r...@gmail.com
---
 drivers/staging/media/lirc/lirc_imon.c |3 +++
 1 file changed, 3 insertions(+)

diff --git a/drivers/staging/media/lirc/lirc_imon.c 
b/drivers/staging/media/lirc/lirc_imon.c
index a5b62ee..f8c3375 100644
--- a/drivers/staging/media/lirc/lirc_imon.c
+++ b/drivers/staging/media/lirc/lirc_imon.c
@@ -189,6 +189,7 @@ MODULE_PARM_DESC(debug, Debug messages: 0=no, 
1=yes(default: no));
 static void free_imon_context(struct imon_context *context)
 {
struct device *dev = context-driver-dev;
+
usb_free_urb(context-tx_urb);
usb_free_urb(context-rx_urb);
lirc_buffer_free(context-driver-rbuf);
@@ -656,6 +657,7 @@ static void imon_incoming_packet(struct imon_context 
*context,
mask = 0x80;
for (bit = 0; bit  8; ++bit) {
int curr_bit = !(buf[octet]  mask);
+
if (curr_bit != context-rx.prev_bit) {
if (context-rx.count) {
submit_data(context);
@@ -775,6 +777,7 @@ static int imon_probe(struct usb_interface *interface,
struct usb_endpoint_descriptor *ep;
int ep_dir;
int ep_type;
+
ep = iface_desc-endpoint[i].desc;
ep_dir = ep-bEndpointAddress  USB_ENDPOINT_DIR_MASK;
ep_type = ep-bmAttributes  USB_ENDPOINT_XFERTYPE_MASK;
-- 
1.7.9.5

--
To unsubscribe from this list: send the line unsubscribe linux-kernel in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/


Re: [PATCH 1/2 RESEND] staging: lirc: fix checkpath errors: blank lines

2014-06-26 Thread Greg KH
On Wed, Jun 25, 2014 at 09:14:30AM +0200, Raphael Poggi wrote:
> This patch fix checkpath "WARNING: Missing a blank line after declarations"
> 
> Signed-off-by: Raphaël Poggi 
> ---
>  drivers/staging/media/lirc/lirc_imon.c |3 +++

Please use scripts/get_maintainer.pl to find out who patches for this
file should be sent to (hint, it's not me...)

thanks,

greg k-h
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/


Re: [PATCH 1/2 RESEND] staging: lirc: fix checkpath errors: blank lines

2014-06-26 Thread Greg KH
On Wed, Jun 25, 2014 at 09:14:30AM +0200, Raphael Poggi wrote:
 This patch fix checkpath WARNING: Missing a blank line after declarations
 
 Signed-off-by: Raphaël Poggi poggi.r...@gmail.com
 ---
  drivers/staging/media/lirc/lirc_imon.c |3 +++

Please use scripts/get_maintainer.pl to find out who patches for this
file should be sent to (hint, it's not me...)

thanks,

greg k-h
--
To unsubscribe from this list: send the line unsubscribe linux-kernel in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/


[PATCH 1/2 RESEND] staging: lirc: fix checkpath errors: blank lines

2014-06-25 Thread Raphael Poggi
This patch fix checkpath "WARNING: Missing a blank line after declarations"

Signed-off-by: Raphaël Poggi 
---
 drivers/staging/media/lirc/lirc_imon.c |3 +++
 1 file changed, 3 insertions(+)

diff --git a/drivers/staging/media/lirc/lirc_imon.c 
b/drivers/staging/media/lirc/lirc_imon.c
index a5b62ee..f8c3375 100644
--- a/drivers/staging/media/lirc/lirc_imon.c
+++ b/drivers/staging/media/lirc/lirc_imon.c
@@ -189,6 +189,7 @@ MODULE_PARM_DESC(debug, "Debug messages: 0=no, 
1=yes(default: no)");
 static void free_imon_context(struct imon_context *context)
 {
struct device *dev = context->driver->dev;
+
usb_free_urb(context->tx_urb);
usb_free_urb(context->rx_urb);
lirc_buffer_free(context->driver->rbuf);
@@ -656,6 +657,7 @@ static void imon_incoming_packet(struct imon_context 
*context,
mask = 0x80;
for (bit = 0; bit < 8; ++bit) {
int curr_bit = !(buf[octet] & mask);
+
if (curr_bit != context->rx.prev_bit) {
if (context->rx.count) {
submit_data(context);
@@ -775,6 +777,7 @@ static int imon_probe(struct usb_interface *interface,
struct usb_endpoint_descriptor *ep;
int ep_dir;
int ep_type;
+
ep = _desc->endpoint[i].desc;
ep_dir = ep->bEndpointAddress & USB_ENDPOINT_DIR_MASK;
ep_type = ep->bmAttributes & USB_ENDPOINT_XFERTYPE_MASK;
-- 
1.7.9.5

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/


[PATCH 1/2 RESEND] staging: lirc: fix checkpath errors: blank lines

2014-06-25 Thread Raphael Poggi
This patch fix checkpath WARNING: Missing a blank line after declarations

Signed-off-by: Raphaël Poggi poggi.r...@gmail.com
---
 drivers/staging/media/lirc/lirc_imon.c |3 +++
 1 file changed, 3 insertions(+)

diff --git a/drivers/staging/media/lirc/lirc_imon.c 
b/drivers/staging/media/lirc/lirc_imon.c
index a5b62ee..f8c3375 100644
--- a/drivers/staging/media/lirc/lirc_imon.c
+++ b/drivers/staging/media/lirc/lirc_imon.c
@@ -189,6 +189,7 @@ MODULE_PARM_DESC(debug, Debug messages: 0=no, 
1=yes(default: no));
 static void free_imon_context(struct imon_context *context)
 {
struct device *dev = context-driver-dev;
+
usb_free_urb(context-tx_urb);
usb_free_urb(context-rx_urb);
lirc_buffer_free(context-driver-rbuf);
@@ -656,6 +657,7 @@ static void imon_incoming_packet(struct imon_context 
*context,
mask = 0x80;
for (bit = 0; bit  8; ++bit) {
int curr_bit = !(buf[octet]  mask);
+
if (curr_bit != context-rx.prev_bit) {
if (context-rx.count) {
submit_data(context);
@@ -775,6 +777,7 @@ static int imon_probe(struct usb_interface *interface,
struct usb_endpoint_descriptor *ep;
int ep_dir;
int ep_type;
+
ep = iface_desc-endpoint[i].desc;
ep_dir = ep-bEndpointAddress  USB_ENDPOINT_DIR_MASK;
ep_type = ep-bmAttributes  USB_ENDPOINT_XFERTYPE_MASK;
-- 
1.7.9.5

--
To unsubscribe from this list: send the line unsubscribe linux-kernel in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/