diff options
| -rw-r--r-- | drivers/spi/spi-loopback-test.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/drivers/spi/spi-loopback-test.c b/drivers/spi/spi-loopback-test.c index 8af2e4070153..81fa9068df43 100644 --- a/drivers/spi/spi-loopback-test.c +++ b/drivers/spi/spi-loopback-test.c | |||
| @@ -574,7 +574,8 @@ static int spi_test_translate(struct spi_device *spi, | |||
| 574 | return -EINVAL; | 574 | return -EINVAL; |
| 575 | } | 575 | } |
| 576 | 576 | ||
| 577 | static int spi_test_fill_tx(struct spi_device *spi, struct spi_test *test) | 577 | static int spi_test_fill_pattern(struct spi_device *spi, |
| 578 | struct spi_test *test) | ||
| 578 | { | 579 | { |
| 579 | struct spi_transfer *xfers = test->transfers; | 580 | struct spi_transfer *xfers = test->transfers; |
| 580 | u8 *tx_buf; | 581 | u8 *tx_buf; |
| @@ -691,8 +692,8 @@ static int _spi_test_run_iter(struct spi_device *spi, | |||
| 691 | spi_message_add_tail(x, msg); | 692 | spi_message_add_tail(x, msg); |
| 692 | } | 693 | } |
| 693 | 694 | ||
| 694 | /* fill in the transfer data */ | 695 | /* fill in the transfer buffers with pattern */ |
| 695 | ret = spi_test_fill_tx(spi, test); | 696 | ret = spi_test_fill_pattern(spi, test); |
| 696 | if (ret) | 697 | if (ret) |
| 697 | return ret; | 698 | return ret; |
| 698 | 699 | ||
