lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <54C625A3.4020001@mev.co.uk>
Date:	Mon, 26 Jan 2015 11:31:47 +0000
From:	Ian Abbott <abbotti@....co.uk>
To:	Simon Guo <wei.guo.simon@...il.com>,
	H Hartley Sweeten <hsweeten@...ionengravers.com>,
	Greg Kroah-Hartman <gregkh@...uxfoundation.org>
CC:	devel@...verdev.osuosl.org, linux-kernel@...r.kernel.org
Subject: Re: [PATCH 3.19.0-rc5 01/03] STAGING: Fix pcl818.c coding style issue:
 code indent should use tabs where possible

On 25/01/15 09:28, Simon Guo wrote:
> Correct one coding style problem(detected by checkpatch.pl) in pcl818.c.
> - code indent should use tabs where possible
>
> Signed-off-by: Simon Guo <wei.guo.simon@...il.com>
> ---
>   drivers/staging/comedi/drivers/pcl818.c | 26 +++++++++++++-------------
>   1 file changed, 13 insertions(+), 13 deletions(-)
>
> diff --git a/drivers/staging/comedi/drivers/pcl818.c b/drivers/staging/comedi/drivers/pcl818.c
> index ba2e137..72a700c 100644
> --- a/drivers/staging/comedi/drivers/pcl818.c
> +++ b/drivers/staging/comedi/drivers/pcl818.c
> @@ -45,11 +45,11 @@ A word or two about DMA. Driver support DMA operations at two ways:
>       [1] - IRQ	(0=disable, 2, 3, 4, 5, 6, 7)
>       [2] - DMA	(0=disable, 1, 3)
>       [3] - 0, 10=10MHz clock for 8254
> -              1= 1MHz clock for 8254
> +	      1= 1MHz clock for 8254
>       [4] - 0,  5=A/D input  -5V.. +5V
> -          1, 10=A/D input -10V..+10V
> +	  1, 10=A/D input -10V..+10V
>       [5] - 0,  5=D/A output 0-5V  (internal reference -5V)
> -          1, 10=D/A output 0-10V (internal reference -10V)
> +	  1, 10=D/A output 0-10V (internal reference -10V)
>   	  2    =D/A output unknown (external reference)
>
>      Options for PCL-818, PCL-818H:
> @@ -57,28 +57,28 @@ A word or two about DMA. Driver support DMA operations at two ways:
>       [1] - IRQ	(0=disable, 2, 3, 4, 5, 6, 7)
>       [2] - DMA	(0=disable, 1, 3)
>       [3] - 0, 10=10MHz clock for 8254
> -              1= 1MHz clock for 8254
> +	      1= 1MHz clock for 8254
>       [4] - 0,  5=D/A output 0-5V  (internal reference -5V)
> -          1, 10=D/A output 0-10V (internal reference -10V)
> +	  1, 10=D/A output 0-10V (internal reference -10V)
>   	  2    =D/A output unknown (external reference)
>
>      Options for PCL-818HD, PCL-818HG:
>       [0] - IO Base
>       [1] - IRQ	(0=disable, 2, 3, 4, 5, 6, 7)
>       [2] - DMA/FIFO  (-1=use FIFO, 0=disable both FIFO and DMA,
> -                      1=use DMA ch 1, 3=use DMA ch 3)
> +		      1=use DMA ch 1, 3=use DMA ch 3)
>       [3] - 0, 10=10MHz clock for 8254
> -              1= 1MHz clock for 8254
> +	      1= 1MHz clock for 8254
>       [4] - 0,  5=D/A output 0-5V  (internal reference -5V)
> -          1, 10=D/A output 0-10V (internal reference -10V)
> -   	  2    =D/A output unknown (external reference)
> +	  1, 10=D/A output 0-10V (internal reference -10V)
> +	  2    =D/A output unknown (external reference)
>
>      Options for PCL-718:
>       [0] - IO Base
>       [1] - IRQ	(0=disable, 2, 3, 4, 5, 6, 7)
>       [2] - DMA	(0=disable, 1, 3)
>       [3] - 0, 10=10MHz clock for 8254
> -              1= 1MHz clock for 8254
> +	      1= 1MHz clock for 8254
>       [4] -     0=A/D Range is +/-10V
>   	      1=             +/-5V
>   	      2=             +/-2.5V
> @@ -87,14 +87,14 @@ A word or two about DMA. Driver support DMA operations at two ways:
>   	      5=  	     user defined bipolar
>   	      6=	     0-10V
>   	      7=	     0-5V
> - 	      8=	     0-2V
> +	      8=	     0-2V
>   	      9=	     0-1V
>   	     10=	     user defined unipolar
>       [5] - 0,  5=D/A outputs 0-5V  (internal reference -5V)
> -          1, 10=D/A outputs 0-10V (internal reference -10V)
> +	  1, 10=D/A outputs 0-10V (internal reference -10V)
>   	      2=D/A outputs unknown (external reference)
>       [6] - 0, 60=max  60kHz A/D sampling
> -          1,100=max 100kHz A/D sampling (PCL-718 with Option 001 installed)
> +	  1,100=max 100kHz A/D sampling (PCL-718 with Option 001 installed)
>
>   */

Okay, but this comment block really needs reformatting to use the usual 
block comment style, and with spaces to line up the columns instead of 
tabs so it still looks okay when the " * " is removed from the start of 
each line of the block comment.

Reviewed-by: Ian Abbott <abbotti@....co.uk>

-- 
-=( Ian Abbott @ MEV Ltd.    E-mail: <abbotti@....co.uk> )=-
-=(                          Web: http://www.mev.co.uk/  )=-
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ