]> asedeno.scripts.mit.edu Git - linux.git/commit
ncr5380: Fix whitespace in comments using regexp
authorFinn Thain <fthain@telegraphics.com.au>
Sun, 3 Jan 2016 05:06:10 +0000 (16:06 +1100)
committerMartin K. Petersen <martin.petersen@oracle.com>
Thu, 7 Jan 2016 02:43:09 +0000 (21:43 -0500)
commit594d4ba36c0a03967da37ee6e7675ede1a67abb4
tree329ada473a20c2595af5c5c817af2564b4fd61d3
parentaff0cf9a7e098ecf1651f6f3a8cb0fbe272d6cf4
ncr5380: Fix whitespace in comments using regexp

Hanging indentation was a poor choice for the text inside comments. It
has been used in the wrong places and done badly elsewhere. There is
little consistency within any file. One fork of the core driver uses
tabs for this indentation while the other uses spaces. Better to use
flush-left alignment throughout.

This patch is the result of the following substitution. It replaces tabs
and spaces at the start of a comment line with a single space.

perl -i -pe 's,^(\t*[/ ]\*)[ \t]+,$1 ,' drivers/scsi/{atari_,}NCR5380.c

This removes some unimportant discrepancies between the two core driver
forks so that the important ones become obvious, to facilitate
reunification.

Signed-off-by: Finn Thain <fthain@telegraphics.com.au>
Reviewed-by: Hannes Reinecke <hare@suse.com>
Tested-by: Ondrej Zary <linux@rainbow-software.org>
Tested-by: Michael Schmitz <schmitzmic@gmail.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
drivers/scsi/NCR5380.c
drivers/scsi/atari_NCR5380.c