From: Hui Tang <tanghui20@huawei.com>
To: <jejb@linux.ibm.com>, <martin.petersen@oracle.com>
Cc: <linux-scsi@vger.kernel.org>, <linux-kernel@vger.kernel.org>,
<tanghui20@huawei.com>, Matthew Wilcox <willy@infradead.org>
Subject: [PATCH 04/24] scsi: sym53c8xx: remove leading spaces before tabs
Date: Sat, 22 May 2021 16:37:08 +0800 [thread overview]
Message-ID: <1621672648-39955-5-git-send-email-tanghui20@huawei.com> (raw)
In-Reply-To: <1621672648-39955-1-git-send-email-tanghui20@huawei.com>
There are a few leading spaces before tabs and remove it by running
the following commard:
$ find . -name '*.[ch]' | xargs sed -r -i 's/^[ ]+\t/\t/'
Cc: Matthew Wilcox <willy@infradead.org>
Signed-off-by: Hui Tang <tanghui20@huawei.com>
---
drivers/scsi/sym53c8xx_2/sym_defs.h | 2 +-
drivers/scsi/sym53c8xx_2/sym_hipd.c | 40 ++++++++++++++++++-------------------
2 files changed, 21 insertions(+), 21 deletions(-)
diff --git a/drivers/scsi/sym53c8xx_2/sym_defs.h b/drivers/scsi/sym53c8xx_2/sym_defs.h
index 317289e..2d848615 100644
--- a/drivers/scsi/sym53c8xx_2/sym_defs.h
+++ b/drivers/scsi/sym53c8xx_2/sym_defs.h
@@ -234,7 +234,7 @@ struct sym_reg {
#define IRQM 0x08 /* mod: irq mode (1 = totem pole !) */
#define STD 0x04 /* cmd: start dma mode */
#define IRQD 0x02 /* mod: irq disable */
- #define NOCOM 0x01 /* cmd: protect sfbr while reselect */
+ #define NOCOM 0x01 /* cmd: protect sfbr while reselect */
/* bits 0-1 rsvd for C1010 */
/*3c*/ u32 nc_adder;
diff --git a/drivers/scsi/sym53c8xx_2/sym_hipd.c b/drivers/scsi/sym53c8xx_2/sym_hipd.c
index 255a2d4..4c5e68c 100644
--- a/drivers/scsi/sym53c8xx_2/sym_hipd.c
+++ b/drivers/scsi/sym53c8xx_2/sym_hipd.c
@@ -332,16 +332,16 @@ static unsigned getfreq (struct sym_hcb *np, int gen)
OUTW(np, nc_sien, 0);
OUTB(np, nc_istat1, 0);
}
- /*
- * set prescaler to divide by whatever 0 means
- * 0 ought to choose divide by 2, but appears
- * to set divide by 3.5 mode in my 53c810 ...
- */
- OUTB(np, nc_scntl3, 0);
-
- /*
- * adjust for prescaler, and convert into KHz
- */
+ /*
+ * set prescaler to divide by whatever 0 means
+ * 0 ought to choose divide by 2, but appears
+ * to set divide by 3.5 mode in my 53c810 ...
+ */
+ OUTB(np, nc_scntl3, 0);
+
+ /*
+ * adjust for prescaler, and convert into KHz
+ */
f = ms ? ((1 << gen) * (4340*4)) / ms : 0;
/*
@@ -688,7 +688,7 @@ static int sym_prepare_setting(struct Scsi_Host *shost, struct sym_hcb *np, stru
/*
* Get the clock multiplier factor.
- */
+ */
if (np->features & FE_QUAD)
np->multiplier = 4;
else if (np->features & FE_DBLR)
@@ -774,11 +774,11 @@ static int sym_prepare_setting(struct Scsi_Host *shost, struct sym_hcb *np, stru
/*
* Phase mismatch handled by SCRIPTS (895A/896/1010) ?
- */
+ */
if (np->features & FE_NOPM)
np->rv_ccntl0 |= (ENPMJ);
- /*
+ /*
* C1010-33 Errata: Part Number:609-039638 (rev. 1) is fixed.
* In dual channel mode, contention occurs if internal cycles
* are used. Disable internal cycles.
@@ -1692,12 +1692,12 @@ void sym_start_up(struct Scsi_Host *shost, int reason)
struct sym_data *sym_data = shost_priv(shost);
struct pci_dev *pdev = sym_data->pdev;
struct sym_hcb *np = sym_data->ncb;
- int i;
+ int i;
u32 phys;
- /*
+ /*
* Reset chip if asked, otherwise just clear fifos.
- */
+ */
if (reason == 1)
sym_soft_reset(np);
else {
@@ -3080,7 +3080,7 @@ static void sym_sir_bad_scsi_status(struct sym_hcb *np, int num, struct sym_ccb
sym_dequeue_from_squeue(np, i, cp->target, cp->lun, -1);
OUTL_DSP(np, SCRIPTA_BA(np, start));
- /*
+ /*
* Save some info of the actual IO.
* Compute the data residual.
*/
@@ -3573,9 +3573,9 @@ static void sym_sir_task_recovery(struct sym_hcb *np, int num)
sym_clear_tasks(np, DID_ABORT, target, lun, task);
sym_flush_comp_queue(np, 0);
- /*
+ /*
* If we sent a BDR, make upper layer aware of that.
- */
+ */
if (np->abrt_msg[0] == M_RESET)
starget_printk(KERN_NOTICE, starget,
"has been reset\n");
@@ -4902,7 +4902,7 @@ static struct sym_ccb *sym_alloc_ccb(struct sym_hcb *np)
cp->phys.head.go.start = cpu_to_scr(SCRIPTA_BA(np, idle));
cp->phys.head.go.restart = cpu_to_scr(SCRIPTB_BA(np, bad_i_t_l));
- /*
+ /*
* Initilialyze some other fields.
*/
cp->phys.smsg_ext.addr = cpu_to_scr(HCB_BA(np, msgin[2]));
--
2.8.1
next prev parent reply other threads:[~2021-05-22 8:41 UTC|newest]
Thread overview: 26+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-05-22 8:37 [PATCH 00/24] scsi: " Hui Tang
2021-05-22 8:37 ` [PATCH 01/24] scsi: aacraid: " Hui Tang
2021-05-22 8:37 ` [PATCH 02/24] scsi: aic7xxx: " Hui Tang
2021-05-22 8:37 ` [PATCH 03/24] scsi: arm: " Hui Tang
2021-05-22 8:37 ` Hui Tang [this message]
2021-05-22 8:37 ` [PATCH 05/24] scsi: qla2xxx: " Hui Tang
2021-05-22 8:37 ` [PATCH 06/24] scsi: arcmsr: " Hui Tang
2021-05-22 8:37 ` [PATCH 07/24] scsi: ibmvfc: " Hui Tang
2021-05-22 8:37 ` [PATCH 08/24] scsi: megaraid: " Hui Tang
2021-05-22 8:37 ` [PATCH 09/24] scsi: zalon: " Hui Tang
2021-05-22 8:37 ` [PATCH 10/24] scsi: wd33c93: " Hui Tang
2021-05-22 8:37 ` [PATCH 11/24] scsi: sun3_scsi: " Hui Tang
2021-05-22 22:37 ` Finn Thain
2021-05-22 8:37 ` [PATCH 12/24] scsi: scsi_transport_spi: " Hui Tang
2021-05-22 8:37 ` [PATCH 13/24] scsi: scsi_transport_fc: " Hui Tang
2021-05-22 8:37 ` [PATCH 14/24] scsi: proc: " Hui Tang
2021-05-22 8:37 ` [PATCH 15/24] scsi: qlogicfas408: " Hui Tang
2021-05-22 8:37 ` [PATCH 16/24] scsi: qla1280: remove leading space " Hui Tang
2021-05-22 8:37 ` [PATCH 17/24] scsi: pcmcia: remove leading spaces " Hui Tang
2021-05-22 8:37 ` [PATCH 18/24] scsi: ncr53c8xx: " Hui Tang
2021-05-22 8:37 ` [PATCH 19/24] scsi: mesh: " Hui Tang
2021-05-22 8:37 ` [PATCH 20/24] scsi: mac53c94: " Hui Tang
2021-05-22 8:37 ` [PATCH 21/24] scsi: ips: " Hui Tang
2021-05-22 8:37 ` [PATCH 22/24] scsi: dpt_i2o: " Hui Tang
2021-05-22 8:37 ` [PATCH 23/24] scsi: dc395x: " Hui Tang
2021-05-22 8:37 ` [PATCH 24/24] scsi: aha1740: " Hui Tang
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1621672648-39955-5-git-send-email-tanghui20@huawei.com \
--to=tanghui20@huawei.com \
--cc=jejb@linux.ibm.com \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-scsi@vger.kernel.org \
--cc=martin.petersen@oracle.com \
--cc=willy@infradead.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®