mirror of
https://github.com/edk2-porting/linux-next.git
synced 2024-12-24 21:24:00 +08:00
spi/s3c64xx: Make wait_for_timeout() function name less generic
Signed-off-by: Mark Brown <broonie@linaro.org>
This commit is contained in:
parent
7e9955567e
commit
796170733e
@ -583,7 +583,7 @@ static inline void enable_cs(struct s3c64xx_spi_driver_data *sdd,
|
|||||||
writel(0, sdd->regs + S3C64XX_SPI_SLAVE_SEL);
|
writel(0, sdd->regs + S3C64XX_SPI_SLAVE_SEL);
|
||||||
}
|
}
|
||||||
|
|
||||||
static u32 wait_for_timeout(struct s3c64xx_spi_driver_data *sdd,
|
static u32 s3c64xx_spi_wait_for_timeout(struct s3c64xx_spi_driver_data *sdd,
|
||||||
int timeout_ms)
|
int timeout_ms)
|
||||||
{
|
{
|
||||||
void __iomem *regs = sdd->regs;
|
void __iomem *regs = sdd->regs;
|
||||||
@ -676,7 +676,8 @@ static int wait_for_xfer(struct s3c64xx_spi_driver_data *sdd,
|
|||||||
buf = xfer->rx_buf;
|
buf = xfer->rx_buf;
|
||||||
do {
|
do {
|
||||||
/* wait for data to be received in the fifo */
|
/* wait for data to be received in the fifo */
|
||||||
cpy_len = wait_for_timeout(sdd, (loops ? ms : 0));
|
cpy_len = s3c64xx_spi_wait_for_timeout(sdd,
|
||||||
|
(loops ? ms : 0));
|
||||||
|
|
||||||
switch (sdd->cur_bpw) {
|
switch (sdd->cur_bpw) {
|
||||||
case 32:
|
case 32:
|
||||||
|
Loading…
Reference in New Issue
Block a user