Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit db0606ec authored by Jingoo Han's avatar Jingoo Han Committed by Mark Brown
Browse files

spi: s3c64xx: fix checkpatch error and warnings



Fix the following checkpatch error and warnings:

  ERROR: "(foo*)" should be "(foo *)"
  WARNING: line over 80 characters
  WARNING: quoted string split across lines

Signed-off-by: default avatarJingoo Han <jg1.han@samsung.com>
Signed-off-by: default avatarMark Brown <broonie@linaro.org>
parent 900bfe33
Loading
Loading
Loading
Loading
+8 −8
Original line number Diff line number Diff line
@@ -336,8 +336,10 @@ static int acquire_dma(struct s3c64xx_spi_driver_data *sdd)
	req.cap = DMA_SLAVE;
	req.client = &s3c64xx_spi_dma_client;

	sdd->rx_dma.ch = (void *)sdd->ops->request(sdd->rx_dma.dmach, &req, dev, "rx");
	sdd->tx_dma.ch = (void *)sdd->ops->request(sdd->tx_dma.dmach, &req, dev, "tx");
	sdd->rx_dma.ch = (void *)sdd->ops->request(sdd->rx_dma.dmach,
						&req, dev, "rx");
	sdd->tx_dma.ch = (void *)sdd->ops->request(sdd->tx_dma.dmach,
						&req, dev, "tx");

	return 1;
}
@@ -1344,16 +1346,14 @@ static int s3c64xx_spi_probe(struct platform_device *pdev)
	if (!sdd->pdev->dev.of_node) {
		res = platform_get_resource(pdev, IORESOURCE_DMA,  0);
		if (!res) {
			dev_warn(&pdev->dev, "Unable to get SPI tx dma "
					"resource. Switching to poll mode\n");
			dev_warn(&pdev->dev, "Unable to get SPI tx dma resource. Switching to poll mode\n");
			sdd->port_conf->quirks = S3C64XX_SPI_QUIRK_POLL;
		} else
			sdd->tx_dma.dmach = res->start;

		res = platform_get_resource(pdev, IORESOURCE_DMA,  1);
		if (!res) {
			dev_warn(&pdev->dev, "Unable to get SPI rx dma "
					"resource. Switching to poll mode\n");
			dev_warn(&pdev->dev, "Unable to get SPI rx dma resource. Switching to poll mode\n");
			sdd->port_conf->quirks = S3C64XX_SPI_QUIRK_POLL;
		} else
			sdd->rx_dma.dmach = res->start;