On Tuesday, March 11, 2014 10:33 AM, Fred Akers wrote:
> This patch fixes a few function names that are very long and are
> not in the correct naming style
>
> Signed-off-by: Fred Akers <kni...@botops.net>
> ---
> This is v2 of "[PATCH] Staging: comedi: apci_1564: Fix long CamelCase 
> function names"
> Changed subject because it no longer applies to only that file exclusively.
> ---
>  .../comedi/drivers/addi-data/hwdrv_apci035.c       |  53 +++++------
>  .../comedi/drivers/addi-data/hwdrv_apci1500.c      |  96 +++++++++-----------
>  .../comedi/drivers/addi-data/hwdrv_apci1564.c      |  62 ++++++-------
>  .../comedi/drivers/addi-data/hwdrv_apci3120.c      | 100 
> ++++++++++-----------
>  .../comedi/drivers/addi-data/hwdrv_apci3200.c      |  68 +++++++-------
>  .../comedi/drivers/addi-data/hwdrv_apci3501.c      |  24 ++---
>  drivers/staging/comedi/drivers/addi_apci_035.c     |  14 +--
>  drivers/staging/comedi/drivers/addi_apci_1500.c    |  24 ++---
>  drivers/staging/comedi/drivers/addi_apci_1564.c    |  16 ++--
>  drivers/staging/comedi/drivers/addi_apci_3120.c    |  26 +++---
>  drivers/staging/comedi/drivers/addi_apci_3200.c    |  36 ++++----
>  drivers/staging/comedi/drivers/addi_apci_3501.c    |   6 +-
>  12 files changed, 248 insertions(+), 277 deletions(-)
>
> diff --git a/drivers/staging/comedi/drivers/addi-data/hwdrv_apci035.c 
> b/drivers/staging/comedi/drivers/addi-data/hwdrv_apci035.c
> index 80cca95..b22a8ea 100644
> --- a/drivers/staging/comedi/drivers/addi-data/hwdrv_apci035.c
> +++ b/drivers/staging/comedi/drivers/addi-data/hwdrv_apci035.c
> @@ -111,7 +111,7 @@ static int i_Temp;
>  static int i_Flag = 1;
>  /*
>  
> +----------------------------------------------------------------------------+
> -| Function   Name   : int i_APCI035_ConfigTimerWatchdog                      
> |
> +| Function   Name   : int apci035_timer_config                      |
>  |                      (struct comedi_device *dev,struct comedi_subdevice 
> *s,               |
>  |                      struct comedi_insn *insn,unsigned int *data)          
>            |
>  
> +----------------------------------------------------------------------------+

Nitpick... These obvious function comment blocks should be removed.
That should be a separate patch. Maybe a patch 1/2 before this one so
you don't have to update the comments.

> @@ -163,10 +163,9 @@ static int i_Flag = 1;
>  |                                                                            
>  |
>  
> +----------------------------------------------------------------------------+
>  */
> -static int i_APCI035_ConfigTimerWatchdog(struct comedi_device *dev,
> -                                      struct comedi_subdevice *s,
> -                                      struct comedi_insn *insn,
> -                                      unsigned int *data)
> +static int apci035_timer_config(struct comedi_device *dev,
> +                             struct comedi_subdevice *s,
> +                             struct comedi_insn *insn, unsigned int *data)

Please leave each parameter on a separate line.

Regards,
Hartley

_______________________________________________
devel mailing list
de...@linuxdriverproject.org
http://driverdev.linuxdriverproject.org/mailman/listinfo/driverdev-devel

Reply via email to