Message ID | 20180418161842.19846-1-colin.king@canonical.com (mailing list archive) |
---|---|
State | New, archived |
Headers | show |
On Wed, Apr 18, 2018 at 05:18:42PM +0100, Colin King wrote: > From: Colin Ian King <colin.king@canonical.com> > > The function pxa2xx_spi_transfer_one is local to the source and > do not need to be in global scope, so make it static. Someone already sent a patch for this which I applied earlier today.
diff --git a/drivers/spi/spi-pxa2xx.c b/drivers/spi/spi-pxa2xx.c index c852ea5c28c6..40f1346b8188 100644 --- a/drivers/spi/spi-pxa2xx.c +++ b/drivers/spi/spi-pxa2xx.c @@ -911,9 +911,9 @@ static bool pxa2xx_spi_can_dma(struct spi_controller *master, xfer->len >= chip->dma_burst_size; } -int pxa2xx_spi_transfer_one(struct spi_controller *master, - struct spi_device *spi, - struct spi_transfer *transfer) +static int pxa2xx_spi_transfer_one(struct spi_controller *master, + struct spi_device *spi, + struct spi_transfer *transfer) { struct driver_data *drv_data = spi_controller_get_devdata(master); struct spi_message *message = master->cur_msg;