提交 ab09e040 编写于 作者: M Mike Frysinger

spi/bfin_spi: fix up some unused/misleading comments

Reported-by: NDavid Brownell <dbrownell@users.sourceforge.net>
Signed-off-by: NMike Frysinger <vapier@gentoo.org>
上级 5cc0159a
...@@ -44,9 +44,6 @@ MODULE_LICENSE("GPL"); ...@@ -44,9 +44,6 @@ MODULE_LICENSE("GPL");
#define QUEUE_RUNNING 0 #define QUEUE_RUNNING 0
#define QUEUE_STOPPED 1 #define QUEUE_STOPPED 1
/* Value to send if no TX value is supplied */
#define SPI_IDLE_TXVAL 0x0000
struct driver_data { struct driver_data {
/* Driver model hookup */ /* Driver model hookup */
struct platform_device *pdev; struct platform_device *pdev;
...@@ -581,7 +578,7 @@ static void bfin_spi_pump_transfers(unsigned long data) ...@@ -581,7 +578,7 @@ static void bfin_spi_pump_transfers(unsigned long data)
udelay(previous->delay_usecs); udelay(previous->delay_usecs);
} }
/* Setup the transfer state based on the type of transfer */ /* Flush any existing transfers that may be sitting in the hardware */
if (bfin_spi_flush(drv_data) == 0) { if (bfin_spi_flush(drv_data) == 0) {
dev_err(&drv_data->pdev->dev, "pump_transfers: flush failed\n"); dev_err(&drv_data->pdev->dev, "pump_transfers: flush failed\n");
message->status = -EIO; message->status = -EIO;
...@@ -661,7 +658,6 @@ static void bfin_spi_pump_transfers(unsigned long data) ...@@ -661,7 +658,6 @@ static void bfin_spi_pump_transfers(unsigned long data)
"transfer: drv_data->write is %p, chip->write is %p\n", "transfer: drv_data->write is %p, chip->write is %p\n",
drv_data->write, chip->write); drv_data->write, chip->write);
/* speed and width has been set on per message */
message->state = RUNNING_STATE; message->state = RUNNING_STATE;
dma_config = 0; dma_config = 0;
...@@ -966,7 +962,7 @@ static u16 ssel[][MAX_SPI_SSEL] = { ...@@ -966,7 +962,7 @@ static u16 ssel[][MAX_SPI_SSEL] = {
P_SPI2_SSEL6, P_SPI2_SSEL7}, P_SPI2_SSEL6, P_SPI2_SSEL7},
}; };
/* first setup for new devices */ /* setup for devices (may be called multiple times -- not just first setup) */
static int bfin_spi_setup(struct spi_device *spi) static int bfin_spi_setup(struct spi_device *spi)
{ {
struct bfin5xx_spi_chip *chip_info; struct bfin5xx_spi_chip *chip_info;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册