aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/spi
diff options
context:
space:
mode:
authorAndy Shevchenko <andriy.shevchenko@linux.intel.com>2014-09-18 13:08:57 -0400
committerMark Brown <broonie@kernel.org>2014-09-24 04:50:33 -0400
commitc3c6e231d860774037e7001ff3d536e5644fe2da (patch)
tree673ad1c73adf120ba24474c9ebf477a327fb0ff6 /drivers/spi
parentc3ce15bf2ae5cde3392944ad043b80f123510cde (diff)
spi: dw: fix style of code in few places
Make comments be surrounded by spaces and move part of code to one line where it suits 80 characters. There is no functional changes. Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com> Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'drivers/spi')
-rw-r--r--drivers/spi/spi-dw.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/drivers/spi/spi-dw.c b/drivers/spi/spi-dw.c
index 7064cd008539..6bb484919e58 100644
--- a/drivers/spi/spi-dw.c
+++ b/drivers/spi/spi-dw.c
@@ -390,7 +390,7 @@ static void pump_transfers(unsigned long data)
390 goto early_exit; 390 goto early_exit;
391 } 391 }
392 392
393 /* Delay if requested at end of transfer*/ 393 /* Delay if requested at end of transfer */
394 if (message->state == RUNNING_STATE) { 394 if (message->state == RUNNING_STATE) {
395 previous = list_entry(transfer->transfer_list.prev, 395 previous = list_entry(transfer->transfer_list.prev,
396 struct spi_transfer, 396 struct spi_transfer,
@@ -519,7 +519,7 @@ static int dw_spi_transfer_one_message(struct spi_master *master,
519 struct dw_spi *dws = spi_master_get_devdata(master); 519 struct dw_spi *dws = spi_master_get_devdata(master);
520 520
521 dws->cur_msg = msg; 521 dws->cur_msg = msg;
522 /* Initial message state*/ 522 /* Initial message state */
523 dws->cur_msg->state = START_STATE; 523 dws->cur_msg->state = START_STATE;
524 dws->cur_transfer = list_entry(dws->cur_msg->transfers.next, 524 dws->cur_transfer = list_entry(dws->cur_msg->transfers.next,
525 struct spi_transfer, 525 struct spi_transfer,
@@ -645,8 +645,7 @@ int dw_spi_add_host(struct device *dev, struct dw_spi *dws)
645 dws->prev_chip = NULL; 645 dws->prev_chip = NULL;
646 dws->dma_inited = 0; 646 dws->dma_inited = 0;
647 dws->dma_addr = (dma_addr_t)(dws->paddr + 0x60); 647 dws->dma_addr = (dma_addr_t)(dws->paddr + 0x60);
648 snprintf(dws->name, sizeof(dws->name), "dw_spi%d", 648 snprintf(dws->name, sizeof(dws->name), "dw_spi%d", dws->bus_num);
649 dws->bus_num);
650 649
651 ret = devm_request_irq(dev, dws->irq, dw_spi_irq, IRQF_SHARED, 650 ret = devm_request_irq(dev, dws->irq, dw_spi_irq, IRQF_SHARED,
652 dws->name, dws); 651 dws->name, dws);