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>
Subject: [PATCH 19/24] scsi: mesh: remove leading spaces before tabs
Date: Sat, 22 May 2021 16:37:23 +0800 [thread overview]
Message-ID: <1621672648-39955-20-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/'
Signed-off-by: Hui Tang <tanghui20@huawei.com>
---
drivers/scsi/mesh.c | 54 ++++++++++++++++++++++++++---------------------------
1 file changed, 27 insertions(+), 27 deletions(-)
diff --git a/drivers/scsi/mesh.c b/drivers/scsi/mesh.c
index 0a9f4e4..c6aa5a6 100644
--- a/drivers/scsi/mesh.c
+++ b/drivers/scsi/mesh.c
@@ -914,10 +914,10 @@ static void reselected(struct mesh_state *ms)
MKWORD(0, mr->error, mr->exception, mr->fifo_count));
}
out_8(&mr->interrupt, INT_ERROR | INT_EXCEPTION | INT_CMDDONE);
- mesh_flush_io(mr);
+ mesh_flush_io(mr);
udelay(1);
out_8(&mr->sequence, SEQ_ENBRESEL);
- mesh_flush_io(mr);
+ mesh_flush_io(mr);
udelay(1);
out_8(&mr->sync_params, ASYNC_PARAMS);
@@ -1010,7 +1010,7 @@ static void handle_reset(struct mesh_state *ms)
ms->msgphase = msg_none;
out_8(&mr->interrupt, INT_ERROR | INT_EXCEPTION | INT_CMDDONE);
out_8(&mr->sequence, SEQ_FLUSHFIFO);
- mesh_flush_io(mr);
+ mesh_flush_io(mr);
udelay(1);
out_8(&mr->sync_params, ASYNC_PARAMS);
out_8(&mr->sequence, SEQ_ENBRESEL);
@@ -1723,7 +1723,7 @@ static int mesh_host_reset(struct scsi_cmnd *cmd)
out_8(&mr->exception, 0xff); /* clear all exception bits */
out_8(&mr->error, 0xff); /* clear all error bits */
out_8(&mr->sequence, SEQ_RESETMESH);
- mesh_flush_io(mr);
+ mesh_flush_io(mr);
udelay(1);
out_8(&mr->intr_mask, INT_ERROR | INT_EXCEPTION | INT_CMDDONE);
out_8(&mr->source_id, ms->host->this_id);
@@ -1732,7 +1732,7 @@ static int mesh_host_reset(struct scsi_cmnd *cmd)
/* Reset the bus */
out_8(&mr->bus_status1, BS1_RST); /* assert RST */
- mesh_flush_io(mr);
+ mesh_flush_io(mr);
udelay(30); /* leave it on for >= 25us */
out_8(&mr->bus_status1, 0); /* negate RST */
@@ -1821,9 +1821,9 @@ static int mesh_shutdown(struct macio_dev *mdev)
volatile struct mesh_regs __iomem *mr;
unsigned long flags;
- printk(KERN_INFO "resetting MESH scsi bus(es)\n");
+ printk(KERN_INFO "resetting MESH scsi bus(es)\n");
spin_lock_irqsave(ms->host->host_lock, flags);
- mr = ms->mesh;
+ mr = ms->mesh;
out_8(&mr->intr_mask, 0);
out_8(&mr->interrupt, INT_ERROR | INT_EXCEPTION | INT_CMDDONE);
out_8(&mr->bus_status1, BS1_RST);
@@ -1870,17 +1870,17 @@ static int mesh_probe(struct macio_dev *mdev, const struct of_device_id *match)
}
if (macio_resource_count(mdev) != 2 || macio_irq_count(mdev) != 2) {
- printk(KERN_ERR "mesh: expected 2 addrs and 2 intrs"
+ printk(KERN_ERR "mesh: expected 2 addrs and 2 intrs"
" (got %d,%d)\n", macio_resource_count(mdev),
macio_irq_count(mdev));
return -ENODEV;
}
if (macio_request_resources(mdev, "mesh") != 0) {
- printk(KERN_ERR "mesh: unable to request memory resources");
+ printk(KERN_ERR "mesh: unable to request memory resources");
return -EBUSY;
}
- mesh_host = scsi_host_alloc(&mesh_template, sizeof(struct mesh_state));
+ mesh_host = scsi_host_alloc(&mesh_template, sizeof(struct mesh_state));
if (mesh_host == NULL) {
printk(KERN_ERR "mesh: couldn't register host");
goto out_release;
@@ -1888,12 +1888,12 @@ static int mesh_probe(struct macio_dev *mdev, const struct of_device_id *match)
/* Old junk for root discovery, that will die ultimately */
#if !defined(MODULE)
- note_scsi_host(mesh, mesh_host);
+ note_scsi_host(mesh, mesh_host);
#endif
mesh_host->base = macio_resource_start(mdev, 0);
mesh_host->irq = macio_irq(mdev, 0);
- ms = (struct mesh_state *) mesh_host->hostdata;
+ ms = (struct mesh_state *) mesh_host->hostdata;
macio_set_drvdata(mdev, ms);
ms->host = mesh_host;
ms->mdev = mdev;
@@ -1911,11 +1911,11 @@ static int mesh_probe(struct macio_dev *mdev, const struct of_device_id *match)
goto out_free;
}
- ms->meshintr = macio_irq(mdev, 0);
- ms->dmaintr = macio_irq(mdev, 1);
+ ms->meshintr = macio_irq(mdev, 0);
+ ms->dmaintr = macio_irq(mdev, 1);
- /* Space for dma command list: +1 for stop command,
- * +1 to allow for aligning.
+ /* Space for dma command list: +1 for stop command,
+ * +1 to allow for aligning.
*/
ms->dma_cmd_size = (mesh_host->sg_tablesize + 2) * sizeof(struct dbdma_cmd);
@@ -1931,25 +1931,25 @@ static int mesh_probe(struct macio_dev *mdev, const struct of_device_id *match)
}
ms->dma_cmds = (struct dbdma_cmd *) DBDMA_ALIGN(dma_cmd_space);
- ms->dma_cmd_space = dma_cmd_space;
+ ms->dma_cmd_space = dma_cmd_space;
ms->dma_cmd_bus = dma_cmd_bus + ((unsigned long)ms->dma_cmds)
- (unsigned long)dma_cmd_space;
ms->current_req = NULL;
- for (tgt = 0; tgt < 8; ++tgt) {
+ for (tgt = 0; tgt < 8; ++tgt) {
ms->tgts[tgt].sdtr_state = do_sdtr;
ms->tgts[tgt].sync_params = ASYNC_PARAMS;
ms->tgts[tgt].current_req = NULL;
- }
+ }
if ((cfp = of_get_property(mesh, "clock-frequency", NULL)))
- ms->clk_freq = *cfp;
+ ms->clk_freq = *cfp;
else {
- printk(KERN_INFO "mesh: assuming 50MHz clock frequency\n");
+ printk(KERN_INFO "mesh: assuming 50MHz clock frequency\n");
ms->clk_freq = 50000000;
- }
+ }
- /* The maximum sync rate is clock / 5; increase
- * mesh_sync_period if necessary.
+ /* The maximum sync rate is clock / 5; increase
+ * mesh_sync_period if necessary.
*/
minper = 1000000000 / (ms->clk_freq / 5); /* ns */
if (mesh_sync_period < minper)
@@ -1959,10 +1959,10 @@ static int mesh_probe(struct macio_dev *mdev, const struct of_device_id *match)
set_mesh_power(ms, 1);
/* Set it up */
- mesh_init(ms);
+ mesh_init(ms);
/* Request interrupt */
- if (request_irq(ms->meshintr, do_mesh_interrupt, 0, "MESH", ms)) {
+ if (request_irq(ms->meshintr, do_mesh_interrupt, 0, "MESH", ms)) {
printk(KERN_ERR "MESH: can't get irq %d\n", ms->meshintr);
goto out_shutdown;
}
@@ -2012,7 +2012,7 @@ static int mesh_remove(struct macio_dev *mdev)
/* Unmap registers & dma controller */
iounmap(ms->mesh);
- iounmap(ms->dma);
+ iounmap(ms->dma);
/* Free DMA commands memory */
dma_free_coherent(&macio_get_pci_dev(mdev)->dev, ms->dma_cmd_size,
--
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 ` [PATCH 04/24] scsi: sym53c8xx: " Hui Tang
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 ` Hui Tang [this message]
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-20-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 \
/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®