提交 339ec3ce 编写于 作者: M Martin Sperl 提交者: Mark Brown

spi: loopback-test: rename method spi_test_fill_tx to spi_test_fill_pattern

Rename method spi_test_fill_tx to spi_test_fill_pattern
to better describe what it does.
Signed-off-by: NMartin Sperl <kernel@martin.sperl.org>
Signed-off-by: NMark Brown <broonie@kernel.org>
上级 e6520a3c
...@@ -574,7 +574,8 @@ static int spi_test_translate(struct spi_device *spi, ...@@ -574,7 +574,8 @@ static int spi_test_translate(struct spi_device *spi,
return -EINVAL; return -EINVAL;
} }
static int spi_test_fill_tx(struct spi_device *spi, struct spi_test *test) static int spi_test_fill_pattern(struct spi_device *spi,
struct spi_test *test)
{ {
struct spi_transfer *xfers = test->transfers; struct spi_transfer *xfers = test->transfers;
u8 *tx_buf; u8 *tx_buf;
...@@ -691,8 +692,8 @@ static int _spi_test_run_iter(struct spi_device *spi, ...@@ -691,8 +692,8 @@ static int _spi_test_run_iter(struct spi_device *spi,
spi_message_add_tail(x, msg); spi_message_add_tail(x, msg);
} }
/* fill in the transfer data */ /* fill in the transfer buffers with pattern */
ret = spi_test_fill_tx(spi, test); ret = spi_test_fill_pattern(spi, test);
if (ret) if (ret)
return ret; return ret;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册