public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH] Staging: comedi: comedidev.h: fix checkpatch code style issue
@ 2014-08-05 23:29 Dzonatans Melgalvis
  2014-08-05 23:35 ` Greg KH
  2014-08-06  2:31 ` Joe Perches
  0 siblings, 2 replies; 3+ messages in thread
From: Dzonatans Melgalvis @ 2014-08-05 23:29 UTC (permalink / raw)
  To: gregkh; +Cc: devel, linux-kernel, Dzonatans Melgalvis

Fixing checkpatch warning - blank line missing after declaration.

Signed-off-by: Dzonatans Melgalvis <dz.melgalvis@gmail.com>
---
 drivers/staging/comedi/comedidev.h | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/drivers/staging/comedi/comedidev.h b/drivers/staging/comedi/comedidev.h
index 58e58a3..c9b7978 100644
--- a/drivers/staging/comedi/comedidev.h
+++ b/drivers/staging/comedi/comedidev.h
@@ -57,6 +57,7 @@ struct comedi_subdevice {
 	const unsigned int *maxdata_list;	/* list is channel specific */
 
 	const struct comedi_lrange *range_table;
+
 	const struct comedi_lrange *const *range_table_list;
 
 	unsigned int *chanlist;	/* driver-owned chanlist (not used) */
@@ -207,8 +208,10 @@ struct comedi_async {
 	struct comedi_cmd cmd;
 	wait_queue_head_t wait_head;
 	unsigned int cb_mask;
+
 	int (*inttrig)(struct comedi_device *dev, struct comedi_subdevice *s,
 		       unsigned int x);
+
 };
 
 struct comedi_driver {
@@ -216,13 +219,16 @@ struct comedi_driver {
 
 	const char *driver_name;
 	struct module *module;
+
 	int (*attach)(struct comedi_device *, struct comedi_devconfig *);
 	void (*detach)(struct comedi_device *);
 	int (*auto_attach)(struct comedi_device *, unsigned long);
 
 	/* number of elements in board_name and board_id arrays */
 	unsigned int num_names;
+
 	const char *const *board_name;
+
 	/* offset in bytes from one board name pointer to the next */
 	int offset;
 };
-- 
1.9.1


^ permalink raw reply related	[flat|nested] 3+ messages in thread

* Re: [PATCH] Staging: comedi: comedidev.h: fix checkpatch code style issue
  2014-08-05 23:29 [PATCH] Staging: comedi: comedidev.h: fix checkpatch code style issue Dzonatans Melgalvis
@ 2014-08-05 23:35 ` Greg KH
  2014-08-06  2:31 ` Joe Perches
  1 sibling, 0 replies; 3+ messages in thread
From: Greg KH @ 2014-08-05 23:35 UTC (permalink / raw)
  To: Dzonatans Melgalvis; +Cc: devel, linux-kernel

On Wed, Aug 06, 2014 at 02:29:45AM +0300, Dzonatans Melgalvis wrote:
> Fixing checkpatch warning - blank line missing after declaration.
> 
> Signed-off-by: Dzonatans Melgalvis <dz.melgalvis@gmail.com>
> ---
>  drivers/staging/comedi/comedidev.h | 6 ++++++
>  1 file changed, 6 insertions(+)
> 
> diff --git a/drivers/staging/comedi/comedidev.h b/drivers/staging/comedi/comedidev.h
> index 58e58a3..c9b7978 100644
> --- a/drivers/staging/comedi/comedidev.h
> +++ b/drivers/staging/comedi/comedidev.h
> @@ -57,6 +57,7 @@ struct comedi_subdevice {
>  	const unsigned int *maxdata_list;	/* list is channel specific */
>  
>  	const struct comedi_lrange *range_table;
> +
>  	const struct comedi_lrange *const *range_table_list;

Really?  Why add that one?  Shouldn't you just remove the previous line?

>  
>  	unsigned int *chanlist;	/* driver-owned chanlist (not used) */
> @@ -207,8 +208,10 @@ struct comedi_async {
>  	struct comedi_cmd cmd;
>  	wait_queue_head_t wait_head;
>  	unsigned int cb_mask;
> +
>  	int (*inttrig)(struct comedi_device *dev, struct comedi_subdevice *s,
>  		       unsigned int x);
> +
>  };

Why is that last line needed?

Please use your judgement with checkpatch fixes, this patch isn't ok
as-is, sorry.

greg k-h

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [PATCH] Staging: comedi: comedidev.h: fix checkpatch code style issue
  2014-08-05 23:29 [PATCH] Staging: comedi: comedidev.h: fix checkpatch code style issue Dzonatans Melgalvis
  2014-08-05 23:35 ` Greg KH
@ 2014-08-06  2:31 ` Joe Perches
  1 sibling, 0 replies; 3+ messages in thread
From: Joe Perches @ 2014-08-06  2:31 UTC (permalink / raw)
  To: Dzonatans Melgalvis; +Cc: gregkh, devel, linux-kernel

On Wed, 2014-08-06 at 02:29 +0300, Dzonatans Melgalvis wrote:
> Fixing checkpatch warning - blank line missing after declaration.

These are false positives from a previous version
of checkpatch.  Please use the version in -next
instead.  No errors are reported with that version.

> Signed-off-by: Dzonatans Melgalvis <dz.melgalvis@gmail.com>
> ---
>  drivers/staging/comedi/comedidev.h | 6 ++++++
>  1 file changed, 6 insertions(+)
> 
> diff --git a/drivers/staging/comedi/comedidev.h b/drivers/staging/comedi/comedidev.h
> index 58e58a3..c9b7978 100644
> --- a/drivers/staging/comedi/comedidev.h
> +++ b/drivers/staging/comedi/comedidev.h
> @@ -57,6 +57,7 @@ struct comedi_subdevice {
>  	const unsigned int *maxdata_list;	/* list is channel specific */
>  
>  	const struct comedi_lrange *range_table;
> +
>  	const struct comedi_lrange *const *range_table_list;
>  
>  	unsigned int *chanlist;	/* driver-owned chanlist (not used) */
> @@ -207,8 +208,10 @@ struct comedi_async {
>  	struct comedi_cmd cmd;
>  	wait_queue_head_t wait_head;
>  	unsigned int cb_mask;
> +
>  	int (*inttrig)(struct comedi_device *dev, struct comedi_subdevice *s,
>  		       unsigned int x);
> +
>  };
>  
>  struct comedi_driver {
> @@ -216,13 +219,16 @@ struct comedi_driver {
>  
>  	const char *driver_name;
>  	struct module *module;
> +
>  	int (*attach)(struct comedi_device *, struct comedi_devconfig *);
>  	void (*detach)(struct comedi_device *);
>  	int (*auto_attach)(struct comedi_device *, unsigned long);
>  
>  	/* number of elements in board_name and board_id arrays */
>  	unsigned int num_names;
> +
>  	const char *const *board_name;
> +
>  	/* offset in bytes from one board name pointer to the next */
>  	int offset;
>  };




^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2014-08-06  2:31 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-08-05 23:29 [PATCH] Staging: comedi: comedidev.h: fix checkpatch code style issue Dzonatans Melgalvis
2014-08-05 23:35 ` Greg KH
2014-08-06  2:31 ` Joe Perches

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox